From 6309ccc9ae2fcb08934d7d274a3b4c4744d92275 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sun, 17 Dec 2023 04:23:42 +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 CVSS: 8.1 Detection: CodeQL & OpenRewrite (https://app.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 Detection: CodeQL (https://codeql.github.com/codeql-query-help/java/java-maven-non-https-url/) & OpenRewrite (https://app.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 Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/IfHkrYfxx?organizationId=QWxsIEdpdEh1Yg%3D%3D Co-authored-by: Moderne --- multi-ctw/pom.xml | 4 ++-- multi-ltw/pom.xml | 4 ++-- pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/multi-ctw/pom.xml b/multi-ctw/pom.xml index 1f6a1d6..91f8ab0 100644 --- a/multi-ctw/pom.xml +++ b/multi-ctw/pom.xml @@ -39,7 +39,7 @@ spring-libs-snapshot - http://repo.spring.io/libs-snapshot + https://repo.spring.io/libs-snapshot true @@ -52,7 +52,7 @@ spring-libs-snapshot - http://repo.spring.io/libs-snapshot + https://repo.spring.io/libs-snapshot true diff --git a/multi-ltw/pom.xml b/multi-ltw/pom.xml index 9884b6e..f1b7f2e 100644 --- a/multi-ltw/pom.xml +++ b/multi-ltw/pom.xml @@ -39,7 +39,7 @@ spring-libs-snapshot - http://repo.spring.io/libs-snapshot + https://repo.spring.io/libs-snapshot true @@ -52,7 +52,7 @@ spring-libs-snapshot - http://repo.spring.io/libs-snapshot + https://repo.spring.io/libs-snapshot true diff --git a/pom.xml b/pom.xml index d491e5e..feed3fb 100644 --- a/pom.xml +++ b/pom.xml @@ -43,7 +43,7 @@ spring-libs-snapshot - http://repo.spring.io/libs-snapshot + https://repo.spring.io/libs-snapshot true @@ -56,7 +56,7 @@ spring-libs-snapshot - http://repo.spring.io/libs-snapshot + https://repo.spring.io/libs-snapshot true