A Secret in the Token: Read JWT Claims
Read a practice token's payload with the JWT decoder and distinguish visible claims from a verified signature.
What you will learn
Recognize a three-part JWT and distinguish decoding, signature verification and authorization.
Your challenge
A developer put a flag in a teaching token's payload, assuming a signature would hide it. You do not need to log in or obtain a key; read the flag field. This token has a dummy signature and is not a valid credential.
Challenge data
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzdHVkZW50Iiwicm9sZSI6InJlYWRlciIsImZsYWciOiJmbGFne2NsYWltc19hcmVfdmlzaWJsZX0ifQ.ZGVtby1zaWduYXR1cmUThe first tool receives the challenge. Paste your intermediate output into subsequent tools. Each tool links back to this lesson.
Stuck? Reveal one hint at a time
Reveal the walkthrough (contains the answer)
- Load the token into the JWT decoder and decode it. The flag field in the payload contains flag{claims_are_visible}.
- Header and payload use Base64URL and can be read directly. A signature verifies integrity; it does not encrypt the contents.
- This teaching token uses a dummy signature. Reading role or sub does not authenticate an identity. Real applications must still verify signatures, time constraints and authorization.
The idea to remember
Do not put secrets into an ordinary signed JWT payload. Successful decoding does not mean a token is valid.