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 Playlist Parsers #9

Open
prodigysml opened this issue Oct 24, 2018 · 1 comment
Open

XXE in Playlist Parsers #9

prodigysml opened this issue Oct 24, 2018 · 1 comment

Comments

@prodigysml
Copy link

prodigysml commented Oct 24, 2018

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:

https://github.com/wseemann/JavaPlaylistParser/blob/c2c6c9fb54d135b02cfe8d9452566997cd86d9b1/src/wseemann/media/jplaylistparser/parser/asx/ASXPlaylistParser.java#L136

Remediation

https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Prevention_Cheat_Sheet

@goxr3plus
Copy link
Owner

@prodigysml Wow , how did you found it out ? I mean am i using https://github.com/wseemann/JavaPlaylistParser inside the application and i didn't knew it :) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants