From e54c0a613e32220014c9348ee5912478e4638e47 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Sun, 17 Dec 2023 04:35: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 --- components/org.wso2.carbon.appmgt.usage/pom.xml | 2 +- pom.xml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/org.wso2.carbon.appmgt.usage/pom.xml b/components/org.wso2.carbon.appmgt.usage/pom.xml index 8217796f7..abeb23398 100644 --- a/components/org.wso2.carbon.appmgt.usage/pom.xml +++ b/components/org.wso2.carbon.appmgt.usage/pom.xml @@ -44,7 +44,7 @@ wso2-maven2-repository - http://dist.wso2.org/maven2 + https://dist.wso2.org/maven2 diff --git a/pom.xml b/pom.xml index b302095d8..cd1462c59 100644 --- a/pom.xml +++ b/pom.xml @@ -125,7 +125,7 @@ wso2-nexus WSO2 Public Repository - http://maven.wso2.org/nexus/content/groups/wso2-public/ + https://maven.wso2.org/nexus/content/groups/wso2-public/ true daily @@ -135,7 +135,7 @@ wso2.releases WSO2 Internal Repository - http://maven.wso2.org/nexus/content/repositories/releases/ + https://maven.wso2.org/nexus/content/repositories/releases/ true daily @@ -145,7 +145,7 @@ wso2.snapshots WSO2 Snapshot Repository - http://maven.wso2.org/nexus/content/repositories/snapshots/ + https://maven.wso2.org/nexus/content/repositories/snapshots/ true daily @@ -160,7 +160,7 @@ wso2-nexus WSO2 Public Repository - http://maven.wso2.org/nexus/content/groups/wso2-public/ + https://maven.wso2.org/nexus/content/groups/wso2-public/ true daily @@ -170,7 +170,7 @@ wso2.releases WSO2 Internal Repository - http://maven.wso2.org/nexus/content/repositories/releases/ + https://maven.wso2.org/nexus/content/repositories/releases/ true daily @@ -180,7 +180,7 @@ wso2.snapshots WSO2 Snapshot Repository - http://maven.wso2.org/nexus/content/repositories/snapshots/ + https://maven.wso2.org/nexus/content/repositories/snapshots/ true daily