Client-Side URL Redirect, or DOM-based open redirect, is a browser-side redirect where JavaScript sends a user to a URL derived from untrusted input. Attackers abuse it for phishing, credential theft and trust abuse by keeping the redirect on a legitimate domain first. Defenders should validate destinations, use allow-lists and avoid unchecked location changes.
Why Client-Side URL Redirects Are Dangerous
Client-side URL redirects are risky because the browser can be steered by data that the application treats as safe, even when that data came from a user-controlled parameter, fragment, or script state. The user often begins on a legitimate domain, which gives the redirect a false sense of trust and makes abuse easier to miss.
This pattern is especially valuable to attackers because the first page visit looks benign, while the second hop can lead to credential harvesting, malware delivery, session abuse, or a lookalike login page. When the redirect target is not tightly controlled, the browser becomes a trust bridge that attackers can repurpose.
How the Browser Becomes the Redirect Mechanism
In DOM-based redirects, JavaScript reads input from the URL or page context and then assigns it to a navigation sink such as location, href, or a similar browser API. The weakness is not the redirect itself, but the absence of a trustworthy decision about where the browser is allowed to go.
Because this happens client side, the server may never see the final destination being used. That makes the behaviour harder to validate in code review and easier for an attacker to shape through crafted links, bookmarks, injected parameters, or social engineering payloads.
What Makes This Vulnerability Class So Abusable
open redirect are useful to attackers because many users and filters trust an initial navigation to a familiar domain. That trust can be used to bypass user caution, make phishing links appear credible, or route a victim through an intermediary page that hides the real destination.
They are also useful as a supporting primitive in broader attack chains. A redirect can help with lure delivery, domain reputation abuse, token or code interception in weak flows, and traffic steering toward pages that harvest passwords or session material.
NHIMG’s Web Application Attacks Guide is a useful companion for understanding how open redirects sit alongside other web weakness patterns and how they fit into common application attack chains.
How Defenders Reduce Exposure
The safest approach is to avoid letting the browser follow arbitrary destinations at all. Where redirects are genuinely needed, the destination should come from a controlled allow-list or a server-side mapping, not from raw user input, and any relative navigation should be constrained to known-safe paths.
Defenders should also review pages that build redirects from query strings, hash fragments, or client-side routing state, because those are common places where untrusted values re-enter navigation logic. This is easiest to catch when redirect behaviour is treated as a security-sensitive code path rather than as a cosmetic convenience.
For teams hardening adjacent browser-side attack surfaces, the Client-Side Security Guide provides broader context on front-end trust boundaries and script-mediated abuse patterns.
Detection and Verification After Fixes
Testing should include crafted inputs that try absolute URLs, scheme changes, encoded destinations, protocol-relative values, and other tricks that can bypass naive string checks. A fix is only real when the application rejects unsafe targets consistently across the relevant browser flows, not just in one code path.
After remediation, teams should re-check any login, logout, support, payment, or onboarding flows that depend on redirects. Those paths are particularly attractive because users are already expecting a handoff, which makes malicious redirection easier to disguise.
The Cross-Site Scripting (XSS) Prevention Guide is also relevant when redirect logic is implemented in the browser, because the same front-end trust mistakes often coexist with other DOM-based weaknesses.
Risk and Threat Considerations
Open redirects are a classic phishing enabler because they preserve the appearance of a legitimate domain before handing control to an attacker-controlled destination. They can also undermine filtering, reputation checks, and user judgement when the visible link begins on a trusted site.
Failure mechanism: The application accepts untrusted redirect input and passes it into browser navigation without a strict destination policy, allowing crafted links to steer users to hostile pages or to chain into broader abuse.
Impact: Victims may be sent to credential theft pages, malicious downloads, or impersonation sites, and the redirect can be used to increase success rates for fraud, session abuse, and trust exploitation.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while OWASP ASVS, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V4 — API and Web Service | DOM redirect sinks are browser-side web behaviour that needs verified input handling. |
| V15 — Secure Coding and Architecture | Open redirects stem from insecure application design and trust-boundary mistakes. | |
| Recommendation — Validate redirect destinations and reject uncontrolled navigation targets in web flows. Design redirect logic around trusted allow-lists rather than user-controlled URLs. | ||
| CIS Controls v8 | CIS-16 — Application Software Security | This weakness is a web application flaw that belongs in secure development and testing. |
| Recommendation — Test client-side redirect paths as part of application security validation. | ||
| MITRE ATT&CK | T1185 — Browser Session Hijacking | Redirect abuse can support browser-mediated phishing and session theft chains. |
| Recommendation — Hunt for browser-based lure chains that use trusted domains to steer victims off-site. | ||
| NIST SP 800-53 Rev 5 | SI-10 — Information Input Validation | Unsafe redirect targets are a direct input-validation failure in web code paths. |
| Recommendation — Apply input validation to all redirect sources before navigation occurs. | ||
Practitioner Guidance
What to watch for: Treat any client-side navigation that depends on URL parameters, fragments, or other ambient page state as security-sensitive code. If the redirect target can be influenced by the user, it needs explicit destination validation, not just informal review.
Governance implication: Redirect logic should have an owner, a documented allow-list approach, and test coverage that proves unsafe destinations are blocked across all supported browsers and routes. For teams that already track web attack patterns, the Phishing Guide helps connect open redirect abuse to the broader lure and trust-abuse problem.
Related resources from NHI Mgmt Group
- How should security teams govern URL-based OAuth client identities in MCP?
- Why do URL-based client IDs change the risk model for OAuth in MCP?
- How should security teams govern MCP client onboarding with URL-based metadata?
- How should security teams balance platform consolidation with specialized client-side protection for browser-based threats?
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 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org