GHSA-3gpc-w23c-w59w Sandbox Breakout / Arbitrary Code Execution in pitboss-ng
Attackers can execute arbitrary code by bypassing the sandbox via constructor access, affecting all versions of the pitboss-ng library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-3gpc-w23c-w59w?
GHSA-3gpc-w23c-w59w is a code injection vulnerability in pitboss-ng, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of pitboss-ng are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through this.constructor.constructor . This may allow attackers to execute arbitrary code in the system. Evaluating the payload this.constructor.constructor('return process.env')() prints the contents of process.env.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Which versions are affected by GHSA-3gpc-w23c-w59w?
2 open source packages ship an affected version, including pitboss-ng.
| Package | Affected | Fixed in |
|---|---|---|
pitboss-ng npm | All versions | 2.0.0 |
pitboss-ng npm | All versions | 2.0.0 |
How do I fix GHSA-3gpc-w23c-w59w?
Upgrade pitboss-ng to 2.0.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is GHSA-3gpc-w23c-w59w being exploited?
There is no known exploitation of GHSA-3gpc-w23c-w59w in the wild and no public exploit code.