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

Leakage at resource servers

17

A counterfeit endpoint or compromised resource server can collect access tokens and attempt to use them elsewhere.

RFC 9700 · § 4.9DEFENSE
3 / 3
03
Reject cross-server replay.

The honest API validates its audience and, when used, the sender proof.

Leakage at resource serversA counterfeit endpoint or compromised resource server can collect access tokens and attempt to use them elsewhere. Current state: Reject cross-server replay..Leakage at resource serversCopied token · aud: https://evil.example/apiHonest API: https://calendar.example/apiRequired sender key: KCounterfeit APIHonest APIcopied tokenWrong audience → rejected at honest API

Key idea: Protect tokens at rest and limit their replay.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Resource servers MUST treat tokens as sensitive secrets and MUST NOT store or transfer them in plaintext.
  • Sender-constrained tokens and audience restrictions SHOULD limit reuse at other servers.
  • Secure resource configuration matters; a fully compromised server can still access its own resources.

The RFC distinguishes token phishing from server compromise. Standard system hardening is outside this document; the focus here is limiting OAuth token fallout.

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.

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 ↗