Lucene search

K
hackerone4xpl0r3rH1:2472071
HistoryApr 19, 2024 - 7:48 p.m.

Node.js: fs.fchown/fchmod bypasses permission model

2024-04-1919:48:07
4xpl0r3r
hackerone.com
9
node.js
vulnerability
experimental
permission model
fs.fchown
fs.fchmod
file descriptor
cve
bugbounty

AI Score

6.7

Confidence

High

EPSS

0

Percentile

9.5%

A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-write flag is used.

Node.js Permission Model do not operate on file descriptors, however, operations such as fs.fchown or fs.fchmod can use a “read-only” file descriptor to change the owner and permissions of a file.

This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21.

Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.