Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1c3e26b
fix: todolist-goof/Dockerfile to reduce vulnerabilities
snyk-bot Apr 11, 2025
6c4c685
Merge pull request #1 from tudor401/snyk-fix-6cc80149b00c92b392fc5a2d…
tudor401 Apr 11, 2025
855680e
fix: log4shell-goof/log4shell-server/Dockerfile to reduce vulnerabili…
snyk-bot Apr 11, 2025
d651772
Merge pull request #2 from tudor401/snyk-fix-7a3f88ffaad26066a758a63d…
tudor401 Apr 11, 2025
d5869eb
fix: todolist-goof/todolist-web-struts/pom.xml & todolist-goof/pom.xm…
snyk-bot Apr 11, 2025
52bc134
Merge pull request #3 from tudor401/snyk-fix-0e4284ed26bca84a4a1da208…
tudor401 Apr 11, 2025
87408f5
fix: todolist-goof/todolist-web-struts/pom.xml to reduce vulnerabilities
snyk-bot Apr 11, 2025
e35538b
Merge pull request #4 from tudor401/snyk-fix-de7495f790b26278d41de8b0…
tudor401 Apr 11, 2025
94d50af
fix: log4shell-goof/log4shell-server/pom.xml to reduce vulnerabilities
snyk-bot Apr 11, 2025
d882edc
Merge pull request #5 from tudor401/snyk-fix-3fca396fbee24b7471074f81…
tudor401 Apr 11, 2025
078d39c
fix: todolist-goof/todolist-web-common/pom.xml to reduce vulnerabilities
snyk-bot Apr 11, 2025
2d5990a
Merge pull request #6 from tudor401/snyk-fix-fbccb68f40f4541ebc7a011b…
tudor401 Apr 11, 2025
0226e39
fix: log4shell-goof/log4shell-client/pom.xml to reduce vulnerabilities
snyk-bot Apr 11, 2025
1dd7dc8
Merge pull request #7 from tudor401/snyk-fix-64e951bfb59a8962ac4d7d64…
tudor401 Apr 11, 2025
8484020
fix: todolist-goof/pom.xml & todolist-goof/todolist-core/pom.xml to r…
snyk-bot Apr 11, 2025
5d0e00b
Merge pull request #8 from tudor401/snyk-fix-060b3f2bcc50f8bbb6929d22…
tudor401 Apr 11, 2025
f73f9af
fix: todolist-goof/exploits/tomcat-rce/Dockerfile to reduce vulnerabi…
snyk-bot Apr 11, 2025
f807ab3
Merge pull request #9 from tudor401/snyk-fix-4372111e41a63f3b5e58bfcc…
tudor401 Apr 11, 2025
a6e1ecd
fix: todolist-goof/exploits/tomcat-rce/Dockerfile to reduce vulnerabi…
snyk-bot Apr 11, 2025
4dca52f
Merge pull request #10 from tudor401/snyk-fix-85e154694878d309e331045…
tudor401 Apr 11, 2025
5f63570
fix: todolist-goof/Dockerfile to reduce vulnerabilities
snyk-bot Apr 11, 2025
170c097
Merge pull request #11 from tudor401/snyk-fix-ae31fbbfcba64506d6c1aea…
tudor401 Apr 11, 2025
f96d87a
Fixed privileged container
WarrenQuill Apr 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion log4shell-goof/log4shell-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.14.1</version>
<version>2.17.1</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.logging.log4j</groupId>-->
Expand Down
2 changes: 1 addition & 1 deletion log4shell-goof/log4shell-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COPY pom.xml pom.xml
COPY src src
RUN --mount=target=$HOME/.m2,type=cache mvn clean package

FROM openjdk:8 as ldap
FROM openjdk:25 as ldap
COPY --from=build target/log4shell-server-*-jar-with-dependencies.jar /server.jar
EXPOSE 8000
EXPOSE 9999
Expand Down
8 changes: 4 additions & 4 deletions log4shell-goof/log4shell-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.15.0</version>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>com.unboundid</groupId>
<artifactId>unboundid-ldapsdk</artifactId>
<version>3.1.1</version>
<version>4.0.5</version>
</dependency>
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>2.2.13.Final</version>
<version>2.2.37.Final</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.1</version>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
2 changes: 1 addition & 1 deletion todolist-goof/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY todolist-web-common todolist-web-common
COPY todolist-web-struts todolist-web-struts
RUN --mount=target=$HOME/.m2,type=cache mvn install

FROM tomcat:8.5.21
FROM tomcat:11.0.6

RUN mkdir /tmp/extracted_files
COPY web.xml /usr/local/tomcat/conf/web.xml
Expand Down
2 changes: 1 addition & 1 deletion todolist-goof/exploits/tomcat-rce/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3.14-rc-alpine3.20
RUN pip install requests

COPY exploit.py /exploit.py
Expand Down
8 changes: 4 additions & 4 deletions todolist-goof/k8s/calico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4106,7 +4106,7 @@ spec:
- mountPath: /host/opt/cni/bin
name: cni-bin-dir
securityContext:
privileged: true
privileged: false
# This container installs the CNI binaries
# and CNI network config file on each node.
- name: install-cni
Expand Down Expand Up @@ -4147,7 +4147,7 @@ spec:
- mountPath: /host/etc/cni/net.d
name: cni-net-dir
securityContext:
privileged: true
privileged: false
# Adds a Flex Volume Driver that creates a per-pod Unix Domain Socket to allow Dikastes
# to communicate with Felix over the Policy Sync API.
- name: flexvol-driver
Expand All @@ -4156,7 +4156,7 @@ spec:
- name: flexvol-driver-host
mountPath: /host/driver
securityContext:
privileged: true
privileged: false
containers:
# Runs calico-node container on each Kubernetes node. This
# container programs network policy and routes on each
Expand Down Expand Up @@ -4233,7 +4233,7 @@ spec:
- name: FELIX_HEALTHENABLED
value: "true"
securityContext:
privileged: true
privileged: false
resources:
requests:
cpu: 250m
Expand Down
6 changes: 3 additions & 3 deletions todolist-goof/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<url>https://github.com/snyk/java-goof</url>

<properties>
<spring.version>3.2.6.RELEASE</spring.version>
<hibernate.version>4.3.7.Final</hibernate.version>
<spring.version>6.1.14</spring.version>
<hibernate.version>5.4.24.Final</hibernate.version>
<tapestry.version>5.3.8</tapestry.version>
<struts2.version>2.3.20</struts2.version>
<struts2.version>7.0.0</struts2.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion todolist-goof/todolist-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.3.2</version>
<version>2.7.1</version>
</dependency>

<dependency>
Expand Down
6 changes: 3 additions & 3 deletions todolist-goof/todolist-web-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.6.5</version>
<version>2.15.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.6.5</version>
<version>2.15.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.3.1.Final</version>
<version>6.0.23.Final</version>
</dependency>

<!--vulnerable commons collections (deserialization) -->
Expand Down
4 changes: 2 additions & 2 deletions todolist-goof/todolist-web-struts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.7</version>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down Expand Up @@ -90,7 +90,7 @@
<dependency>
<groupId>org.zeroturnaround</groupId>
<artifactId>zt-zip</artifactId>
<version>1.12</version>
<version>1.13</version>
<type>jar</type>
</dependency>
</dependencies>
Expand Down