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 - Separate guidelines (XMLReader/SaxParser/DocumentParser) #27

Closed
h3xstream opened this issue Dec 24, 2014 · 1 comment
Closed

XXE - Separate guidelines (XMLReader/SaxParser/DocumentParser) #27

h3xstream opened this issue Dec 24, 2014 · 1 comment
Assignees
Labels
enhancement New feature or improvement to existing detector.
Milestone

Comments

@h3xstream
Copy link
Member

The remediation should be specific to each api. This would require to separate XMLReader/SaxParser/DocumentParser description.

References:

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
    dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
} catch (ParserConfigurationException e) { //handle error }

~

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
    dbf.setFeature("http://xml.org/sax/features/external-general-entities", false);
    dbf.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
} catch (ParserConfigurationException e) { //handle error }

https://www.owasp.org/index.php/XML_External_Entity_%28XXE%29_Processing

@h3xstream h3xstream added the enhancement New feature or improvement to existing detector. label Dec 24, 2014
@h3xstream h3xstream self-assigned this Dec 24, 2014
@h3xstream
Copy link
Member Author

done

@h3xstream h3xstream added this to the version-1.3.1 milestone Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing detector.
Projects
None yet
Development

No branches or pull requests

1 participant