Lucene search

K
hackeroneMattaustinH1:2188126
HistorySep 30, 2023 - 7:26 p.m.

Internet Bug Bounty: Permissions policies can be bypassed via Module._load and require.extensions (High) (CVE-2023-30587)

2023-09-3019:26:08
mattaustin
hackerone.com
$1165
20
permission policies
module._load
require.extensions
cve-2023-30587
node.js 16.x
node.js 18.x
node.js 20.x
remote code execution
bug bounty

7.9 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

39.3%

https://hackerone.com/reports/1960870

The use of Module._load() and require.extensions[".js"] can bypass the policy mechanism and require modules outside of the policy.json definition for a given module.
This vulnerability affects all users using the experimental policy mechanism in all active release lines: 16.x, 18.x and, 20.x.

Impact

Permission policies limit a project to a specific set of authorized node js built-in modules. For example a project could attempt to limit the use of child_process which could be bypassed leading to remote code execution.