Lucene search

K
hackeroneTniessenH1:2237545
HistoryNov 03, 2023 - 3:41 a.m.

Node.js: Code injection and privilege escalation through Linux capabilities

2023-11-0303:41:28
tniessen
hackerone.com
13
node.js
code injection
privilege escalation
linux capabilities
bug bounty

7.2 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.6%

On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running with elevated privileges with the only exception of CAP_NET_BIND_SERVICE.

Due to a bug in the implementation of this exception, Node.js incorrectly applies this exception even when certain other capabilities have been set.

This allows unprivileged users to inject code that inherits the processโ€™s elevated privileges.