Open Redirect: The Bug Programs Love to Reject

Day 18 split one response into two with two invisible characters. Today’s bug is almost embarrassingly simple to find, a URL parameter that sends a visitor somewhere the application never meant to send them, and it needs no injection syntax at all. Open Redirect happens when an application accepts a destination URL from user input and redirects the browser there without validating that the destination belongs to the application’s own trusted domains.
This is the seventeenth class in the series, and it is the one most worth approaching with a sharp sense of judgment rather than enthusiasm alone. It takes less time to find than almost anything else on this list, which is exactly why it is also the class most frequently rejected outright by bug bounty programs. Understanding where the line actually sits between “duplicate, won’t fix” and “genuinely paid, high-impact finding” is the real skill here, more than the technique itself.
Inside scope only. An open redirect is, by itself, low risk to demonstrate, since it only sends your own test browser somewhere else. The judgment required is entirely about whether your specific finding clears a program’s bar for impact, not about safety during testing.
What an open redirect actually is
Many applications legitimately need to redirect a user somewhere after an action, back to the page they were on before logging in, to an external partner site after clicking a link, away from a page that no longer exists. The common implementation pattern takes the destination straight from a request parameter.
https://example.com/redirect?url=https://example.com/dashboard
If the application does not validate that the url parameter points somewhere it actually controls, before issuing the redirect, an attacker can simply swap the value.
https://example.com/redirect?url=https://attacker-phishing-site.com
The victim clicks a link that visibly starts with example.com, a domain they trust, and ends up on a page entirely controlled by the attacker, with the browser’s address bar briefly, or sometimes persistently depending on the redirect type, showing the trusted domain before the jump occurs.
Why this is the most contested bug class in the series
Every other class covered so far has a fairly stable, broadly agreed severity. Open redirect does not, and understanding exactly why is the actual lesson here.
The impact of redirecting a browser, by itself, is genuinely limited. No data is read, no account is touched, no code runs. The entire consequence is that a victim ends up somewhere other than where the link appeared to point, which is why Google’s own bug bounty program states plainly that if a report only demonstrates an open redirector with no further exploit, no bug will be filed on the basis of that report alone.
But a trusted domain in a phishing link measurably works better than an untrusted one. Security research specifically analyzing real phishing campaigns has found that open redirects are used quite commonly in active phishing chains precisely because a link starting with a well-known, trusted domain passes through many email security filters that would otherwise flag a link pointing directly at an unknown domain, and the trusted-looking prefix measurably increases click-through from targets who glance at the domain before clicking.
Programs explicitly separate “proof it redirects” from “proof it matters.” Spotify’s published policy states directly that they are not interested in open redirect reports on third-party managed websites unless the researcher demonstrates an impact beyond phishing. This single sentence captures the entire judgment call this bug class demands: the redirect itself is table stakes, the report has to show what it specifically enables beyond a generic phishing scenario, to be worth a program’s time.
Chained with something else, the severity changes completely. An open redirect that, on its own, earns nothing, can become a critical finding the moment it chains into an OAuth token leak, because an attacker-controlled redirect destination inside an OAuth authorization flow can be used to capture the authorization code or access token intended for the legitimate application, a chain explicitly called out in “Real-World Bug Hunting” as one of the genuinely high-value escalation paths for this bug class.
Real disclosed reports
- Shopify, login open redirect via subdomain confusion, $500 bounty, reported November 2015. The core trick: a URL like
http://mystore.myshopify.com.attacker.com/, when submitted for a DNS lookup, resolves against attacker.com, a domain the attacker genuinely owns, rather than myshopify.com as the validation logic had assumed it would, because the validation checked only that the string contained the expected substring rather than correctly parsing the actual domain boundary.
- Shopify, theme install open redirect, $500 bounty, reported the same period. A related but separately reported flaw in the theme preview and installation flow’s domain parameter, demonstrating that even a single application can carry more than one distinct instance of this exact root cause in different features.
- HackerOne’s own platform, Interstitial Redirect bypass, $500 bounty, reported January 2016. Many sites attempt to mitigate open redirect risk specifically by inserting an interstitial warning page, “you are leaving this site, continue?”, before completing a redirect to an external domain. This report demonstrated a way to bypass that exact protective mechanism, which is a notably more sophisticated and higher-value finding than a bare redirect, precisely because it defeats a defense the program had deliberately built.
- Udemy, open redirect in a passwordless authentication endpoint, $2,000 bounty. The researcher specifically framed the report around the authentication context, an attacker could construct a phishing link using the passwordless login flow’s own redirect parameter to steal credentials during what looked like a completely legitimate Udemy authentication step, a clear demonstration of impact beyond “generic phishing,” and one directly comparable to the OAuth-adjacent chain discussed above.
- A private HackerOne program (transferred to Splunk’s program), GET-based open redirect, $250 bounty. Documented candidly by the researcher as a five-minute finding with no complex exploit chain, reported purely through the program’s responsible disclosure process and explained in terms of the phishing scenario it could enable, a useful, honest data point for calibrating expectations: this class can and does pay, often modestly, when the impact is clearly and specifically explained rather than assumed.
- A separate program, open redirect chained with reflected XSS, documented in an independent writeup earning $550 in under five minutes according to the researcher. This report specifically chained the redirect finding with a reflected XSS on the same parameter, converting what would likely have been a low or informational redirect-only finding into something with directly demonstrated script execution impact.
Read the Shopify subdomain confusion case first, since the underlying validation mistake, checking for a substring rather than correctly parsing the actual domain, is the single most common root cause behind this entire bug class and is worth understanding at that level of specificity. Then read the HackerOne interstitial bypass case for the clearest example of why defeating an existing protective mechanism is valued more highly than finding a redirect with no mitigation at all.
The main variants and bypass techniques
No validation at all. The simplest case, any URL in the parameter is accepted and redirected to directly.
Substring or “starts with” validation, bypassed via subdomain or userinfo tricks. The Shopify DNS resolution case above is the classic example. A closely related technique uses the URL userinfo syntax, https://trusted-domain.com@attacker.com/, which some parsers interpret as “log in to attacker.com using the username trusted-domain.com,” resolving the actual destination to the attacker’s domain entirely, while a naive string check sees the expected trusted domain name appearing first in the string and passes it.
Allowlist validation bypassed via protocol-relative or malformed URLs. //attacker.com is a valid, protocol-relative URL that many browsers will happily follow, and some validation logic checking specifically for http:// or https:// prefixes misses this form entirely. Similarly, backslashes (https:/\/attacker.com) and certain whitespace or control character insertions can cause an inconsistency between how the validating code parses the URL and how the browser itself ultimately interprets it.
Open redirect defeating an interstitial warning page. As the HackerOne case demonstrated, even a program that has specifically built a “you are leaving this site” warning step can have that step bypassed through parameter manipulation, a parallel redirect path, or a flaw in how the interstitial page itself constructs its own continuation link.
Open redirect chained into OAuth token or authorization code theft. Where an OAuth flow’s redirect_uri parameter is validated loosely enough to accept a path on the legitimate domain that itself contains an open redirect, an attacker can register or abuse a technically-valid-looking redirect URI that ultimately forwards the authorization code or token to an attacker-controlled destination, explicitly flagged in bug bounty literature as one of the genuinely critical escalation paths for this otherwise low-severity bug class.
Where to look, pointed at your recon
- Login, logout, and post-authentication redirect parameters.
?redirect=, ?returnUrl=, ?next=, ?continue=, ?destination=, exactly the parameter family your recon params.txt from Day 1 to 3 should already flag.
- Any OAuth or SSO
redirect_uri or callback parameter, where the validation logic’s strictness, exact match versus prefix match versus substring match, is worth testing carefully given the escalation potential described above.
- Email and notification links containing a tracking or redirect wrapper, since marketing and analytics redirect services embedded in legitimate emails are a frequent, often overlooked source of this exact bug.
- Any feature with an interstitial “you are leaving this site” warning, since bypassing an existing protection is consistently valued higher than finding an unprotected instance, as the HackerOne case shows.
- Third-party or partner integration links, payment gateway returns, affiliate link redirectors, app store or marketplace “continue to” flows.
How to hunt it, step by step
Step 1: identify every parameter that plausibly holds a destination URL. From recon and the categories above.
Step 2: test basic substitution first. Replace the value with a domain you control or a known-safe external domain like example.com, and observe whether the browser is redirected there directly.
Step 3: if basic substitution fails, test subdomain and userinfo tricks. trusted-domain.com.attacker.com and https://trusted-domain.com@attacker.com/, checking specifically whether the application’s validation logic was checking for a substring or prefix rather than correctly parsing the actual host.
Step 4: test protocol-relative and malformed variants if an allowlist seems to check the scheme specifically. //attacker.com, backslash variants, and encoded characters that might parse differently between the validating code and the browser.
Step 5: if an interstitial warning page exists, specifically test for a bypass. Check whether the interstitial’s own continuation link can be manipulated, or whether an alternate code path skips the warning entirely.
Step 6: before investing further time, always read the specific program’s policy on this bug class. Given how explicitly Google and Spotify’s public policies, and many others, address open redirects specifically, this is the one bug class in this series where checking scope wording first is not optional, it is the single highest-leverage five minutes you can spend.
Step 7: actively look for a chain, since this is what separates a paid report from a rejected one. Does the redirect parameter appear in an OAuth flow. Can the same parameter be combined with reflected XSS, as the $550 case above demonstrated. Does the destination get embedded somewhere that enables credential capture, as the Udemy passwordless authentication case did.
Writing the open redirect report
Title: Open redirect in [parameter] at [endpoint] [chained with/enabling X, if applicable]
Summary:
One sentence: which parameter, which bypass technique if validation
existed, and critically, what specific impact beyond generic
phishing this finding demonstrates.
Steps to Reproduce:
1. Visit [URL] with [parameter]=[attacker-controlled or bypass
payload].
2. Observe the browser is redirected to the attacker-controlled
destination.
3. (If chained) Demonstrate [the OAuth token exposure / reflected
XSS / credential capture scenario] that results specifically
because of this redirect.
(Exact URL, a screenshot or recording of the redirect occurring,
and clear documentation of any chained impact.)
Impact:
An attacker can craft a link that appears to originate from
[trusted domain] but redirects the victim to an attacker-controlled
destination, [enabling a more convincing phishing attack / exposing
an OAuth token or authorization code / enabling reflected XSS].
Be specific and honest about the realistic impact; do not
overstate "open redirect" alone as independently high severity
unless a genuine chain is demonstrated.
Remediation:
Validate the redirect destination against a strict, server-side
allowlist of permitted domains or specific internal paths, using
proper URL parsing rather than substring or prefix matching.
Where external redirects are genuinely required, maintain a
dedicated interstitial warning page with no way to bypass it via
parameter manipulation.
The strongest reports on this list, the Udemy and HackerOne interstitial cases especially, succeed specifically because they name a concrete scenario beyond “this could be used for phishing in general,” either a specific authentication context being abused or a specific existing protection being defeated. A report that stops at “I can redirect to google.com” is close to the weakest possible version of this finding and is likely to be closed without a bounty on the vast majority of current programs.
What programs almost always reject
- A bare open redirect with no chained impact and no bypass of an existing protection, exactly the category Google’s own public policy explicitly excludes
- Open redirect on a third-party managed subdomain or integration with no impact shown beyond generic phishing, explicitly called out by name in Spotify’s published policy
- Findings relying on a working meta-refresh or
javascript: URL redirect through a mechanism the program has already reviewed and deliberately accepted as low risk
- Duplicate submissions of the exact same redirect parameter pattern already reported elsewhere on the same program
The mindset: low effort does not mean low judgment
This bug class inverts the usual relationship between effort and payout that most of this series has followed. Finding it takes almost no skill. Getting paid for it takes real judgment about what a specific program actually cares about, and real effort spent looking for the chain that turns a five-minute finding into a genuinely dangerous one. The technical lesson is simple, validate destinations with proper URL parsing, never a substring check. The professional lesson is the one worth internalizing: read the policy first, and never submit a bare redirect without first spending real effort looking for what it might chain into.
Homework for Day 19
- From recon, list every redirect-shaped parameter on the target, with specific attention to login, logout, and any OAuth or SSO callback flow.
- Before testing anything, read the specific target program’s policy page for exactly how it treats open redirect reports.
- Test basic substitution, then subdomain and userinfo tricks, then protocol-relative variants, recording which validation approach, if any, the application uses.
- If an interstitial warning page exists anywhere on the target, specifically attempt to bypass it.
- Read the Shopify subdomain confusion report and the HackerOne interstitial bypass report end to end, then read Google’s bug bounty policy page on open redirectors directly. For each, note exactly what separated a paid, accepted finding from the explicitly stated rejection criteria.
An open redirect with no further chain is typically low or informational severity on most current programs, and should be reported honestly as such. One that bypasses an existing protective mechanism, or chains into OAuth token exposure, reflected XSS, or direct credential capture, can reach medium or high severity. Document it with the specific chain or bypass demonstrated, never the bare redirect alone, and always check program policy before investing further time.
Day 20 moves to a bug where the application’s business rules, not its code, are the actual vulnerability, Business Logic Flaws, and why they are consistently the hardest bug class in this series to find with a scanner and the easiest to explain to a non-technical stakeholder once you have.