Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/Backport OWASP dependency-check-maven plugin configuration (3.12.z) #21971

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 40 additions & 0 deletions owasp-check-suppressions.xml
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<suppress>
<notes><![CDATA[
False positive. The hazelcast:hazelcast component vulnerabilities are related to Hazelcast IMDG version and not the integration - hazelcast-gcp.
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.hazelcast/hazelcast-gcp@.*$</packageUrl>
<cpe>cpe:/a:hazelcast:hazelcast</cpe>
</suppress>
<suppress>
<notes><![CDATA[
False positive. The hazelcast:hazelcast component vulnerabilities are related to Hazelcast IMDG version and not the integration - hazelcast-azure.
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.hazelcast/hazelcast-azure@.*$</packageUrl>
<cpe>cpe:/a:hazelcast:hazelcast</cpe>
</suppress>
<suppress>
<notes><![CDATA[
False positive. The hazelcast:hazelcast component vulnerabilities are related to Hazelcast IMDG version and not the integration - hazelcast-hibernate.
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.hazelcast/hazelcast-hibernate.*$</packageUrl>
<cpe>cpe:/a:hazelcast:hazelcast</cpe>
</suppress>
<suppress>
<notes><![CDATA[
False positive. The hazelcast:hazelcast component vulnerabilities are related to Hazelcast IMDG version and not the integration - hazelcast-wm.
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.hazelcast/hazelcast-wm@.*$</packageUrl>
<cpe>cpe:/a:hazelcast:hazelcast</cpe>
</suppress>
<suppress>
<notes><![CDATA[
False positive - these log4j CVEs have the fixes present in the version 1.2.17.redhat-00008.
]]></notes>
<packageUrl regex="true">^pkg:maven/log4j/log4j@.*$</packageUrl>
<cve>CVE-2020-9488</cve>
<cve>CVE-2020-9493</cve>
<cve>CVE-2022-23307</cve>
</suppress>
</suppressions>
45 changes: 44 additions & 1 deletion pom.xml
Expand Up @@ -76,8 +76,9 @@
<maven.failsafe.plugin.version>2.22.0</maven.failsafe.plugin.version>
<maven.cobertura.plugin.version>2.6</maven.cobertura.plugin.version>
<maven.enforcer.plugin.version>3.0.0-M2</maven.enforcer.plugin.version>
<owasp.dependency-check.version>7.1.1</owasp.dependency-check.version>

<log4j.version>1.2.17</log4j.version>
<log4j.version>1.2.17.redhat-00008</log4j.version>

<!--- This is the last log4j2 version working with Java 6 -->
<log4j2.version>2.3</log4j2.version>
Expand Down Expand Up @@ -337,6 +338,17 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${owasp.dependency-check.version}</version>
<configuration>
<format>ALL</format>
<skipProvidedScope>true</skipProvidedScope>
<nodeAuditAnalyzerEnabled>false</nodeAuditAnalyzerEnabled>
<suppressionFiles>owasp-check-suppressions.xml</suppressionFiles>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -1199,6 +1211,25 @@
</distributionManagement>

<repositories>
<repository>
<!--
This is the same as central in the super pom.
Putting it here changes the order in which the repositories are queried.
Most artefacts are stored in central so this provides best build times when a mirror is not used.
Repository order reference:
https://maven.apache.org/guides/mini/guide-multiple-repositories.html#repository-order
-->
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>snapshot-repository</id>
<name>Maven2 Snapshot Repository</name>
Expand All @@ -1210,6 +1241,18 @@
<enabled>true</enabled>
</snapshots>
</repository>
<!-- Red Hat Maven repository provides patches for several vulnerable libraries (dependencies) which are not patched in the Maven Central repository. -->
<repository>
<id>redhat-ga</id>
<url>https://maven.repository.redhat.com/ga/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>

<dependencies>
Expand Down