From f63de33f659efcb5f9ae80982dc4c647d7ab7525 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Wed, 29 Jun 2022 19:51:58 +0000 Subject: [PATCH 1/2] vuln-fix: Use HTTPS instead of HTTP to resolve dependencies 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 Co-authored-by: Moderne From f99551ec7f93521fa9c8b67c697442ce691bdd14 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sat, 16 Dec 2023 06:19:43 +0000 Subject: [PATCH 2/2] 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 --- pom.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index f52155d..faaebd2 100644 --- a/pom.xml +++ b/pom.xml @@ -20,27 +20,27 @@ maven - http://repo1.maven.org/maven2/ + https://repo1.maven.org/maven2/ true java.net - http://download.java.net/maven/2 + https://download.java.net/maven/2 org.springframework.maven.snapshots - http://s3.amazonaws.com/maven.springframework.org/snapshot + https://s3.amazonaws.com/maven.springframework.org/snapshot repository.springframework.milestone Spring Framework Maven Milestone Repository - http://maven.springframework.org/milestone + https://maven.springframework.org/milestone spring-libs - http://repo.springsource.org/libs-release + https://repo.springsource.org/libs-release @@ -56,7 +56,7 @@ apache - http://repository.apache.org/ + https://repository.apache.org/ true