Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Unvalidated Redirects and Forwards
Cyber Security

Unvalidated Redirects and Forwards

← Back to Glossary
By NHI Mgmt Group Updated October 17, 2026 Domain: Cyber Security

Unvalidated Redirects and Forwards are application flows that send a user to a destination chosen from untrusted input without proper checking. Defenders allow only approved targets, avoid exposing internal forward logic, and review login and return URLs, because attackers use this weakness for phishing, token theft, and access-control bypass.

How unvalidated redirects and forwards work

Unvalidated redirects and forwards are not a bug in routing alone, they are a trust failure in how an application handles destination input. The application accepts a return URL, next parameter, or internal forward target and sends the user where that value points instead of where the application policy intended.

This matters because the browser or server still appears to be behaving normally, which makes the abuse easy to miss in testing and in user workflows. The redirect can send a victim to a lookalike login page, while a forward can quietly move execution into a protected path that the user should never have reached directly.

Why this weakness is dangerous

The danger comes from the fact that the application is borrowing its own trust boundary to vouch for an attacker-chosen destination. That can support phishing, session theft, token capture, and access-control bypass when a user assumes the destination is safe because it came from a legitimate site flow.

Open redirect chains can also be used as an intermediate step in broader attacks, such as making malicious links look first-party, laundering a user through a trusted domain, or steering a browser through a sequence that hides the real landing page. NHIMG’s Web Application Attacks Guide covers open redirect alongside other common web attack patterns that abuse input handling and trust decisions.

How organisations find and reduce exposure

Exposure usually sits in login flows, post-auth return URLs, deep-link handlers, and any feature that accepts a destination from request parameters, headers, or hidden form fields. Teams should review those code paths, identify where untrusted input influences navigation, and confirm whether the application allows only a fixed allowlist of destinations.

Reviewing internet-facing entry points is especially important because attackers often probe public URLs first, then test whether they can redirect users to external domains or force internal forwards into sensitive application states. For broader web-app hardening context, the same guide is useful for mapping this issue to adjacent weaknesses such as request manipulation and access-control failures.

Detection, verification, and post-exploitation review

Testing should confirm that the application rejects arbitrary absolute URLs, normalises relative paths safely, and does not expose internal forward targets that reveal routing structure. Security review should also verify whether redirect destinations are logged, because logs help distinguish ordinary navigation from suspicious off-domain jumps.

After suspected exploitation, review authentication events, session activity, and any login or consent handoff that used a redirect parameter. If an attacker used the weakness to capture tokens or abuse a session handoff, the compromise review should extend to the affected account state and any downstream actions taken through that browser session.

Risk and Threat Considerations

Unvalidated redirects and forwards are dangerous because they let an attacker reuse a trusted application as a delivery mechanism for deception or abuse. The weakness can support credential harvesting, session theft, and access-control bypass even when the vulnerable application is not itself the final target.

Failure mechanism: The application accepts a destination from untrusted input and treats it as authoritative, so the attacker controls where the user is sent or which internal handler processes the request.

Impact: Users can be routed to malicious pages under a trusted brand, security controls can be bypassed through unintended internal execution paths, and downstream compromise can begin from a link that appears legitimate.

Standards & Framework Alignment

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

NIST CSF 2.0, NIST SP 800-53 Rev 5, OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication and Access ControlOpen redirects can support account and session abuse through trusted login flows.
Recommendation — Restrict redirect targets to approved destinations within access-controlled authentication flows.
NIST SP 800-53 Rev 5SC-23 — Session AuthenticityRedirect abuse can undermine confidence in where a session or browser flow is sent.
Recommendation — Validate application destinations so session-bearing flows cannot be redirected to attacker-controlled endpoints.
OWASP ASVSV8 — AuthorizationUnchecked forwards can bypass intended authorization boundaries inside the application.
V10 — OAuth and OIDCReturn URL handling in sign-in and federation flows is central to redirect safety.
Recommendation — Enforce server-side authorization before forwarding requests into protected application paths. Validate redirect_uri and return URL handling with strict allowlists in authentication flows.
CIS Controls v8CIS-16 — Application Software SecurityApplication input validation and secure design directly address redirect and forward flaws.
Recommendation — Review application flows that accept destinations from input and remove unsafe redirect logic.

Practitioner Guidance

Why practitioners should care: Redirect and forward handling is part of the application trust boundary, not a cosmetic navigation feature. If the destination is user-controlled, the control design should treat it as attacker-supplied data and verify it before any redirect or dispatch occurs.

What to watch for: Parameters such as return, next, redirect, url, and goto often reveal these flows, but the most important test is whether the application enforces an explicit allowlist of destinations rather than trying to blacklist bad ones. Internal forwards deserve the same scrutiny as browser redirects because they can expose protected application logic.

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