Skip to content

Comments

Disable the parsing of external general entities and external paramet…#153

Merged
bohmber merged 3 commits intoapache:masterfrom
bohmber:MYFACES-4377
Jan 22, 2021
Merged

Disable the parsing of external general entities and external paramet…#153
bohmber merged 3 commits intoapache:masterfrom
bohmber:MYFACES-4377

Conversation

@bohmber
Copy link
Contributor

@bohmber bohmber commented Jan 19, 2021

…er entities in XML parsing code

https://issues.apache.org/jira/browse/MYFACES-4377

@bohmber bohmber requested a review from tandraschko January 19, 2021 15:37
@tandraschko
Copy link
Member

Could this break something?

@bohmber
Copy link
Contributor Author

bohmber commented Jan 19, 2021

adding

setFeature( "http://apache.org/xml/features/disallow-doctype-decl", true );

would break.

The rest is from here https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html

I checked other apache projects many of them doing the same

@bohmber bohmber requested review from volosied and removed request for tandraschko January 21, 2021 09:35
@tandraschko
Copy link
Member

then +1

@bohmber bohmber merged commit 66b1826 into apache:master Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants