BACK TO TOPICS
Advanced

XML External Entity (XXE)

1. Understanding XML Entities

XXE is a vulnerability that abuses the feature of XML parsers to parse external entities.

What is an Entity?

In XML, an entity is like a variable. You define it once and use it multiple times.

<!DOCTYPE foo [ <!ENTITY name "John Doe"> ]>
<user>&name;</user>

The parser replaces &name; with "John Doe".

External Entities

Entities can also refer to external resources (files, URLs).

<!ENTITY xxe SYSTEM "file:///etc/passwd">

Module Progress

1Understanding XML Entities
2File Disclosure Attack
3SSRF via XXE
4Blind XXE
5Prevention
Progress20%