XXE
XML External Entity
XXE can be used to access local files on the host, potential RFI for internal hosts, and RCE in very specific circumstances. By creating custom XML elements, we can create specific entities for us to use.
Determine if XXE is triggered:
This is for LFI:
Sometimes PHP or Apache will prevent a php file from being loaded. If this is the case, we can actually have PHP encode the file as Base64 to bypass some controls.
We can easily submit the xml file to the endpoint using curl's @
feature for files. This also proxies the connection through an interception proxy to let us peek into the response on the tool.
Last updated