Uh oh!
There was an error while loading. Please reload this page.
Commit 9a9bed9
committed
doc: clarify fileURLToPath security considerations
Add clarification that fileURLToPath() decodes encoded
dot-segments (%2e%2e) which are normalized as path traversal.
Applications must perform their own path validation to
prevent directory traversal attacks.
Also applies to fileURLToPathBuffer().
PR-URL: #60887
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent ac367b3 commit 9a9bed9
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1332 | 1345 | | |
1333 | 1346 | | |
1334 | 1347 | | |
| |||
1384 | 1397 | | |
1385 | 1398 | | |
1386 | 1399 | | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1387 | 1409 | | |
1388 | 1410 | | |
1389 | 1411 | | |
| |||
2014 | 2036 | | |
2015 | 2037 | | |
2016 | 2038 | | |
| 2039 | + | |
2017 | 2040 | | |
2018 | 2041 | | |
2019 | 2042 | | |
| |||
0 commit comments