CriticalIdentity & AccessA07:2021 – Identification and Authentication Failures
An attacker forges or tampers with JSON Web Tokens by exploiting weak signing secrets, the none algorithm, or confusion between asymmetric and symmetric algorithms, gaining arbitrary identities or roles.
Immediate Response
1Rotate signing keys and invalidate all outstanding tokens.
2Patch or reconfigure the verification library to accept only the expected algorithm.
3Review access logs for actions taken with forged identities.
4Disable affected endpoints if verification cannot be fixed immediately.