Question 80
A document-import service accepts XML from business partners. A small XML file defines entities that expand recursively, causing the parser to allocate enormous amounts of memory and stall. Which application weakness is being exploited?
Explanation
Correct Answer
Entity expansion can make a tiny input consume disproportionate CPU and memory when a parser resolves nested definitions. Restricting or disabling risky entity features, setting parser limits, and bounding processing resources address the failure. The problem is parser resource exhaustion, even when the XML file itself looks small.
Incorrect Answers
SQL injection affects database query construction when untrusted input is interpreted as SQL. The file processing stalls before any specific database manipulation is described. The root cause is unbounded XML entity expansion, not an unsafe SQL identifier.
A replayed cryptographic token would exploit insufficient freshness or binding in an authentication protocol. Here the malicious structure is an XML document that causes parser exhaustion. Nothing suggests a signed token was captured and reused to authenticate a request.
Password spraying tests a small number of likely passwords against many accounts to avoid lockout thresholds. The import failure happens while expanding XML definitions and does not involve repeated guesses at authentication credentials for the operator.