Browse Source

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>
pull/390/head
Jonathan Leitschuh 4 months ago
parent
commit
94f1e52f93
No account linked to committer's email address
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      pom.xml

+ 5
- 5
pom.xml View File

@@ -70,7 +70,7 @@
<pluginRepositories>
<pluginRepository>
<id>repo1</id>
<url>http://repo1.maven.org/maven2</url>
<url>https://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>

@@ -139,26 +139,26 @@
<repositories>
<repository>
<id>repo1</id>
<url>http://repo1.maven.org/maven2</url>
<url>https://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>sonatype</id>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>false</enabled></releases>
</repository>
<repository>
<id>google-snapshots</id>
<url>http://oss.sonatype.org/content/repositories/google-snapshots</url>
<url>https://oss.sonatype.org/content/repositories/google-snapshots</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
<repository>
<id>gwtquery-plugins</id>
<url>http://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
<url>https://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
</repository>
</repositories>


Loading…
Cancel
Save