Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.1
-
None
-
None
Description
When using the FEATURE_SECURE_PROCESSING ("http://javax.xml.XMLConstants/feature/secure-processing") on a TransformerFactory it seems appropriate that the output properties:
{http://xml.apache.org/xalan}
content-handler
entities
content-handler
entities
should be ignored (see http://xml.apache.org/xalan-j/usagepatterns.html#outputprops)
These properties can be used to load an arbitrary class or access an arbitrary URL/resource so are problematic when secure processing is desired.
<xsl:output xalan:content-handler="org.example.BadClass" ...
<xsl:output xalan:entities="http://example.org/reallyLargeFile.bin" ...
These features could be used to load a class that had undesirable side-effects or to load a large file and exhaust memory, etc.
Attachments
Attachments
Issue Links
- is related to
-
XALANJ-2591 Transform XSLT using Xalan into XHTML fails with secure processing feature when using attributes
- Open