-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
---
-
---
Various deployment unit processors can use some hardening to ensure they handle https://cwe.mitre.org/data/definitions/611.html properly when parsing deployment descriptors.
Even in a trusted environment with trusted sources, it's recommended that you use both external access restrictions and resolvers to minimize dependencies on external sources.
The 'external access restrictions' bit is handled by not calling XMLInputFactory.createXMLStreamReader without first calling XMLInput.setProperty(IS_SUPPORTING_EXTERNAL_ENTITIES, false).
The 'resolvers' bit is handled by setting an XMLResolver that always returns "" from the resolveEntity method.
In various DUPs we are using a mix of these approaches, or none.
This is minor because a deployment unit descriptor is trusted content.