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
Disable XML External Entity load in XmlUtil.java in tests #6133
Comments
this is in the @prodigysml You didn't find any issues with the code under the |
@prodigysml , please let us know how you detected this security issue. If you know how to fix it, please let us know, or just send PR. |
This was basically just reading code. Apologies, I didn't realise it was a test folder. |
If you know how to fix it, please send Pull Request. |
@JLLeitschuh No. |
Okay. This should be closed then probably. |
@JLLeitschuh The issue hasn't been fixed which is why it is still open. It won't affect users since it is only in test code. |
Fix was merged |
we deploy our test jar to maven central , example http://repo1.maven.org/maven2/com/puppycrawl/tools/checkstyle/8.18/ , so potentially users can reuse out tests classes in their applications/plugins/.... . |
@romani Since this was deployed, as a published consumable by users, does this warrant another CVE number? @prodigysml Did you see this vulnerability impacting your active development environment? |
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
XMLReader
without securely disabling entities:checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/internal/utils/XmlUtil.java
Line 56 in 27512b0
The text was updated successfully, but these errors were encountered: