--- id: NET-2 family: RT-NET level: core profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-net/net-2 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # NET-2 — Every redirect hop is re-validated before it is taken *RT-NET (Part II) · level: core · profiles: runtime · added in 1.0* 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: ```json title="The redirect target of the first hop" verdict="public" "https://target.example.com/real" ``` ```json title="The body the node delivers once the hop is followed" verdict="followed" "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](https://flowdrop.io/spec/rulings/open-25). ## Related rules - Names: NET-1 - Referenced by: INT-20, NET-1, NET-3 --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.