From 40c54c98b091d8baebc75e6f7a4cc86fafcc1c1e Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sun, 17 Dec 2023 04:25:34 +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 --- dependencies/carbon-p2-plugin/pom.xml | 6 +++--- parent/pom.xml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dependencies/carbon-p2-plugin/pom.xml b/dependencies/carbon-p2-plugin/pom.xml index f67cf176d..6629ec0cb 100644 --- a/dependencies/carbon-p2-plugin/pom.xml +++ b/dependencies/carbon-p2-plugin/pom.xml @@ -76,7 +76,7 @@ sonatype-release - http://repository.sonatype.org/content/groups/sonatype-public-grid + https://repository.sonatype.org/content/groups/sonatype-public-grid true @@ -87,12 +87,12 @@ dist-wso2 WSO2 Standard Repository - http://dist.wso2.org/maven2 + https://dist.wso2.org/maven2 wso2-maven2-repository-snapshot WSO2 Standard Snapshot Repository - http://dist.wso2.org/snapshots/maven2 + https://dist.wso2.org/snapshots/maven2 diff --git a/parent/pom.xml b/parent/pom.xml index eb7d66edb..e72dd1cc5 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -18,7 +18,7 @@ wso2-nexus WSO2 internal Repository - http://maven.wso2.org/nexus/content/groups/wso2-public/ + https://maven.wso2.org/nexus/content/groups/wso2-public/ true daily @@ -30,11 +30,11 @@ wso2-maven2-repository-1 - http://dist.wso2.org/maven2 + https://dist.wso2.org/maven2 wso2-maven2-repository-2 - http://dist.wso2.org/snapshots/maven2 + https://dist.wso2.org/snapshots/maven2