[medium] devskim: Assigning an XmlResolver lets the parser follow external references in the document, including file:// and http:// URIs. ADM.10010's worked example sets XmlResolver to null.
#916
Do not enable external entity resolution.: Assigning an XmlResolver lets the parser follow external references in the document, including file:// and http:// URIs. ADM.10010's worked example sets XmlResolver to null.
## medium Finding
**Scanner:** devskim
**Severity:** medium
**Rule:** DS132783
**CWE:** CWE-611
**CRA:** cra-ai-20 — Automatisierte Sicherheitstests (Annex I)
### Description
Do not enable external entity resolution.
Do not enable external entity resolution.: Assigning an XmlResolver lets the parser follow external references in the document, including file:// and http:// URIs. ADM.10010's worked example sets XmlResolver to null.
### Location
**File:** `compliance-agent/rules/cra_semgrep_csharp.cs` (line 132)
### Code
```
settings.XmlResolver = new XmlUrlResolver();
```
### Remediation
Exclude rule fixture/example paths from XML parsing scans or move examples out of production paths.
---
*Fingerprint:* `59214fb444285cb1a51d879ec61cad43da612f69172eba35fa00f83c26a5b849`
*Generated by compliance-scanner*
[Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
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.
**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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
medium Finding
Scanner: devskim
Severity: medium
Rule: DS132783
CWE: CWE-611
CRA: cra-ai-20 — Automatisierte Sicherheitstests (Annex I)
Description
Do not enable external entity resolution.
Do not enable external entity resolution.: Assigning an XmlResolver lets the parser follow external references in the document, including file:// and http:// URIs. ADM.10010's worked example sets XmlResolver to null.
Location
File:
compliance-agent/rules/cra_semgrep_csharp.cs(line 132)Code
Remediation
Exclude rule fixture/example paths from XML parsing scans or move examples out of production paths.
Fingerprint:
59214fb444285cb1a51d879ec61cad43da612f69172eba35fa00f83c26a5b849Generated 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.