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

A potential XXE vulnerability found on rhino #479

Open
brianwrf opened this Issue Sep 28, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@brianwrf
Copy link

brianwrf commented Sep 28, 2018

Howdy,

Just found a potential XXE vulnerability on rhino as show below, it seems function toXml didn't add any protection from XXE vulnerability when parsing XML document.

https://github.com/mozilla/rhino/blob/master/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java#L225

You may need to follow the OWASP guide below which provides concise information to prevent this vulnerability.
https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet#Java

Thanks,
Brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment