Authorization server mix-up
12A client using several authorization servers can be tricked into redeeming an honest server’s code at a malicious token endpoint.
A mismatched response must not trigger token exchange.
Key idea: Remember the issuer. Verify the response.
Rules & examples
Remember the issuer. Verify the response.
- Clients using multiple authorization servers MUST prevent mix-up and bind the intended issuer to the browser transaction.
- Use iss in the authorization response, including supported OIDC or JARM alternatives, and verify it as specified by RFC 9207. Abort a mismatch.
- Distinct redirect URIs are a fallback when other options are unavailable; each must be bound to the expected issuer and verified.
Remembering only the authorization endpoint is insufficient: a malicious issuer can advertise an honest authorization endpoint with a malicious token endpoint. PKCE alone is not a mix-up defense.
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.
The native-app BCP required distinct callbacks. The later security BCP describes response issuer identification and prefers it over relying solely on distinct callbacks.
Read the updated RFC section ↗