Skip to content
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

XXE in ImportFromSMathStudio.java #79

Closed
prodigysml opened this issue Sep 29, 2018 · 2 comments
Closed

XXE in ImportFromSMathStudio.java #79

prodigysml opened this issue Sep 29, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@prodigysml
Copy link

The Issue

An XML External Entity attack is a type of attack against an application that parses XML input. This attack occurs when XML input containing a reference to an external entity is processed by a weakly configured XML parser. This attack may lead to the disclosure of confidential data, denial of service, server side request forgery, port scanning from the perspective of the machine where the parser is located, and other system impacts.

Where the Issue Occurred

The following code snippets display the usage of DocumentBuilderFactory without securely disabling entities:

@mkulesh
Copy link
Owner

mkulesh commented Oct 10, 2018

Dear @prodigysml, thanks for submitting this issue. I studied https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet and found, that only setExpandEntityReferences(false) is possible for Android DocumentBuilderFactory. All other recommendations from above mentioned link produce some exceptions. Therefore, I only added setExpandEntityReferences(false) for the DocumentBuilderFactory. I hope, the problem is solved. Are you agree with this solution?

@mkulesh mkulesh self-assigned this Oct 10, 2018
@mkulesh mkulesh added the bug label Oct 10, 2018
@mkulesh mkulesh added this to the Implemented milestone Oct 10, 2018
@mkulesh
Copy link
Owner

mkulesh commented Nov 4, 2018

Fixed and released in 2.17.3

@mkulesh mkulesh closed this as completed Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants