CVE-2023-49803
Koa/CORS Same Origin Policy Bypass Vulnerability
Description
@koa/cors npm provides Cross-Origin Resource Sharing (CORS) for koa, a web framework for Node.js. Prior to version 5.0.0, the middleware operates in a way that if an allowed origin is not provided, it will return an `Access-Control-Allow-Origin` header with the value of the origin from the request. This behavior completely disables one of the most crucial elements of browsers - the Same Origin Policy (SOP), this could cause a very serious security threat to the users of this middleware. If such behavior is expected, for instance, when middleware is used exclusively for prototypes and not for production applications, it should be heavily emphasized in the documentation along with an indication of the risks associated with such behavior, as many users may not be aware of it. Version 5.0.0 fixes this vulnerability.
INFO
Published Date :
Dec. 11, 2023, 11:15 p.m.
Last Modified :
Nov. 21, 2024, 8:33 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
4.0
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-49803
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-49803
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-49803
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/koajs/cors/commit/f31dac99f5355c41e7d4dd3c4a80c5f154941a11 Added Reference https://github.com/koajs/cors/security/advisories/GHSA-qxrj-hx23-xp82 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Dec. 14, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Changed Reference Type https://github.com/koajs/cors/commit/f31dac99f5355c41e7d4dd3c4a80c5f154941a11 No Types Assigned https://github.com/koajs/cors/commit/f31dac99f5355c41e7d4dd3c4a80c5f154941a11 Patch Changed Reference Type https://github.com/koajs/cors/security/advisories/GHSA-qxrj-hx23-xp82 No Types Assigned https://github.com/koajs/cors/security/advisories/GHSA-qxrj-hx23-xp82 Vendor Advisory Added CWE NIST CWE-346 Added CPE Configuration OR *cpe:2.3:a:koajs:cross-origin_resource_sharing_for_koa:*:*:*:*:*:node.js:*:* versions up to (excluding) 5.0.0 -
CVE Received by [email protected]
Dec. 11, 2023
Action Type Old Value New Value Added Description @koa/cors npm provides Cross-Origin Resource Sharing (CORS) for koa, a web framework for Node.js. Prior to version 5.0.0, the middleware operates in a way that if an allowed origin is not provided, it will return an `Access-Control-Allow-Origin` header with the value of the origin from the request. This behavior completely disables one of the most crucial elements of browsers - the Same Origin Policy (SOP), this could cause a very serious security threat to the users of this middleware. If such behavior is expected, for instance, when middleware is used exclusively for prototypes and not for production applications, it should be heavily emphasized in the documentation along with an indication of the risks associated with such behavior, as many users may not be aware of it. Version 5.0.0 fixes this vulnerability. Added Reference GitHub, Inc. https://github.com/koajs/cors/security/advisories/GHSA-qxrj-hx23-xp82 [No types assigned] Added Reference GitHub, Inc. https://github.com/koajs/cors/commit/f31dac99f5355c41e7d4dd3c4a80c5f154941a11 [No types assigned] Added CWE GitHub, Inc. CWE-346 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-49803
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-49803
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.13 }} 0.04%
score
0.34036
percentile