Back to Challenges
Web
Medium
Active

JWT Token Forge

A web application relies on JWT for authentication. Find the weakness in the implementation and forge your own admin token.

250points
98solves
July 15, 2024
JWTAuthenticationCryptography
JWT Token Forge

Connection Information

Launch Challenge

Objective

Exploit JWT vulnerabilities to forge an admin token and access the protected admin panel.

Scenario

The application uses JWT tokens for authentication. After logging in as a regular user, you notice the JWT implementation might have security flaws. Can you escalate your privileges to admin?

Hints

Hint 1

Check the JWT header carefully - what algorithm is being used?

Hint 2

The "alg: none" attack might be worth trying

Hint 3

Also consider the "alg: HS256" to "alg: RS256" confusion attack

Hint 4

Use jwt.io to decode and analyze the token structure