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 #172

Open
QiAnXinCodeSafe opened this issue Jul 18, 2019 · 2 comments
Open

xxe #172

QiAnXinCodeSafe opened this issue Jul 18, 2019 · 2 comments

Comments

@QiAnXinCodeSafe
Copy link

The xml external entity is not disabled when parsing the xml string. When analyzing malicious apk or app, it may cause xml external entity injection.
图片

@borisf
Copy link
Collaborator

borisf commented Jul 18, 2019

Any suggestions how to fix

@QiAnXinCodeSafe
Copy link
Author

QiAnXinCodeSafe commented Jul 23, 2019

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

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

No branches or pull requests

2 participants