hackXpert labs
All labs › JWT

🔑 JWT

Decode every token you are handed. The algorithm, the signature and the claims are three separate chances for the server to trust something it should not.

6 labs and targetsfree accountlesson included
How authentication & session actually works — taught by The XSS Rat

What it is

Authentication bugs are rarely about cracking anything. They are about the flow: a step you can skip, a token that is trusted because it was signed by nobody, a reset code that never expires, a lockout counter that resets when you change one header.

How I attack it

  1. Map the whole flow first, including the recovery paths. Reset and MFA enrolment are where the weak links live.
  2. Decode every token you are given. Check the algorithm, the signature and what happens when you change the claims.
  3. For any code or limit, ask three questions: how long is it valid, how many tries do I get, and what is the counter keyed on?
  4. Try finishing a flow out of order, or finishing someone else's flow with your own credentials.

Learn it from The XSS Rat

Free reference reading

The set 4

Numbered low to high.

Extras 2

Also here 2

Nothing matches thatClear the filter to see everything again.