Wrappers for errors
Escaping characters
Error while reading XML files from the server?
Use CDATA which will make character escaping impossible.
Wrap file contents between these tags: "<![CDATA[" output "]]>"
It is worth mentioning we cannot reach another entity using another entity within the same dtd. That is why we use parameter entities referenced by the wrappers in external DTD file.
Wrapper
Catch the file with self hosted file in fileserver:
Application vulnerable part.
That was the process of wrapping the XML file contents into CDATA in order to avoid character escaping and errors during payload execution.
Now we can read whatever file we want, even if it has characters like "<" or ">".
Last updated