Property
Languagecsharp
Severitymedium
CWECWE-611: Improper Restriction of XML External Entity Reference
OWASPA04:2017 - XML External Entities (XXE)
Confidence LevelMedium
Impact LevelMedium
Likelihood LevelLow

Description#

The code enables parsing of XML input with DTD processing and allows an external XmlResolver, which can be dangerous if the XML data comes from user input. This configuration makes the application vulnerable to XML External Entity (XXE) attacks.

Impact#

If exploited, an attacker could read sensitive files from the server, perform network requests from the application’s environment, or potentially execute denial-of-service attacks. This could lead to data leaks or compromise of the application’s underlying infrastructure.