Skip to content

Commit d317e59

Browse files
vuln-fix: Use HTTPS instead of HTTP to resolve dependencies
This fixes a security vulnerability in this project where the `build.gradle` files were configuring Gradle to resolve dependencies over HTTP instead of HTTPS. Weakness: CWE-829: Inclusion of Functionality from Untrusted Control Sphere Severity: High CVSSS: 8.1 Detection: OpenRewrite Reported-by: Jonathan Leitschuh <[email protected]> Signed-off-by: Jonathan Leitschuh <[email protected]> Bug-tracker: JLLeitschuh/security-research#9 Co-authored-by: Moderne <[email protected]>
1 parent b192ac2 commit d317e59

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ buildscript {
44

55
repositories {
66
if (project['CERN_VM']) {
7-
maven { url 'http://artifactory.cern.ch/ds-jcenter' }
8-
maven { url 'http://artifactory.cern.ch/development' }
9-
maven { url 'http://artifactory.cern.ch/gradle-plugins' }
7+
maven { url 'https://artifactory.cern.ch/ds-jcenter' }
8+
maven { url 'https://artifactory.cern.ch/development' }
9+
maven { url 'https://artifactory.cern.ch/gradle-plugins' }
1010
} else {
1111
gradlePluginPortal()
1212
}
@@ -29,8 +29,8 @@ sourceCompatibility = JavaVersion.VERSION_1_8
2929

3030
repositories {
3131
if (project['CERN_VM']) {
32-
maven { url 'http://artifactory.cern.ch/ds-jcenter' }
33-
maven { url 'http://artifactory.cern.ch/development' }
32+
maven { url 'https://artifactory.cern.ch/ds-jcenter' }
33+
maven { url 'https://artifactory.cern.ch/development' }
3434
} else {
3535
mavenCentral()
3636
}
@@ -130,4 +130,4 @@ if (!project['CERN_VM']) {
130130
if (project['DEPLOYMENT']) {
131131
println 'Applying deployment scripts'
132132
apply from: 'https://raw.githubusercontent.com/ossgang/gradle-scripts/master/deployment/deploy-to-maven-central.gradle'
133-
}
133+
}

0 commit comments

Comments
 (0)