Question 370
An application uses time-limited tokens to access an API. A user’s role is removed while an earlier token remains valid. Which security concern must the design address?
Explanation
Correct Answer
A stale token can preserve old permissions until checked or expired. Session design should enforce timely entitlement changes.
Incorrect Answers
A stronger signing key can protect issuance against forgery, but it does not invalidate an already-issued token that still authorizes a removed role. Revocation or appropriately short lifetimes control stale authorization.
Stronger encryption of token contents does not cause claims to reflect revoked role assignments. Timely authorization requires a revocation mechanism or suitably short token validity.
New-session checks miss an existing bearer token that retains stale claims. The API must have a way to reject or expire authorization issued before the entitlement change.