XXE Injection: XXE Inside DOCX file

XML external entities (XXE)Exploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Format of an Open XML file (inject the payload in any .xml file):

  • /_rels/.rels

  • [Content_Types].xml

  • Default Main Document Part

    • /word/document.xml

    • /ppt/presentation.xml

    • /xl/workbook.xml

Then update the file zip -u xxe.docx [Content_Types].xml

Tool : https://github.com/BuffaloWill/oxml_xxe

xml
DOCX/XLSX/PPTX
ODT/ODG/ODP/ODS
SVG
XML
PDF (experimental)
JPG (experimental)
GIF (experimental)

Comments

No comments yet.