Join our Newsletter — 33% off our NHI Course

Open Redirection

A flaw that lets an application forward a user to an attacker-chosen destination. In OAuth environments, open redirection is especially dangerous because it can be combined with callback manipulation to move authorization codes or session context outside the intended trust boundary.

Expanded Definition

Open redirection is a trust boundary flaw where an application accepts a user-controlled destination and forwards the browser there without strict validation. In NHI and IAM workflows, that matters because redirect handling often sits inside login, consent, and token exchange paths, where even a small control failure can become a path for code theft or session hijacking.

Definitions vary across vendors on whether open redirection must be directly exploitable or whether it also includes chained abuse in OAuth and SSO flows. NHI Management Group treats the term operationally: if an attacker can influence the outbound destination enough to move a user, code, token, or session context outside the intended boundary, the redirect is unsafe. That places this issue close to NIST Cybersecurity Framework 2.0 concerns around access control and secure communications, even when the flaw first appears to be a simple UX feature.

The most common misapplication is assuming a redirect parameter is harmless because it only affects where a browser goes, which occurs when developers whitelist formats but not final destinations or allow chained URL parsing.

Examples and Use Cases

Implementing redirect handling rigorously often introduces usability friction, requiring organisations to weigh smoother authentication flows against tighter validation, allowlisting, and monitoring.

  • A login page accepts a

    return_url

    parameter and sends users to an attacker domain after sign-in, enabling credential phishing that looks like a legitimate application flow.

  • An OAuth callback endpoint allows arbitrary redirect targets, so an authorization code is delivered outside the application’s intended trust boundary and can be replayed.
  • A partner portal forwards users to “helpful” destination pages, but the destination is only checked for a matching prefix, allowing crafted URLs to bypass validation.
  • An agentic workflow invokes a browser-based approval step, and the redirect target is manipulated to steer the operator to a lookalike consent page before a sensitive action is confirmed.

For deeper NHI context, see Ultimate Guide to NHIs — 2025 Outlook and Predictions, which covers how fragile identity workflows become when control points are not tightly governed. The same threat pattern is reflected in broader identity guidance such as the NIST Cybersecurity Framework 2.0, especially where routing decisions affect authentication or authorization outcomes.

Why It Matters in NHI Security

Open redirection becomes an NHI security issue because service accounts, API keys, and delegated agents often depend on redirect-based flows to complete authentication or approval. If the redirect target can be manipulated, the attacker may capture authorization codes, deceive operators, or move a session into a malicious context before the real control plane can react. That is why redirect validation belongs in the same governance conversation as secret handling and lifecycle control.

NHI Management Group reports that 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools. When those weak practices are combined with redirect manipulation, the blast radius expands from a single user journey into token exposure, lateral movement, and agent misuse. The right response is strict destination allowlisting, exact URL comparison, and review of every redirect used in authentication or approval paths, aligned with identity governance expectations in NIST Cybersecurity Framework 2.0 and the broader NHI lifecycle guidance in Ultimate Guide to NHIs — 2025 Outlook and Predictions.

Organisations typically encounter open redirection as a root cause only after an OAuth code leak, phishing success, or suspicious session handoff, at which point the redirect path becomes operationally unavoidable to address.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST SP 800-63 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 Redirect abuse is a common chain in agentic auth and consent flows.
OWASP Non-Human Identity Top 10 NHI-04 Unsafe redirect handling can expose NHI auth codes and session context.
NIST CSF 2.0 PR.AC Open redirection undermines access control and secure authorization paths.
NIST Zero Trust (SP 800-207) AC-2 Zero Trust requires every handoff to be explicitly authorized and bounded.
NIST SP 800-63 Redirect manipulation can subvert federation and session binding in identity flows.

Harden federation endpoints so redirect targets cannot alter the identity transaction.