All rules →
Rules / C#
SHIELD-CSHARP-010

XXE via XmlTextReader without resolver hardening

highC#CWE-611CVSS 7.5

What it detects

An XmlTextReader is created from a variable source without disabling DTD processing, allowing external entity resolution.

How to fix

Use XmlReader.Create with XmlReaderSettings that set DtdProcessing to Prohibit and XmlResolver to null.

Scan your repo freeFull documentation
Back to all rules
SHIELD-CSHARP-010: XXE via XmlTextReader without resolver hardening — Zennoxa Shield