You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (Jira)" <ji...@apache.org> on 2022/01/20 17:18:00 UTC

[jira] [Created] (TIKA-3654) Add OfflineContentHandler to XMLReaderUtils.parseSAX

Tim Allison created TIKA-3654:
---------------------------------

             Summary: Add OfflineContentHandler to XMLReaderUtils.parseSAX
                 Key: TIKA-3654
                 URL: https://issues.apache.org/jira/browse/TIKA-3654
             Project: Tika
          Issue Type: Improvement
            Reporter: Tim Allison


The OfflineContentHandler is another layer of protection against external entity vulnerabilities.  Parsers are responsible for adding it before calling XMLReaderUtils.parseSAX().  When new parsers come it, devs may not know to add this extra layer.  Let's modify the code in 2.x at least to add the offline contenthandler automatically in XMLReaderUtils.parseSAX().



--
This message was sent by Atlassian Jira
(v8.20.1#820001)