From 7d9462670a03a8451d53067a54b4e3aafa53e818 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sun, 17 Dec 2023 03:29:05 +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 --- rexster-kibbles/batch-kibble/pom.xml | 2 +- rexster-kibbles/frames-kibble/pom.xml | 2 +- rexster-kibbles/sample-kibbles/pom.xml | 2 +- rexster-kibbles/sparql-kibble/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rexster-kibbles/batch-kibble/pom.xml b/rexster-kibbles/batch-kibble/pom.xml index 49e2a14d..c79e2370 100644 --- a/rexster-kibbles/batch-kibble/pom.xml +++ b/rexster-kibbles/batch-kibble/pom.xml @@ -21,7 +21,7 @@ maven2-repository.dev.java.net Java.net Repository for Maven - http://download.java.net/maven/2/ + https://download.java.net/maven/2/ default diff --git a/rexster-kibbles/frames-kibble/pom.xml b/rexster-kibbles/frames-kibble/pom.xml index 68500654..f6893678 100644 --- a/rexster-kibbles/frames-kibble/pom.xml +++ b/rexster-kibbles/frames-kibble/pom.xml @@ -35,7 +35,7 @@ maven2-repository.dev.java.net Java.net Repository for Maven - http://download.java.net/maven/2/ + https://download.java.net/maven/2/ default diff --git a/rexster-kibbles/sample-kibbles/pom.xml b/rexster-kibbles/sample-kibbles/pom.xml index 6181c904..a91efcad 100644 --- a/rexster-kibbles/sample-kibbles/pom.xml +++ b/rexster-kibbles/sample-kibbles/pom.xml @@ -29,7 +29,7 @@ maven2-repository.dev.java.net Java.net Repository for Maven - http://download.java.net/maven/2/ + https://download.java.net/maven/2/ default diff --git a/rexster-kibbles/sparql-kibble/pom.xml b/rexster-kibbles/sparql-kibble/pom.xml index 9912ad6e..a1a933aa 100644 --- a/rexster-kibbles/sparql-kibble/pom.xml +++ b/rexster-kibbles/sparql-kibble/pom.xml @@ -35,7 +35,7 @@ maven2-repository.dev.java.net Java.net Repository for Maven - http://download.java.net/maven/2/ + https://download.java.net/maven/2/ default