From 035d482d842c4737cbf646c3a8abf5073da0762f Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sat, 16 Dec 2023 16:46:48 +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 --- components/ml/org.wso2.carbon.ml.rest.api/pom.xml | 2 +- pom.xml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/ml/org.wso2.carbon.ml.rest.api/pom.xml b/components/ml/org.wso2.carbon.ml.rest.api/pom.xml index aa50bf9b..b38776d4 100644 --- a/components/ml/org.wso2.carbon.ml.rest.api/pom.xml +++ b/components/ml/org.wso2.carbon.ml.rest.api/pom.xml @@ -32,7 +32,7 @@ wso2 WSO2 Repository - http://maven.wso2.org/nexus/content/groups/wso2-public/ + https://maven.wso2.org/nexus/content/groups/wso2-public/ true daily diff --git a/pom.xml b/pom.xml index cc5c4ac2..95239f22 100644 --- a/pom.xml +++ b/pom.xml @@ -60,7 +60,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 @@ -70,7 +70,7 @@ wso2.snapshots WSO2 Snapshot Repository - http://maven.wso2.org/nexus/content/repositories/snapshots/ + https://maven.wso2.org/nexus/content/repositories/snapshots/ true @@ -82,7 +82,7 @@ wso2.releases WSO2 internal Repository - http://maven.wso2.org/nexus/content/repositories/releases/ + https://maven.wso2.org/nexus/content/repositories/releases/ true @@ -94,7 +94,7 @@ wso2-maven2-repository - http://dist.wso2.org/maven2 + https://dist.wso2.org/maven2