Description
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 CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL environment variable to https://services.gradle.org/distributions/gradle-2.14.1-all.zip
Remediation
References
http://www.securityfocus.com/bid/95838
https://cordova.apache.org/announcements/2017/01/27/android-612.html
https://www.oracle.com/security-alerts/cpuapr2020.html
Related Vulnerabilities
CVE-2020-1938 Vulnerability in maven package org.apache.tomcat:tomcat-util
CVE-2019-18212 Vulnerability in maven package org.lsp4xml:org.eclipse.lsp4xml.extensions.emmet
CVE-2022-36025 Vulnerability in maven package org.hyperledger.besu:evm
CVE-2017-5941 Vulnerability in npm package node-serialize
CVE-2021-28170 Vulnerability in maven package org.glassfish:jakarta.el