CompTIA CySA+ (CS0-002) — Question 239

During an investigation, an analyst discovers a server is vulnerable to an attack against an application that processes XML input. Which of the following controls must be in place to prevent such an attack?

Answer options

Correct answer: D

Explanation

The correct answer is D because disabling document type definitions prevents the processing of potentially malicious external entities that can lead to attacks such as XML External Entity (XXE) attacks. The other options either do not address the specific threat or are not effective enough to prevent the vulnerabilities associated with XML processing.