A redirection attack is a technique that sends a user or system to a different destination than the one they intended. In web and authentication flows, attackers abuse redirects, links, or routing rules to capture credentials, session tokens, or traffic, or to steer a victim to a fraudulent endpoint.
How Redirection Attacks Work
Redirection attacks exploit trust in routing, links, browser behaviour, or application logic. The attacker does not need to break the destination itself if they can first control where the user or system is sent.
This technique can appear in login flows, password reset links, OAuth handoffs, single sign-on journeys, payment redirects, and internal service routing. The core problem is that the original request and the final destination are no longer the same trust decision.
Why Redirection Is Security-Relevant
Redirection becomes dangerous when the target of the redirect carries sensitive context, such as an authenticated browser session, a bearer token, a one-time code, or a user’s willingness to trust a familiar domain. If the redirect target is attacker-controlled, the attacker can capture secrets, impersonate a service, or steer the victim into a fraudulent workflow.
Open redirect flaws are especially useful as a stepping stone. They can make a malicious destination look legitimate, help bypass link filters, and support phishing campaigns that borrow the reputation of a trusted site.
Where Exposure Usually Starts
Exposure often comes from unvalidated return URLs, weak allowlists, permissive route handlers, or redirect parameters that accept arbitrary destinations. In distributed systems, the same pattern can also arise in reverse proxies, identity providers, API gateways, mobile app deep links, and service-to-service callback logic.
- Check whether redirect inputs are user-controlled or derived from external input.
- Review login, logout, reset, and consent flows for destination tampering.
- Map where tokens, codes, or session material may travel through a redirect chain.
For identity-heavy flows, the important question is not just whether the redirect works, but whether it preserves the intended trust boundary. NIST’s Digital Identity Guidelines and Cybersecurity Framework 2.0 both reinforce the need to control the path by which authentication and recovery outcomes are delivered.
Controls and Defensive Design
The safest pattern is to avoid free-form redirects wherever possible. When a redirect is required, applications should use strict destination allowlists, map short tokens to preapproved destinations, and reject absolute URLs or protocol changes unless they are explicitly intended.
Controls should also reduce secret leakage in the redirect path. That means avoiding sensitive data in query strings, limiting token lifetime, using same-site session protections where appropriate, and ensuring the final destination is validated before any credential or session artifact is released.
Broader control frameworks are useful here because redirection issues are rarely isolated bugs. The NIST SP 800-53 Rev. 5 controls catalog and the OWASP API Security Top 10 both support the broader principle of restricting unintended access paths and validating where a request is allowed to go.
Risk and Threat Considerations
Redirection attacks can turn a trusted flow into a credential capture or phishing path, especially when users assume the original domain still controls the destination. The risk is highest where the redirect carries authentication material, because a single weak handoff can expose sessions, codes, or tokens.
Failure mechanism: An attacker manipulates the destination inside a redirect, callback, or link so the victim reaches an attacker-controlled endpoint while still trusting the original context.
Impact: Credentials, session tokens, authorization codes, or user trust can be stolen, and the same pattern can enable account takeover or fraudulent transaction flows.
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.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-4 — Information Flow Enforcement | Redirection controls whether a request may flow to an allowed destination. |
| IA-5 — Authenticator Management | Redirection attacks often steal or relay credentials, tokens, or codes. | |
| Recommendation — Enforce allowlisted destinations and block unapproved navigation paths. Constrain how authenticators and tokens are issued, transported, and consumed. | ||
| OWASP ASVS | V10 — OAuth and OIDC | Redirect URIs and callback handling are central to secure auth flows. |
| Recommendation — Validate redirect and callback destinations before releasing authorization responses. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Redirect abuse can expose or relay authentication material across trust boundaries. |
| Recommendation — Harden authentication handoffs so redirects cannot leak or replay credentials. | ||
Practitioner Guidance
Why practitioners should care: Redirection is often treated as a convenience feature, but it becomes a control point whenever it participates in authentication, recovery, or handoff logic. Review it as part of the trust boundary, not just as a UI behaviour.
What to watch for: Parameters such as return, next, redirect, target, or url are common indicators that a flow may be externally steerable. If those values can influence a post-login or post-action destination, the application deserves a deeper validation review.
Practitioner takeaway: Treat every redirect that can influence authentication or sensitive navigation as security-sensitive by default, and only permit destinations that the application can prove are intended.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org