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 <Jonathan.Leitschuh@gmail.com>
Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

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 <Jonathan.Leitschuh@gmail.com>
Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

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 <team@moderne.io>
This commit is contained in:
Jonathan Leitschuh 2023-12-18 03:21:40 +00:00
parent 460cb21c62
commit 2f86827af5
No known key found for this signature in database
GPG Key ID: CF90EC62F65468A1
1 changed files with 4 additions and 4 deletions

View File

@ -40,12 +40,12 @@
<repository>
<id>pub-repo</id>
<name>Public Releases</name>
<url>http://nexus.hc.to/content/repositories/pub_releases/</url>
<url>https://nexus.hc.to/content/repositories/pub_releases/</url>
</repository>
<snapshotRepository>
<id>pub-repo</id>
<name>Public Snapshots</name>
<url>http://nexus.hc.to/content/repositories/pub_snapshots/</url>
<url>https://nexus.hc.to/content/repositories/pub_snapshots/</url>
</snapshotRepository>
</distributionManagement>
@ -53,7 +53,7 @@
<repository>
<id>pub-repo</id>
<name>Public Releases</name>
<url>http://nexus.hc.to/content/repositories/pub_releases/</url>
<url>https://nexus.hc.to/content/repositories/pub_releases/</url>
</repository>
<repository>
<id>spigot-repo</id>
@ -61,7 +61,7 @@
</repository>
<repository>
<id>escapecraft-repo</id>
<url>http://dev.escapecraft.com/maven</url>
<url>https://dev.escapecraft.com/maven</url>
</repository>
<repository>
<id>codemc-repo</id>