All hands-on labs

Free Hands-on labbeginnerred team

Breaking JWT to Forge an Admin Token

This lab is based on critical vulnerabilities found and reported by the auth0 security research team. CareBridge rebuilt its patient portal login after the last breach, and the engineers swear the new JSON Web Token (JWT) setup is airtight. You're back to prove otherwise. Sign in as an ordinary patient, inspect the token, and exploit a flaw to promote yourself into the clinical administration console to grab the flag.

  • 6 guided tasks
  • Capture the flag

Scenario

CareBridge is a patient portal that had issues with its prior authentication system, so it vibe coded a new system. Its engineers swear that it is more secure now, but the boss hired you one more time to come in and validate it. This new system runs its own sign-in and issues its own JSON Web Tokens (JWTs).

Your renewed engagement starts off the same: you authenticate as an ordinary patient and try to find a privilege escalation path. After logging in, you'll inspect the token stored by your browser and you'll find a way to abuse how the backend checks this token. As a result, you'll promote yourself to the clinical administration console and capture the flag. Whoops.

This one's based on a real flaw too. The alg:none bug Auth0 documented in real JWT libraries.

What you will learn

  • Sign in to the CareBridge patient portal as an ordinary patient
  • Read and decode the JSON Web Token that was issued to you by the portal
  • Learn how the backend accepts an unsigned alg:none token
  • Forge an admin token and access the clinical administration console
  • Capture and submit the flag!
Hands-on lab

Breaking JWT to Forge an Admin Token

Free with a Cybr account.