Visual RFC.
ALL RFCs / RFC 9700
Read the RFC ↗
RFC 9700 / ATTACKS & DEFENSES

Authorization server mix-up

12

A client using several authorization servers can be tricked into redeeming an honest server’s code at a malicious token endpoint.

RFC 9700 · § 4.4DEFENSE
3 / 3
03
Abort instead of sending credentials onward.

A mismatched response must not trigger token exchange.

Authorization server mix-upA client using several authorization servers can be tricked into redeeming an honest server’s code at a malicious token endpoint. Current state: Abort instead of sending credentials onward..Authorization server mix-upSaved for this browser transactionissuer: https://evil.exampletoken endpoint: https://evil.example/tokenResponse from honest.examplecode: ABC · iss: https://honest.examplehonest.example ≠ evil.example → abortNo code sent to https://evil.example/token

Key idea: Remember the issuer. Verify the response.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

What changed
RFC 8252 § 8.10RFC 9700 § 4.4.2

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 ↗

All chapters in RFC 9700

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗