From dd26581cd3be7bfa4844acaef66cea4910b84322 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Wed, 6 Jul 2022 00:18:51 +0000 Subject: [PATCH] vuln-fix: Use HTTPS instead of HTTP to resolve deps CVE-2021-26291 This fixes a security vulnerability in this project where the `pom.xml` files were configuring Maven to resolve dependencies over HTTP instead of HTTPS. Weakness: CWE-829: Inclusion of Functionality from Untrusted Control Sphere Severity: High CVSSS: 8.1 Detection: CodeQL & OpenRewrite (https://public.moderne.io/recipes/org.openrewrite.maven.security.UseHttpsForRepositories) Reported-by: Jonathan Leitschuh Signed-off-by: Jonathan Leitschuh Bug-tracker: https://github.com/JLLeitschuh/security-research/issues/8 Co-authored-by: Moderne --- APDPlat_Core/pom.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/APDPlat_Core/pom.xml b/APDPlat_Core/pom.xml index 64a5f106..f33aa0d3 100644 --- a/APDPlat_Core/pom.xml +++ b/APDPlat_Core/pom.xml @@ -120,7 +120,7 @@ alimaven aliyun maven - http://maven.aliyun.com/nexus/content/groups/public/ + https://maven.aliyun.com/nexus/content/groups/public/ spring-releases @@ -133,12 +133,12 @@ org.springframework.maven.milestone Spring Framework Maven Milestone Repository - http://maven.springframework.org/milestone + https://maven.springframework.org/milestone offical Maven Official Repository - http://repo1.maven.org/maven2 + https://repo1.maven.org/maven2 false @@ -146,7 +146,7 @@ jboss Jboss Repository - http://repository.jboss.org/nexus/content/groups/public-jboss/ + https://repository.jboss.org/nexus/content/groups/public-jboss/ false @@ -154,7 +154,7 @@ java.net Java.net Repository - http://download.java.net/maven/2/ + https://download.java.net/maven/2/ false @@ -168,7 +168,7 @@ alimaven aliyun maven - http://maven.aliyun.com/nexus/content/groups/public/ + https://maven.aliyun.com/nexus/content/groups/public/ spring-releases @@ -181,12 +181,12 @@ org.springframework.maven.milestone Spring Framework Maven Milestone Repository - http://maven.springframework.org/milestone + https://maven.springframework.org/milestone offical Maven Official Repository - http://repo1.maven.org/maven2 + https://repo1.maven.org/maven2 false @@ -194,12 +194,12 @@ oss.sonatype.org oss.sonatype.org - http://oss.sonatype.org/content/groups/public + https://oss.sonatype.org/content/groups/public codehaus-snapshots Codehaus Snapshots - http://nexus.codehaus.org/snapshots/ + https://nexus.codehaus.org/snapshots/ false