Skip to content

Commit

Permalink
vuln-fix: Use HTTPS instead of HTTP to resolve deps CVE-2021-26291 (#3)
Browse files Browse the repository at this point in the history
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 <[email protected]>


Bug-tracker: JLLeitschuh/security-research#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 <[email protected]>


Bug-tracker: JLLeitschuh/security-research#8


Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/IfHkrYfxx?organizationId=QWxsIEdpdEh1Yg%3D%3D

Co-authored-by: Moderne <[email protected]>
  • Loading branch information
JLLeitschuh and TeamModerne committed Dec 21, 2023
1 parent ed435f1 commit 6eb75d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,14 @@
<repository>
<id>sonatype-joda-staging</id>
<name>Sonatype OSS staging repository</name>
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<layout>default</layout>
</repository>
<snapshotRepository>
<uniqueVersion>false</uniqueVersion>
<id>sonatype-joda-snapshot</id>
<name>Sonatype OSS snapshot repository</name>
<url>http://oss.sonatype.org/content/repositories/joda-snapshots</url>
<url>https://oss.sonatype.org/content/repositories/joda-snapshots</url>
<layout>default</layout>
</snapshotRepository>
<downloadUrl>http://oss.sonatype.org/content/repositories/joda-releases</downloadUrl>
Expand Down

0 comments on commit 6eb75d1

Please sign in to comment.