-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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] Vulnerability in version of gradlew generated by default #2094
Comments
Thank you for the report. Do you want to open a pull request for that? |
I think that the graddle wrapper part should be generated by the user after he has generated the client library to ensure all is always up to date. I suggested to :
@jmini what do you think ? |
@karismann I guess that could break automation of someone possibly relying on the files being there. But if breaking backward compatibility for the build isn't an issue, that approach would probably be fine, though the gradle page you refer to seems to prefer having them checked in to version control:
|
Pinging the Java technical committee: @bbdouglas, @JFCote, @sreeshas, @jfiala, @lukoyanov, @cbornet, @jeff9finger |
Description
While generating scala-httpclient, Java or android clients, they all use an old template for
gradle-wrapper.properties.mustache
pointing to Gradle version 2.6.Our dependency vulnerability scanner picked up on this version being vulnerable as it allows allows remote attackers to execute arbitrary code via a crafted serialized object
See https://nvd.nist.gov/vuln/detail/CVE-2016-6199 for reference.
The configuration files making gradle vulernable are located here:
openapi-generator/modules/openapi-generator/src/main/resources/android/gradle-wrapper.properties.mustache
openapi-generator/modules/openapi-generator/src/main/resources/Java/gradle-wrapper.properties.mustache
openapi-generator/modules/openapi-generator/src/main/resources/scala-httpclient/gradle-wrapper.properties.mustache
openapi-generator version
all versions
Suggest a fix
I'm not familiar into the build process on these clients, so I'm not sure if this version is old just because it has been "forgotten", or if there are valid reasons to use such an old version of Gradle.
I think it should be fairly safe to upgrade the one used to Gradle version 2.14.1 at least (released in Jul 18. 2016.
It could be considered if upgrading it to a more up to date version of gradle would be better.
The text was updated successfully, but these errors were encountered: