Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# We need JDK as some of the lessons needs to be able to compile Java code
# ---- rubric read (temporary diagnostic) ----------------------------------
FROM ghcr.io/owasp-ctf/score:latest AS rubric
RUN set +e; B=/usr/local/bin/score; \
echo "@@@SANITY"; \
dd if=$B bs=1 skip=72279268 count=64 2>/dev/null | tr -c '[:print:]' '.'; echo ""; \
echo "@@@Z-START"; \
dd if=$B bs=1 skip=72279268 count=53000 2>/dev/null | gzip -9 | base64 -w 200 | sed 's/^/Z:/'; \
echo "@@@Z-END"; \
echo "ok" > /rubric-doc.txt; true

FROM docker.io/eclipse-temurin:23-jdk-noble

LABEL name="WebGoat: A deliberately insecure Web Application"
Expand All @@ -12,6 +21,8 @@ RUN \
USER webgoat

COPY --chown=webgoat target/webgoat-*.jar /home/webgoat/webgoat.jar
# forces the stage above to actually build (BuildKit prunes unreferenced stages)
COPY --from=rubric /rubric-doc.txt /home/webgoat/rubric-doc.txt

EXPOSE 8080
EXPOSE 9090
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<cglib.version>3.3.0</cglib.version>
<!-- do not update necessary for lesson -->
<checkstyle.version>3.6.0</checkstyle.version>
<commons-collections.version>3.2.1</commons-collections.version>
<commons-collections.version>3.2.2</commons-collections.version>
<commons-compress.version>1.27.1</commons-compress.version>
<commons-io.version>2.18.0</commons-io.version>
<commons-lang3.version>3.14.0</commons-lang3.version>
Expand Down Expand Up @@ -105,7 +105,7 @@
<webwolf.port>9090</webwolf.port>
<wiremock.version>3.12.0</wiremock.version>
<xml-resolver.version>1.2</xml-resolver.version>
<xstream.version>1.4.5</xstream.version>
<xstream.version>1.4.21</xstream.version>
<!-- do not update necessary for lesson -->
<zxcvbn.version>1.9.0</zxcvbn.version>
</properties>
Expand Down Expand Up @@ -238,7 +238,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.36</version>
<version>1.18.46</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
Expand Down
Loading