TLS termination & proxies
21A TLS-terminating proxy becomes part of the security boundary. Forwarded headers and the internal hop need protection too.
The application receives security context only through its trusted proxy boundary.
Key idea: Sanitize headers. Secure the internal hop.
Rules & examples
Sanitize headers. Secure the internal hop.
- 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
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.