Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants