This repository contains a Proof of Concept (PoC) exploit for a critical Remote Code Execution (RCE) vulnerability in the jsonpath-plus
package, affecting versions prior to 10.0.7. The issue stems from improper input sanitization, allowing attackers to execute arbitrary code by leveraging unsafe defaults in Node’s VM module. The vulnerability was published 2024-10-11 and has a CVSS Score of 9.8 (Critical).
Note: Although an attempt to mitigate this vulnerability was made in version 10.0.0, the flaw remains exploitable under certain payload variations as discussed in issue #226.
The vulnerability enables remote attackers to execute arbitrary code on affected systems due to the unsafe usage of the VM in Node.js. This vulnerability was initially addressed in version 10.0.0, but further investigation revealed it could still be exploited with specific payloads.
To reproduce the exploit, ensure you have the following tools installed:
- Docker
Use the provided assets to build your own image or use the image I published in Dockerhub:
-
Clone this repository:
git clone https://github.com/your-username/CVE-2024-XXXX-PoC.git cd CVE-2024-XXXX-PoC TODO
A special thanks to Andrea Angelo Raineri for his contribution to the identification and reporting of this vulnerability, and for his kind assistance to find the right query to exploit the vulnerability.