Test filesStructured data › xxe-file-disclosure.xml

Sample XML file

XML declaring an external entity that reads a local file. Targets /etc/hostname - deliberately innocuous rather than /etc/passwd.

↓ Download xxe-file-disclosure.xml
Filenamexxe-file-disclosure.xml
FormatXML
Size141 bytes (141 bytes)
MIME typeapplication/xml
SHA-2563b24847c3f0f1c1e34b3d8b2bee9d2229da9613a35b7163bb4842ffcaf4aae83
What this file catchesParsers with external entity resolution enabled by default (older libxml2, Java DocumentBuilder, .NET XmlTextReader). If the response echoes your hostname back, you have a file-disclosure hole.

Download & verify

curl -fsSL -o "xxe-file-disclosure.xml" "https://files.hexaqa.com/xml/xxe-file-disclosure.xml"
curl -fsSL "https://files.hexaqa.com/xml/xxe-file-disclosure.xml" | sha256sum # expect: 3b24847c3f0f1c1e34b3d8b2bee9d2229da9613a35b7163bb4842ffcaf4aae83

More structured data test files

1million-rows.csvbom-and-semicolons.csvformula-injection.csvquoting-nightmare.csvragged-rows.csvvalid-simple.csvdeeply-nested-100000.jsonlarge-array-100mb.json

← All Structured data files