Security Architecture

A partner portal's API validates every JWT signature correctly. A tester authenticated as a customer changes the account ID in the URL and retrieves another customer's invoices. Which fix addresses the root cause?

Show the answer

Correct answerB. Enforce object-level checks tying the token's subject to the requested account ID on every request

AWhy not this: token lifetime and key rotation protect authentication, but the attacker's token is valid and legitimate.

BWhy this is right: server-side object-level checks stop a valid user from reaching objects they do not own.

CWhy not this: mutual TLS authenticates the connecting client and does not limit which objects a user may read.

DWhy not this: quotas slow enumeration but still allow each unauthorized read that gets through.

The flaw is broken object-level authorization: identity is verified, but access to the specific object is never checked. Checking ownership of each requested object on the server fixes it. Shorter token lifetimes harden authentication and do not stop a valid user from reading other users' data.