From cb5465a72d265dc72ab826658c62f20cffa1dce1 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sat, 16 Dec 2023 16:45:37 +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 --- spring-fileupload-tutorial/pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-fileupload-tutorial/pom.xml b/spring-fileupload-tutorial/pom.xml index c176c8e..bec6f7b 100644 --- a/spring-fileupload-tutorial/pom.xml +++ b/spring-fileupload-tutorial/pom.xml @@ -243,7 +243,7 @@ org.springframework.maven.release Spring Maven Release Repository - http://maven.springframework.org/release + https://maven.springframework.org/release true false @@ -252,7 +252,7 @@ org.springframework.maven.snapshot Spring Maven Snapshot Repository - http://maven.springframework.org/snapshot + https://maven.springframework.org/snapshot false true @@ -261,7 +261,7 @@ org.springframework.maven.milestone Spring Maven Milestone Repository - http://maven.springframework.org/milestone + https://maven.springframework.org/milestone false