Web Security · Programming
JWT Algorithm Confusion
Intermediate · 3/5
Paid planPractitioner rank required75 points on first solo solveChallenge 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.