Post

IML - XML External Entity Injection

XML External Entity Injection - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.



IML - XML External Entity Injection

image1

  • Copy the contents of the xml

image2

  • Create file and paste the xml data in. Then add the:
1
<!DOCTYPE store[<!ENTITY signature SYSTEM "file:///tmp/token.txt" >]>

to the top

  • Make sure the name next to DOCTYPE correlates with the name in the xml script ie. store
  • Add the variable \&signature; somewhere in the script

image3

  • Upload file and choose from dropdown list

image4

image5

This post is licensed under CC BY 4.0 by the author.