You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2021/05/27 19:02:00 UTC

[jira] [Closed] (DAFFODIL-1422) disallow doctype decls in all XML & XSD that we read in

     [ https://issues.apache.org/jira/browse/DAFFODIL-1422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-1422.
-----------------------------------

Verified the specified commit (commit 62ac1047a18979bea1f5d6c668eefeaaae39d64b) is included in the latest pull from the daffodil repository.

Verified changes specified in the commit comment were implemented in the update via review.

Verified the all daffodil sub-project sbt test suites execute successfully.

Verified the nightly test schemas compile and save successfully.

Verified the nightly test suite executes successfully.

> disallow doctype decls in all XML & XSD that we read in
> -------------------------------------------------------
>
>                 Key: DAFFODIL-1422
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1422
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: API, Back End, Front End
>    Affects Versions: 1.1.0
>            Reporter: Mike Beckerle
>            Assignee: Mike Beckerle
>            Priority: Critical
>             Fix For: 3.2.0
>
>
> We should be doing this:
> {code}
> spf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true)
> {code}
> and simply rejecting things with doctype decls. This would apply to all the XML we consume be it a DFDL schema, configuration file, or input data for unparsing. 
> This is needed because of problems that doctype decls can create where the incoming XML can cause the JVM to crash with out-of-memory-errors (OOME). 
> See https://en.wikipedia.org/wiki/Billion_laughs for one vulnerability that this fixes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)