Skip to content

Commit

Permalink
XEE injection security in XML extension. Reported by Man Yue Mo.
Browse files Browse the repository at this point in the history
  • Loading branch information
thboileau committed Oct 2, 2017
1 parent 93fbbc9 commit fe75aff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/tmpl/text/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changes log
===========

@version-full@ (@release-date@)
- Bugs fixed
- XEE injection security in XML extension.
Reported by Man Yue Mo.

- 2.3.11 (09/28/2017)
- Bugs fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ protected DocumentBuilder getDocumentBuilder() throws IOException {
dbf.setNamespaceAware(isNamespaceAware());
dbf.setValidating(isValidatingDtd());
dbf.setCoalescing(isCoalescing());
dbf.setExpandEntityReferences(isExpandingEntityRefs());
dbf.setExpandEntityReferences(false);
dbf.setFeature("http://xml.org/sax/features/external-parameter-entities",isExpandingEntityRefs());
dbf.setFeature("http://xml.org/sax/features/external-general-entities",isExpandingEntityRefs());

dbf.setIgnoringComments(isIgnoringComments());
dbf.setIgnoringElementContentWhitespace(isIgnoringExtraWhitespaces());

Expand Down

0 comments on commit fe75aff

Please # to comment.