XXE Injections

Detection

File retrive

xInclude attack

When you can't modify the DOCTYPE element use the XInclude to target

XXE by svg file upload

External Entities

  1. XML External Entities (XXE):

    • XML allows the use of external entities, which are placeholders in the XML document that can refer to external resources (files, URLs, etc.).

    • When external entity support is enabled, the XML processor retrieves the content of the external resource and replaces the entity in the document.

SSRF

Out of band exfiltrate

  • DTD defines the structure of XML documents and allows the declaration of entities, including external entities.

  • Attackers can inject a malicious DTD that declares external entities pointing to sensitive files or network resources.

Retrive data by error message

Error with local existing DTD

Last updated