Skip to content

Commit

Permalink
vuln-fix: Use HTTPS instead of HTTP to resolve deps CVE-2021-26291
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
CVSSS: 8.1
Detection: CodeQL & OpenRewrite (https://public.moderne.io/recipes/org.openrewrite.maven.security.UseHttpsForRepositories)

Reported-by: Jonathan Leitschuh <[email protected]>
Signed-off-by: Jonathan Leitschuh <[email protected]>

Bug-tracker: JLLeitschuh/security-research#7

Co-authored-by: Moderne <[email protected]>
  • Loading branch information
JLLeitschuh and TeamModerne committed Jul 1, 2022
1 parent 8d2e16b commit d4f66c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<repository>
<id>maven-central</id>
<name>maven-central</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
Expand All @@ -171,8 +171,8 @@
<repository>
<id>maven-public</id> <!--这个ID需要与你的组group ID一致-->
<name>HXLC Nexus Repository</name>
<url>http://59.172.25.122:8086/repository/maven-public/</url>
<url>https://59.172.25.122:8086/repository/maven-public/</url>
</repository>
</repositories>

</project>
</project>

0 comments on commit d4f66c5

Please sign in to comment.