[medium] devskim: DtdProcessing.Parse, or ProhibitDtd set to false, allows the XML parser to process a DTD. A DTD can declare external entities that read local files or make network requests, and can expand recursively to exhaust memory. #917
Reference in new issue
Block a user
medium Finding
Scanner: devskim
Severity: medium
Rule: DS132782
CWE: CWE-611
Description
Do not enable external entity resolution.
Do not enable external entity resolution.: DtdProcessing.Parse, or ProhibitDtd set to false, allows the XML parser to process a DTD. A DTD can declare external entities that read local files or make network requests, and can expand recursively to exhaust memory.
Location
File:
compliance-agent/rules/cra_semgrep_csharp.cs(line 129)Code
Remediation
Set DtdProcessing to Prohibit, as shown in the worked example in ADM.10010.
Fingerprint:
d1eae0c0de42466abf6724de26b22cd527d3eb9304ac1bda186e6261189c18e7Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen
Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.