An enterprise web application accepts XML-based configuration files uploaded by system administrators. During a code security audit of the backend parser, an analyst discovers that the XML parser is configured to parse inline Document Type Definitions (DTDs) and resolve external entity references by default. Which of the following vulnerabilities is directly created by this parser configuration flaw?
- ACross-Site Scripting (XSS)
- XML External Entity (XXE)Answer
- CNetwork Firewall Filtering Weakness
- DBroken Object Level Authorization (BOLA)
Answer
The XML External Entity (XXE) vulnerability allows attackers to reference external entities in XML payloads when inline DTD parsing and external entity resolution are enabled.
Enabling inline DTD processing and external entity resolution in an XML parser directly introduces an XML External Entity (XXE) vulnerability. Attackers can leverage custom entity definitions (e.g., system file paths or internal URIs) to read sensitive files from the server or conduct server-side request forgery.
Step-by-Step Solution
Key Concept
XML External Entity (XXE) Vulnerability