/XStreamServer

RCE Exploit PoC for Spring based RESTFul APIs using XStream as Unmarshaler

Primary LanguageJava

XStreamServer

RCE Exploit PoC for Spring based RESTFul APIs using XStream as Unmarshaler

Start the server using the maven jetty plugin: mvn -Djetty.port=8080 -DDebug clean jetty:run

Expected use: curl --header "content-type: application/xml" --data @contact.xml "http://localhost:8080/contacts"

Exploit knowing the interface: curl --header "content-type: application/xml" --data @exploit.xml "http://localhost:8080/contacts"

Generic Exploit: curl --header "content-type: application/xml" --data @exploit2.xml "http://localhost:8080/contacts