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

TLS termination & proxies

21

A TLS-terminating proxy becomes part of the security boundary. Forwarded headers and the internal hop need protection too.

RFC 9700 · § 4.13DEFENSE
3 / 3
03
Make decisions using authenticated facts.

The application receives security context only through its trusted proxy boundary.

TLS termination & proxiesA TLS-terminating proxy becomes part of the security boundary. Forwarded headers and the internal hop need protection too. Current state: Make decisions using authenticated facts..TLS termination & proxiesTLS proxyBackendproxy-authenticated contextBackend trusts proxy provenanceObserved peer: 198.51.100.9Allowed only: 192.0.2.7 → access deniedAttacker’s header cannot grant accessThe backend uses the reconstructed context from its trusted proxy.

Key idea: Sanitize headers. Secure the internal hop.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Proxies MUST sanitize inbound requests to preserve authenticity and integrity of security-relevant headers.
  • Do not trust client-supplied forwarded IP, client certificate, or token-binding information as proxy-authenticated facts.
  • The proxy-to-application link MUST prevent eavesdropping, message injection, and replay, with authenticated communicating entities.

A spoofed X-Forwarded-For value can defeat an IP-based policy if the app interprets it as trusted. Outside TLS does not authenticate attacker-controlled header contents.

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 ↗