Open redirection
19A URL on a trusted client or authorization server can bounce the browser to an arbitrary phishing or exfiltration endpoint.
Exact callback matching remains necessary.
Key idea: Control the destination of every redirect.
Rules & examples
Control the destination of every redirect.
- Clients MUST NOT expose open redirectors. Allow intended destinations or authenticate request origin and integrity.
- Authorization servers MUST NOT auto-redirect invalid client_id and redirect_uri combinations.
- Servers MUST take phishing precautions, authenticate first with the silent-authentication exception, and SHOULD auto-redirect only to trusted URIs.
Even a correctly registered redirect URI can be a phishing destination. Errors, consent denial, or silent authentication can otherwise turn an authorization server into a credible-looking bounce point.
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.