Same Maven project scanned three ways (pom.xml, SBOM, jars): captured output, false-positive evidence, suppression files with expiry, CI gate, -Pfixed profile. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
101 lines
3.5 KiB
XML
101 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.ankurm.vulnscan</groupId>
|
|
<artifactId>orders</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>jar</packaging>
|
|
<name>vuln-scan: a small app with deliberately old dependencies</name>
|
|
|
|
<properties>
|
|
<maven.compiler.release>25</maven.compiler.release>
|
|
<!-- Default (vulnerable) versions. The "fixed" profile below overrides them. -->
|
|
<log4j.version>2.14.1</log4j.version>
|
|
<commons-text.version>1.9</commons-text.version>
|
|
<jackson.version>2.13.4</jackson.version>
|
|
<snakeyaml.version>1.30</snakeyaml.version>
|
|
<commons-lang3.version>3.11</commons-lang3.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<!--
|
|
DELIBERATELY VULNERABLE. Every version below is old on purpose so the three scanners have
|
|
something to find. Never copy these versions into a real project.
|
|
-->
|
|
<!-- commons-lang3 stays a transitive dependency; management only lets the profile move its version. -->
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>${commons-lang3.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<!-- Log4Shell era. log4j-api 2.14.1 arrives transitively. -->
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>${log4j.version}</version>
|
|
</dependency>
|
|
<!-- Text4Shell era. commons-lang3 arrives transitively. -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-text</artifactId>
|
|
<version>${commons-text.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
<!-- Declared but never called from the code: reachability is not what these tools measure. -->
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
<version>${snakeyaml.version}</version>
|
|
</dependency>
|
|
<!-- test scope: never ships in the jar. -->
|
|
<dependency>
|
|
<groupId>commons-collections</groupId>
|
|
<artifactId>commons-collections</artifactId>
|
|
<version>3.2.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<!-- mvn -Pfixed ... : the same project with every flagged dependency moved to a current release. -->
|
|
<profile>
|
|
<id>fixed</id>
|
|
<properties>
|
|
<log4j.version>2.26.1</log4j.version>
|
|
<commons-text.version>1.15.0</commons-text.version>
|
|
<jackson.version>2.23.0</jackson.version>
|
|
<snakeyaml.version>2.7</snakeyaml.version>
|
|
<commons-lang3.version>3.22.0</commons-lang3.version>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.cyclonedx</groupId>
|
|
<artifactId>cyclonedx-maven-plugin</artifactId>
|
|
<version>2.9.3</version>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|