December 1, 2026
How I Chained XXE and SSRF To LFI 💀
How I Used Blind XXE + SSRF , External DTDs, and Burp Collaborator to Retrieve Local Files from the Target Server

By Mado
2 min read
الØÙ…د لله والصلاة والسلام على رسول الله وعلى آله ÙˆØµØØ¨Ù‡ أما بعد
Hello HackerS
I'm Mohamed also known as 0xMado, a dedicated Web Application Penetration Tester and bug hunter
NOTE: The Write Up is Focus on extensible markup language ( XML) How You can found ( XXE) Get Your Coffee and Lets go If You Liked The Write up Dont Forget 50 Clapped And Thank you
What is XML?
XML is a language, meaning its used to describe other languages It was developed as a response to the shortcomings of HTML which can define only how data is displayed In contrast XML defines how data is structured
My Target Overview
The target application provides functionality that allows users to submit and process XML data During my testing, I focused on understanding how the application handled XML input and whether the server-side XML parser was securely configured
when me Take look on Requests i Found request have a DTD Call To URL Like That :
But ngrok wasn't receiving any requests I tried changing the API method from GET to POST, but nothing changed Then, I changed the Content-Type from application/xml to application/jsonThis time, I noticed a change in the response: the status code changed from 500 Internal Server Error to 400 Bad Request
I also sent my Burp Collaborator URL in the request and finally my server received an interaction
I created a file called exploit.dtd and added the following code and Take the file to Path of ngrok:
php://filter/convert.base64-encode/resource=/etc/host =>
"the code make all data from file call /etc/host convert to base64"
"and send to my collab the base64 data"
"The second Cmmand mean after data convert to base64 send the data auto to"
" my collab "php://filter/convert.base64-encode/resource=/etc/host =>
"the code make all data from file call /etc/host convert to base64"
"and send to my collab the base64 data"
"The second Cmmand mean after data convert to base64 send the data auto to"
" my collab "Now, when the target server processes my request and accesses the DTD file it reads the contents of /etc/hosts and sends the data to my Burp Collaborator server
Now What you think Yeah its done :
The Results:
- Successfully identified an XXE vulnerability in the target application.
- Confirmed that the server processed external DTD files.
- Achieved Blind XXE through Out-of-Band (OOB) interaction.
- Successfully retrieved the contents of
/etc/hostsfrom the target server - Exfiltrated the retrieved data to my Burp Collaborator server.
Note: Think like a Hacker + Think out the box
If You Want To Reach Me All My Contact Info is Here: Click Here
……………Thank You For Reading and I hope This Was helpful………………