After the Android platform is added to Cordova the first time, or after a project is created using the build scripts, the scripts will fetch Gradle on the first build. However, since the default URI is not using https, it is vulnerable to a MiTM and the Gradle executable is not safe. The severity of this issue is high due to the fact that the build scripts immediately start a build after Gradle has been fetched. Developers who are concerned about this issue should install version 6.1.2 or higher of Cordova-Android. If developers are unable to install the latest version, this vulnerability can easily be mitigated by setting the CORDOVAANDROIDGRADLEDISTRIBUTIONURL environment variable to https://services.gradle.org/distributions/gradle-2.14.1-all.zip
[
{
"source": "https://github.com/apache/cordova-android/commit/37ee3cdf81e810697e6780a4325a2cec4cce5968",
"target": {
"file": "framework/src/org/apache/cordova/CordovaWebView.java"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2017-3160-2b43499d",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"96936190387046404270703134661675771040",
"29879294918869099861397410465350151520",
"88333167400376117557867499877764349717",
"309572605990178499544204547139829020114"
]
}
}
]