-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add test data for node.Js report #136
Conversation
Hi @thib3113 |
Please pretty print your big xml file. Possible tools: https://stackoverflow.com/questions/16090869/how-to-pretty-print-xml-from-the-command-line |
About the big file, I've just add it to show how big can become a node.js analysis . So just adding this to test an "unmodified" report . But I can pretty print it without problems ( but tomorrow ) . About the npm part, I know I'll read your link tomorrow too . |
So, after some research, it seems the version 5.0.0-SNAPSHOT ( directly from the git, with commit jeremylong/DependencyCheck@c747bac ) , seems to produce this in the xml : <vulnerability source="NPM">
<name>786</name>
<severity>low</severity>
<cwes/>
<description>
Versions of `braces` prior to 2.3.1 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.
</description>
<references>
<reference>
<source>Advisory 786: Regular Expression Denial of Service</source>
<name>
- [GitHub Commit](https://github.com/micromatch/braces/commit/abdafb0cae1e0c00f184abbadc692f4eaa98f451)
</name>
</reference>
</references>
<vulnerableSoftware>
<software>cpe:2.3:a:*:braces:\<2.3.1:*:*:*:*:*:*:*</software>
</vulnerableSoftware>
</vulnerability> As you can see, a |
Hi @Reamer , here is it, I add more assertions, testing jquery, brace, and kind of ( jquery contain a NVD vulnerability, brace a NPM vulnerability, and kind-of without vulnerabilities ) . ( I'm not a java developper, so I didn't really know how to test only this 3 dependencies on the big report, so I've done 3 basics conditions ) |
All good, thanks for your work. |
* Add test data for node.Js report
Following this issue #135 I'm adding some tests datas