Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pwntester/restletxmldecoder

Restlet API consuming XML serialized Java Objects. Vulnerable to XXE and RCE (if third party libraries like GroovyShell are found in the classpath)
https://github.com/pwntester/restletxmldecoder

Last synced: about 1 month ago
JSON representation

Restlet API consuming XML serialized Java Objects. Vulnerable to XXE and RCE (if third party libraries like GroovyShell are found in the classpath)

Awesome Lists containing this project

README

        

javac -cp ./lib/org.restlet.jar:./lib/groovy-all-1.8.9.jar *java
1st terminal: java -cp ./lib/org.restlet.jar:./lib/groovy-all-1.8.9.jar:. ServerRestlets
2nd terminal: java -cp ./lib/org.restlet.jar:. ClientRestlet
3rd terminal:
curl -X PUT -u scott:tiger --header "content-type: application/x-java-serialized-object+xml" --data @customer.xml "http://localhost:8182/customer"
curl -X PUT -u scott:tiger --header "content-type: application/x-java-serialized-object+xml" --data @customer-xee.xml "http://localhost:8182/customer"
curl -X PUT -u scott:tiger --header "content-type: application/x-java-serialized-object+xml" --data @customer-rce.xml "http://localhost:8182/customer"