Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

Redirect

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Architecture & Implementation

Redirect is a web response or client-side instruction that sends a browser from one URL or resource location to another. It is used for routing, canonicalisation and access flows, and in security contexts it must preserve the intended destination while avoiding open redirect abuse.

What a redirect is and why it matters

A redirect is a routing instruction, delivered by the server or browser, that moves a user from one URL to another. It is common in site migrations, canonicalisation, and login flows, but it only works safely when the destination is tightly controlled and the browser is not allowed to choose an arbitrary target.

For security teams, the important distinction is between a legitimate redirect and a user-controlled redirect parameter. The first preserves application intent; the second can become an abuse path for phishing, token theft, or trust boundary bypass if the destination is not validated.

How redirects work in web applications

Servers can issue redirects with HTTP response codes, while client-side code can also send the browser onward after a page loads. In both cases, the browser follows a new location, but the security properties differ because server-side redirects are easier to govern and audit than logic embedded in scripts or application parameters.

Redirects are often used to normalise URLs, preserve SEO value, move users from old paths to new ones, or send unauthenticated users to a sign-in page. In those legitimate cases, the redirect target should usually be fixed, derived from a trusted mapping, or restricted to an approved set of locations.

When the target is taken directly from query strings, form fields, headers, or other user input, the application must treat it as untrusted data. That is where open redirect abuse starts: the application becomes a trusted trampoline to an attacker-controlled destination.

Security implications of open redirect abuse

An open redirect does not always start as a standalone vulnerability, but it can materially weaken the safety of authentication and navigation flows. Attackers use it to make malicious links look more trustworthy, to chain users through trusted domains, and to support social engineering that depends on an apparently legitimate first hop.

Redirects can also create confusion in security controls that inspect only the initial URL, especially when users are sent through multiple hops or when different components apply different allowlists. That is why redirect handling is part of broader application trust management, not just page navigation.

Safe redirect design and validation patterns

The safest pattern is to keep redirect destinations server-controlled whenever possible. If user choice is required, constrain destinations to a strict allowlist, use opaque route identifiers instead of raw URLs, and reject any absolute URL, protocol-relative URL, or encoded variant that escapes the approved set.

Good redirect logic also needs consistent normalisation. The application should compare the final interpreted destination, not just the raw string, because encoding tricks, mixed slashes, and host manipulation can bypass superficial checks.

Redirects should be reviewed wherever they intersect with sign-in, password reset, logout, and post-transaction flows. Those paths are especially sensitive because a weak redirect can affect both user trust and the integrity of the surrounding control.

Operational testing and review points

Test redirect handling as part of application security review, not just functional QA. Look for parameters that accept destination values, chained redirects, wildcard allowlists, and places where redirects cross from a trusted domain into an external one without a clear business need.

Security teams should also review logging and monitoring for suspicious redirect patterns, especially repeated attempts to supply external destinations or encoded payloads that try to evade validation. Redirect abuse is often low-noise, so simple visibility into destination parameters can make a real difference.

When redirects are used for legitimate routing, document the allowed destinations and ownership of the logic. That makes it easier to spot unintended changes, review exceptions, and keep security, product, and platform teams aligned on what the redirect is supposed to do.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV10 — OAuth and OIDCRedirect handling is central to OAuth and OIDC flow integrity, especially around trusted return targets.
V15 — Secure Coding and ArchitectureRedirect validation is an application design issue that belongs in secure routing and input handling.
Recommendation — Validate redirect and return URLs against strict allowlists before completing authentication flows. Design redirect logic so untrusted input cannot control the final destination.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationRedirect targets are externally influenced input that must be validated before use.
AC-22 — Publicly Accessible ContentRedirects affect what public users can reach and how external navigation is governed.
Recommendation — Validate redirect parameters before using them to construct a destination URL. Control externally reachable redirect paths so users are only sent to approved destinations.
OWASP API Security Top 10API8 — Security MisconfigurationRedirect abuse often arises from misconfigured routing, return URLs, and trust assumptions in web and API surfaces.
Recommendation — Harden redirect handling and reject unapproved destination patterns in exposed endpoints.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org