Skip to content

Commit

Permalink
Merge pull request #28 from europeana/master
Browse files Browse the repository at this point in the history
## FIX vulnerbilties
  • Loading branch information
SrishtiSingh-eu authored Nov 9, 2023
2 parents 19955c4 + 54eaff9 commit 3898a55
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 4 deletions.
80 changes: 79 additions & 1 deletion owasp-suppress.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,83 @@
<packageUrl regex="true">^pkg:maven/org\.yaml/snakeyaml@.*$</packageUrl>
<vulnerabilityName>CVE-2022-1471</vulnerabilityName>
</suppress>

<!-- requires update to Spring boot 3. If a application is deployed
to CF could be susceptible to a security bypass -->
<suppress>
<notes><![CDATA[
file name: spring-boot-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-web-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-starter-web@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-starter@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-actuator-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-actuator@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-json-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-starter-json@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-autoconfigure-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-autoconfigure@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-log4j2-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-starter-log4j2@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-tomcat-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-starter-tomcat@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-actuator-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-starter-actuator@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-validation-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-starter-validation@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-actuator-autoconfigure-2.6.13.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org.springframework.boot/spring-boot-actuator-autoconfigure@.*$</packageUrl>
<vulnerabilityName>CVE-2023-20873</vulnerabilityName>
</suppress>
</suppressions>
19 changes: 16 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@
<groupId>eu.europeana.api.commons</groupId>
<artifactId>commons-error</artifactId>
<version>${api-commons.version}</version>
<!-- remove vulnerable one, override with latest version-->
<exclusions>
<exclusion>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down Expand Up @@ -108,16 +119,18 @@
<version>${springdoc.version}</version>
</dependency>

<!-- At the moment API commons requires us to import spring security, should refactor that -->
<!-- At the moment API commons requires us to import spring security, should refactor that
updated version have more vulnerabilities hence added 5.8.8
and the latest version over 6 used java 17 -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>5.7.5</version>
<version>5.8.8</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>5.7.5</version>
<version>5.8.8</version>
</dependency>

<dependency>
Expand Down

0 comments on commit 3898a55

Please sign in to comment.