From 8bc4bf8f789c4c21395dcb776ffc3d87b732fb6c Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sun, 17 Dec 2023 15:38:24 +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 --- ocrevalUAtion/pom.xml | 2 +- tools/pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ocrevalUAtion/pom.xml b/ocrevalUAtion/pom.xml index 2e3a43fb..45b5a58e 100644 --- a/ocrevalUAtion/pom.xml +++ b/ocrevalUAtion/pom.xml @@ -264,7 +264,7 @@ com.springsource.repository.bundles.external SpringSource Enterprise Bundle Repository - External Bundle Releases - http://repository.springsource.com/maven/bundles/external + https://repository.springsource.com/maven/bundles/external diff --git a/tools/pom.xml b/tools/pom.xml index f40d0ea6..7f6c3259 100644 --- a/tools/pom.xml +++ b/tools/pom.xml @@ -47,11 +47,11 @@ central - http://repo1.maven.org/maven2 + https://repo1.maven.org/maven2 imagej - http://maven.imagej.net/content/groups/public + https://maven.imagej.net/content/groups/public