From 63b9ec2d2458b030fcb4b796a137d2a267d168b1 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sat, 16 Dec 2023 06:14:13 +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 --- jplugin-core/jplugin-package-core/pom.xml | 2 +- jplugin-core/jplugin-package-das/pom.xml | 2 +- jplugin-core/jplugin-package-mvc/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jplugin-core/jplugin-package-core/pom.xml b/jplugin-core/jplugin-package-core/pom.xml index e175e20a..d78b640d 100644 --- a/jplugin-core/jplugin-package-core/pom.xml +++ b/jplugin-core/jplugin-package-core/pom.xml @@ -186,7 +186,7 @@ snapshots Nexus Snapshot Repository - http://maven-server:8081/nexus/content/repositories/snapshots/ + https://maven-server:8081/nexus/content/repositories/snapshots/ diff --git a/jplugin-core/jplugin-package-das/pom.xml b/jplugin-core/jplugin-package-das/pom.xml index e94415d2..9e5b9f3e 100644 --- a/jplugin-core/jplugin-package-das/pom.xml +++ b/jplugin-core/jplugin-package-das/pom.xml @@ -183,7 +183,7 @@ snapshots Nexus Snapshot Repository - http://maven-server:8081/nexus/content/repositories/snapshots/ + https://maven-server:8081/nexus/content/repositories/snapshots/ diff --git a/jplugin-core/jplugin-package-mvc/pom.xml b/jplugin-core/jplugin-package-mvc/pom.xml index 888dc1d0..2f5b5fe1 100644 --- a/jplugin-core/jplugin-package-mvc/pom.xml +++ b/jplugin-core/jplugin-package-mvc/pom.xml @@ -173,7 +173,7 @@ snapshots Nexus Snapshot Repository - http://maven-server:8081/nexus/content/repositories/snapshots/ + https://maven-server:8081/nexus/content/repositories/snapshots/