Skip to content

Commit 76e892c

Browse files
committed
Expand Token Tower lab with detailed JWT vulnerabilities
Major update to the Token Tower JWT lab: adds a comprehensive README with attack walkthroughs, flags, and hints; rewrites app.py to include multiple intentional JWT vulnerabilities (weak secret, none algorithm, algorithm confusion, JWK injection, claim manipulation); improves UI/UX with styled HTML templates; adds API endpoints and public key exposure; introduces requirements.txt for dependency management; and updates the Dockerfile for best practices and requirements-based installation.
1 parent efb457b commit 76e892c

File tree

4 files changed

+1863
-55
lines changed

4 files changed

+1863
-55
lines changed

additional-labs/token-tower/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
FROM python:3.14-slim
1+
FROM python:3.12-slim
22

33
# Set the working directory
44
WORKDIR /app
55

6-
# Install the dependencies
7-
RUN pip install flask PyJWT
6+
# Copy requirements first for better caching
7+
COPY requirements.txt .
88

9-
# Copy the app.py file
9+
# Install dependencies
10+
RUN pip install --no-cache-dir -r requirements.txt
11+
12+
# Copy the application
1013
COPY app.py .
1114

1215
# Expose the port
1316
EXPOSE 5020
1417

1518
# Run the application
1619
CMD ["python", "app.py"]
17-

0 commit comments

Comments
 (0)