Find XML external entity (XXE) processing
ProprietaryFinds DtdProcessing.Parse, ProhibitDtd = false, and non-null XmlResolver assignments on XmlDocument, XmlReaderSettings and XmlTextReader. Processing DTDs or resolving external entities from untrusted XML allows XXE attacks (file disclosure, SSRF, denial of service).
OpenRewrite. Recipes. CSharp. Security. FindXmlExternalEntityProcessingmod run . --recipe= OpenRewrite. Recipes. CSharp. Security. FindXmlExternalEntityProcessingInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.