← Quiz: JWT and API Security: all 10 questions
Quiz: JWT and API Security · Question 2 of 10
Why did the forged token in the demo fail?
Why did the forged token in the demo fail?
- A.It had expired
- B.The algorithm was none
- C.Its signature no longer matched the edited payload
- D.The format was wrong
Answer & explanation
Correct answer: Its signature no longer matched the edited payload
The attacker changed role to admin but couldn't recompute the HMAC without the server secret.
Can you get the rest right without peeking?
Take the timed Quiz: JWT and API Security quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →