11.5 Lab: Exploiting blind XXE to exfiltrate data using a malicious external DTD | 2024

8 months ago 103
BOOK THIS SPACE FOR AD
ARTICLE AD

This lab has a “Check stock” feature that parses XML input but does not display the result.To solve the lab, exfiltrate the contents of the /etc/hostname file | Karthikeyan Nagaraj

Karthikeyan Nagaraj

This lab has a “Check stock” feature that parses XML input but does not display the result.To solve the lab, exfiltrate the contents of the /etc/hostname file.

Go to the Exploit server, change the name of file to /exploit.dtd, and paste the code with your Collaborator Link.

2. Now, Click a product, Click Check stock, Capture the request and send it to the repeater.

3. Go to the exploit server, copy the file URL, and paste it in the below Code.

4. Insert the following external entity definition in between the XML declaration and the stockCheck element. Replace the file URL below:

5. Click poll in the Collaborator tab and send the request.

6. After polling, you’ll find a parameter in the HTTP request, Copy and paste that code to solve the Lab.

Read Entire Article