-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce chance of XXE #135
Comments
Default settings for these properties are mandated by Stax API (javax.xml.stream) specification, as far as I remember. In latter case (unspecified, left up to impl) there would then be the question of backwards incompatibility so change would at least have to go in a minor update, or perhaps even major. This change could easily break existing systems where resolution of external parsed entities is required, and that do not explicitly enable it. So: if you find Stax API notes to allow this I can consider it. From security perspective this could be beneficial. |
@cowtowncoder I had similar concerns. Is there anywhere else in Jackson where passing in a We don't hit the block in If not I think this is reasonable to close. |
If there are code paths where additional overrides are needed, it'd be good to know -- I am not aware of any. As to this issue: as I said, I would consider change if it was allowed but last I remember Stax specification (combination of JSR-173, javax.xml.stream Javadocs) did specify settings that Woodstox uses. So I'd need to see some documentation to change my understanding, if someone has time to go dig up the latest state of things. |
Sounds good, closing this. |
In FasterXML/jackson-dataformat-xml#190 it seems like the following are disabled by default
https://github.com/FasterXML/jackson-dataformat-xml/blob/c626be64b87394804ce516a9d31b575270472118/src/main/java/com/fasterxml/jackson/dataformat/xml/XmlFactoryBuilder.java#L102-L105
However, in woodstox this appears to be enabled by default.
https://github.com/FasterXML/woodstox/blob/master/src/main/java/com/ctc/wstx/api/ReaderConfig.java#L182-L183
Should these be disabled by default as well and where would one do that?
I am able to fix this in code with the following.
Should these be off by default here as well?
The text was updated successfully, but these errors were encountered: