
Struts 2 web app that is vulnerable to CVE-2017-98505 and CVE-2017-5638
mvn jetty:run.http://localhost:8080/pizza/1. It is important to follow the struts2 plugin naming convention to get everything wired up automatically.mvn jetty:run.payload.xml file contains the XML payload to POST to the vulnerable app / REST interface.payload.txt file can be updated to run any command. It is currently set to spawn calc.exe (Windows). Replace with /bin/sh for Linux etc.An attacker can POST the payload to gain RCE:
curl -v -H "Content-Type:application/xml" -X POST -d @payload.txt http://localhost:8080/shapes/1