node/lib/internal/fs
Tobias Nießen f447a4611a permission: fix Uint8Array path traversal
Previous security patches addressed path traversal vulnerabilities for
string and Buffer inputs, but ignored Uint8Array inputs. This commit
fixes the existing logic to account for the latter.

The previous implementation would silently ignore unexpected inputs,
whereas this commit introduces an explicit assertion to prevent that
unsafe behavior.

PR-URL: https://github.com/nodejs-private/node-private/pull/456
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
CVE-ID: CVE-2023-39332
2023-10-13 18:05:15 -03:00
..
cp
read fs: improve error performance of sync methods 2023-09-17 20:42:46 +00:00
dir.js fs: improve error performance of opendirSync 2023-09-21 17:04:13 +00:00
glob.js
promises.js fs: add flush option to createWriteStream() 2023-10-11 16:25:05 +00:00
recursive_watch.js
rimraf.js
streams.js fs: add flush option to createWriteStream() 2023-10-11 16:25:05 +00:00
sync_write_stream.js
utils.js permission: fix Uint8Array path traversal 2023-10-13 18:05:15 -03:00
watchers.js