Red Hat Bugzilla – Bug 1439980
CVE-2017-7465 JBoss: JAXP in EAP 7.0 allows RCE via XSL
Last modified: 2018-01-29 22:15:41 EST
It was found that the JAXP implementation used in EAP 7.0 has insecure defaults for XSL processing. An attacker could use this flaw to cause remote code execution if they are able to provide XSLT for parsing.
Acknowledgments: Name: Jason Shepherd (Red Hat)
Mitigation: Doing a transform in JAXP requires the use of a 'javax.xml.transform.TransformerFactory'. If the FEATURE_SECURE_PROCESSING feature is set to 'true', it mitigates this vulnerability. Eg: TransformerFactory factory = TransformerFactory.newInstance(); factory.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, true);