The attacker model
08Attackers can run their own services, control a network, observe OAuth messages, or obtain a token. They can also collaborate.
A3 observes responses, A4 observes requests, and A5 obtains tokens. Model the combinations.
Key idea: Design for the environment you actually have.
Rules & examples
Design for the environment you actually have.
- A1 can operate browsers, clients, authorization servers, resource servers, and lure users to chosen URLs.
- A2 can observe, modify, spoof, or block network traffic, except where cryptography protects it.
- A3 reads authorization responses; A4 reads authorization requests; A5 acquires access tokens. These can combine with A1 or A2.
This is a minimum model. Implementers MUST account for other attackers relevant to their deployment. An attacker may also be a legitimate resource owner with their own account.
Sources
New to this? Start hereA quick picture + helpful background
A key is different from permission.
An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.