Join our Newsletter — 33% off our NHI Course
Authentication, Authorisation & Trust

Redirect Drift

← Back to Glossary
By NHI Mgmt Group Updated October 23, 2026 Domain: Authentication, Authorisation & Trust

Redirect drift is the gradual mismatch between an allowed redirect target and the actual destination used in authentication or application flows. In identity systems, it can break trust in OAuth, SSO, and callback handling, allowing tokens or users to be sent to unintended endpoints if redirect rules are changed, reused, or poorly validated.

Redirect Drift in OAuth and SSO Flows

Redirect drift appears when the redirect target that was approved during design or registration no longer matches the destination that requests actually reach at runtime. In authentication flows, that gap can quietly redirect users, codes, or tokens to the wrong endpoint even when the original configuration looked valid.

The issue is especially important in OAuth, SSO, and callback-based integrations because redirect handling is part of the trust boundary. A small routing change, reused callback path, or stale allowlist entry can turn a legitimate handoff into an unintended one, which is why redirect drift is often treated as a control integrity problem rather than a simple configuration bug.

Redirect drift is usually not visible from the user-facing flow alone. Teams often discover it only when a partner integration fails, a token lands at an unexpected host, or an application starts accepting callbacks that were never meant to be part of the original trust relationship.

Because the drift happens between policy and execution, it often survives basic functional testing. The flow can still “work” while the security boundary has changed underneath it.

How Redirect Drift Breaks Trust

The security problem is that redirect rules are often reused across environments, apps, or tenants, while the actual destinations evolve over time. If validation is loose, the system may accept a destination that is syntactically allowed but no longer semantically correct for the identity or application flow.

That mismatch can support token theft, authorization-code interception, open redirect chaining, or unintended session handoff. In practical terms, redirect drift weakens the assumption that a callback will return to the exact relying party, route, or tenant that originally initiated the flow.

It is also a governance problem. Ownership of redirect URIs, callback endpoints, and federation settings is often split across application teams, platform teams, and identity administrators, so drift can persist when no single owner continuously reconciles the approved list against live traffic.

Where Organisations Find Exposure

Exposure usually shows up in the places where redirect configuration is distributed: identity provider settings, application manifests, reverse proxies, SaaS integrations, and partner onboarding records. The most reliable check is to compare the registered redirect inventory with the endpoints actually observed in production and staging.

Vendor documentation and platform change logs matter because redirect rules are frequently altered during integration updates, domain changes, or tenancy migrations. A review should also include internet exposure, since a callback endpoint that was meant for an internal flow can become reachable externally when routing or DNS changes.

This is why redirect drift should be reviewed alongside access control and authentication controls. NIST SP 800-53 Rev 5 Security and Privacy Controls helps anchor that review in system integrity, access control, and configuration management rather than treating redirects as a purely cosmetic setting.

Hardening Redirect Handling and Recovery

The safest pattern is to keep redirect rules narrowly scoped, explicitly owned, and periodically revalidated against the live application path. Exact matching is preferable to broad pattern matching when the flow depends on a known callback destination.

Where patching or reconfiguration cannot happen immediately, compensating controls should reduce the blast radius. That usually means tightening allowlists, removing unused callbacks, limiting token exposure in browser redirects, and watching for unexpected destination changes after deployments or federation updates.

Redirect drift also benefits from lifecycle discipline. If a redirect endpoint is retired, repurposed, or copied into a new environment, the old trust relationship should be removed rather than left to age out informally. A direct comparison between intended and observed destinations is often the fastest way to spot stale trust.

Detection and Post-Change Review

Detection should focus on mismatch signals, not just outright failures. Useful indicators include redirect destinations that change without a corresponding change record, callback requests arriving at an unapproved host, repeated authorization attempts that bounce between old and new paths, or unexpected token delivery patterns after an integration release.

After any suspected drift event, teams should review whether tokens, codes, sessions, or linked credentials may have been exposed to an unintended endpoint. If the destination mismatch could have been abused, the response should include revocation or rotation of any identity material that may have crossed the wrong trust boundary.

For identity-driven flows, the main lesson is that redirect validation is part of authentication integrity, not a secondary routing detail. NIST 800-63 Digital Identity Guidelines is useful here because it frames the trustworthiness of the overall digital identity transaction, not just the login step itself.

Risk and Threat Considerations

Redirect drift creates a durable exposure because the approved destination and the live destination can diverge without breaking the user experience. That makes it attractive to attackers who want to capture tokens, interfere with federation, or steer a legitimate flow to infrastructure they control.

Failure mechanism: A redirect URI, callback route, or destination rule is changed, reused, or loosely validated, so the system continues to trust a path that no longer points where the security design expects.

Impact: Tokens, codes, or users can be sent to unintended endpoints, which can lead to account compromise, session hijack, partner trust failure, or a hard-to-detect breach of the intended authentication boundary.

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 NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SC-23 — Session AuthenticityRedirect integrity affects whether a session or auth response reaches the intended endpoint.
AC-4 — Information Flow EnforcementRedirect handling is a flow-control boundary that should only permit approved destinations.
CM-3 — Configuration Change ControlRedirect drift is often introduced by unmanaged changes to application or federation settings.
Recommendation — Validate callback destinations and reject unintended redirect targets before issuing auth responses. Enforce allowlisted redirect paths and block flows to unapproved endpoints. Review and approve redirect setting changes before they reach production.
OWASP API Security Top 10API8 — Security MisconfigurationLoose or stale redirect settings are a configuration weakness that can expose auth flows.
API2 — Broken AuthenticationRedirect drift can break the integrity of authentication and callback handling.
Recommendation — Audit redirect configuration for stale, broad, or inconsistent destination rules. Test authentication callbacks for destination integrity and reject mismatched redirects.
OWASP ASVSV10 — OAuth and OIDCRedirect URI handling is central to OAuth and OIDC trust establishment.
V7 — Session ManagementMisrouted callbacks can compromise session establishment and token handling.
V8 — AuthorizationRedirect targets should only permit approved destinations for a given application context.
Recommendation — Require exact redirect URI validation for OAuth and OIDC flows. Verify that session-related redirects cannot be altered or replayed to other endpoints. Restrict redirect destinations to the minimum approved set for each flow.

Practitioner Guidance

Why practitioners should care: Redirect drift is one of those issues that can look harmless in code review yet undermine the trust assumptions behind SSO and OAuth. Treat redirect targets as security-controlled configuration, not as convenience settings owned only by application teams.

What to watch for: Watch for environment copies, domain changes, SaaS reconfiguration, and federated app updates that alter the callback path without a corresponding inventory update. The practical test is whether the approved redirect list still matches the destinations the system actually uses today.

Practitioner takeaway: If the destination can change without an explicit trust review, the redirect is not stable enough to rely on for authentication flow security.

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 October 23, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org