The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path.
For example: --allow-fs-read=/home/node/.ssh/*.pub will ignore pub and give access to everything after .ssh/.
Impacts:
Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
Thank you, to Tobias Nießen for reporting this vulnerability and thank you Rafael Gonzaga
for fixing it.
This Cyber News was published on www.tenable.com. Publication date: Thu, 15 Feb 2024 04:46:04 +0000