Skip to content

Every redirect hop is re-validated before it is taken

Pinning binds the original host only. Without this, a public host answering a redirect to a link-local metadata address walks straight past a guard that has already reported success.

The rule

Normative: this is the rule
  1. Each redirect target MUST be validated on the same terms as the original URL, before the hop is taken.
  2. A hop resolving into a private or reserved range MUST be refused.
  3. Validation MUST NOT refuse a redirect from one public host to another (a shortener, a canonical-host bounce, an upgrade to HTTPS), so this is no change for workflows that are not being attacked.
  4. The residual window is stated rather than papered over: a hop's host is resolved for the check and resolved again for the request, so per-hop rebinding remains possible where the original request's pinning excludes it.

What it means

Pinning the original host protects only the first hop. Left there, a public host that answers with a redirect could send the connection anywhere on its next request, past a guard that already reported success once. Re-validating every hop closes that gap without closing off ordinary redirects: a hop that lands on another public host — a link shortener, a canonical-host bounce — is still followed. Only a hop that resolves into a private or reserved range is refused, at the moment it would be taken, not the destination it started from.

Example

A first hop lands on a different public host:

The redirect target of the first hoppublic
"https://target.example.com/real"
The body the node delivers once the hop is followedfollowed
"arrived"

The same request shape, redirected instead into a private or reserved address, never reaches that second response — the hop is refused before it is taken.

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · NET-2 · changed in spec 1.0