-
Notifications
You must be signed in to change notification settings - Fork 250
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
Java: QL Query Detector for JHipster Generated CVE-2019-16303 #180
Comments
Your submission is now in status SecLab review. For information, the evaluation workflow is the following: |
Your submission is now in status CodeQL review. For information, the evaluation workflow is the following: |
Your submission is now in status SecLab finalize. For information, the evaluation workflow is the following: |
Your submission is now in status Pay. For information, the evaluation workflow is the following: |
Created Hackerone report 1065403 for bounty 267738 : [180] Java: QL Query Detector for JHipster Generated CVE-2019-16303 |
Your submission is now in status Closed. For information, the evaluation workflow is the following: |
CVE ID(s)
Report
Last year I found a widespread vulnerability where nearly the same vulnerable file existed in >15k repositories across GitHub. I eventually tracked down the root cause of this vulnerability to the project JHipster. JHipster is a code generator used to generate a basic MVC and microservice java applications. This code-generator contained a generator for creating a class
RandomUtil
. This class, when generated in it's complete form looked like this:You can see that there are ~15k instances of this vulnerability across GitHub here:
https://github.com/search?l=Java&p=2&q=Utility+class+for+generating+random+Strings.+RandomUtil&type=Code
By working with the GitHub staff, we were able to extract 9k repositories from that search and ingest them into LGTM.com.
From there, the query was run against all Java projects on LGTM.com resulting in this query result.
Hopefully at GitHub Universe? Maybe?
Result(s)
https://lgtm.com/query/8455949919266029298
The query returned 5,511 vulnerable projects.
CodeQL PR
github/codeql#4312
The text was updated successfully, but these errors were encountered: