Skip to main content
Back to challenges

Web Security · Programming

JWT Algorithm Confusion

Intermediate · 3/5
Paid planPractitioner rank required75 points on first solo solve

Challenge brief

The server uses JWT for authentication but has a critical flaw in algorithm verification. You have a valid guest token:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiZ3Vlc3QiLCJhZG1pbiI6ZmFsc2V9.signature

Write Python code that forges a JWT to gain admin access by exploiting the algorithm validation.

Solo practice

Sign in to submit an answer and save your progress.

Sign in to practice