In-depth lesson · technique
redirect_uri manipulation
What every disclosed redirect_uri manipulation report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 67
- median public bounty
- $3,000
Overview
What it is and why programs pay for it.
Redirect URI manipulation is a flaw in OAuth and single sign-on flows where an attacker can change the redirect_uri parameter so that the authorisation code or access token is sent to a destination they control. This happens when the authorisation server does not strictly validate the redirect URI against a pre-registered value, or when it uses weak matching such as prefix, wildcard or regex checks. The technique is common because OAuth is widely used and redirect URI validation is often an afterthought. It is most often found on platforms that host user content under custom domains, on secondary login endpoints, and in mobile apps that use custom URI schemes without PKCE.
Programs care about this because a successful attack can lead to account takeover: the attacker obtains the victim's authorisation code or token and uses it to access the victim's account or data. It can also expose sensitive information through referer leakage or open redirects. Bug bounty hunters frequently find these issues in OAuth implementations of major platforms, and they are often rewarded when demonstrated with a clear impact such as stealing a token or code.
The flaw usually leads to unauthorised access to user accounts, data leakage, or further attacks like CSRF and open redirect chaining. It is most often found in OAuth authorisation endpoints, callback handlers, client registration endpoints, and mobile app deep links. Common root causes include missing validation of redirect URIs, path prefix matching instead of exact match, allowing arbitrary query parameters or fragments, and trusting headers like Referer to determine redirect destinations.
Seen in these reports14
-
$450 -
$5,000 -
$4,000
Show 5 moreShow fewer
-
$1,200
-
$900 Low -
$880
How it works
The mechanics, as the reports show them.
The attack works by manipulating the redirect_uri parameter in an OAuth authorisation request. The attacker first identifies an OAuth flow where the redirect_uri is not strictly validated. They then craft an authorisation URL with a redirect_uri pointing to a domain they control. When a victim clicks the link and authorises the application, the authorisation server sends the code or token to the attacker's domain instead of the legitimate one.
What makes this possible is weak validation logic. For example, the server might only check that the redirect_uri starts with the legitimate domain, allowing an attacker to use a domain like legitimate.com.attacker.com. Or it might accept any subdomain, and the attacker can find an open redirect on one of those subdomains to forward the token. Sometimes the server allows path traversal sequences to bypass checks, or it accepts duplicate parameters where validation reads one value and the redirect uses another.
Another common enabler is the use of custom URI schemes in mobile apps without PKCE, allowing a malicious app to register the same scheme and intercept the code. In other cases, the callback trusts the Referer header to decide where to redirect after login, so an attacker can forge a request with a controlled Referer. Some implementations allow arbitrary query parameters or fragments to be appended to the redirect_uri, which can be used to leak tokens via the Referer header when the user navigates away.
The step-by-step process typically involves: finding an OAuth authorisation endpoint, testing whether the redirect_uri can be changed to an external domain, trying bypass techniques such as using a protocol-relative URL, adding path traversal, using duplicate parameters, or exploiting an open redirect on an allowed domain. If the server redirects to the attacker's site with the code or token, the attacker can then exchange the code for a token or use the token directly.
In more complex scenarios, the attacker might chain multiple issues: for instance, combining a CSRF login, an open redirect in the redirect_uri, and a product image URL that fetches from the attacker's server to leak the authorisation code via the Referer header. Or they might exploit a permissive crossdomain.xml to read the authorisation endpoint. The key is to find a way to get the code or token to a location the attacker can access.
Seen in these reports17
-
-
$5,000 -
$5,000
Show 5 moreShow fewer
-
$1,200
-
$900 Low -
-
-
Medium
Year by year
8 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2013 | 1 |
|---|---|
| 2014 | 5 |
| 2015 | 4 |
| 2016 | 4 |
| 2017 | 8 |
| 2018 | 3 |
| 2019 | 4 |
| 2020 | 8 |
| 2021 | 4 |
| 2022 | 5 |
| 2023 | 6 |
| 2024 | 8 |
| 2025 | 14 |
| 2026 | 40 |
-
2026
New this year4
- Dynamic client registration without authentication using an attacker-controlled redirect URI clearly grows in the disclosed reports.
- Registering an OIDC provider pointing at the attacker's server and serving a discovery document and JWKS with the attacker's signing key first appears in the disclosed reports.
- Pointing an MCP server's login provider address at the attacker's service to capture refresh tokens, client secrets or signed JWT assertions first appears in the disclosed reports.
Kept working5
- Validation done by prefix, wildcard or regex matching rather than exact comparison continued to be found across the batch in the disclosed reports.
- A malicious app registering the same custom URL scheme as the official app was used to intercept the OAuth authorisation code in the disclosed reports.
-
2023
New this year2
- Mobile custom URL scheme interception of the OAuth code first appears in the disclosed reports.
- Tampering with a base64 state parameter's target_host field first appears in the disclosed reports.
Kept working2
- Path traversal in the redirect_uri was used to point the authorisation code at the hunter's own product page and check whether analytics on that page leaked the code in the disclosed reports.
- An editor URL containing the hunter's host plus the allowed domain was crafted to check whether a flawed regex let the editor send the access token to the attacker's server in the disclosed reports.
-
2021
New this year2
- Cross-provider redirect_uri tricks between Bitbucket and GitLab callbacks first appear in the disclosed reports.
- Using a release link to an external URL to control the redirect in a Geo OAuth flow first appears in the disclosed reports.
Kept working1
- On custom GitLab installations, hunters checked whether the OAuth callback URL was restricted to the exact instance domain or accepted arbitrary URLs in the disclosed reports.
Earlier years5
Where it is found
2The features and places the reports found it in, most-reported first.
-
OAuth authorisation flows on platforms that let users host content under custom domains.
Seen in 1 report
-
A secondary OAuth2 login endpoint that does not validate the redirect URI.
Seen in 1 report
Technologies in these reports16
Root causes
6The mistakes in the code or configuration behind the reports.
-
The registration endpoint required no authentication and did not validate redirect URIs, client names or logos, and did not restrict the none token endpoint authentication method.
Seen in 4 reports
-
The OAuth flow used an unverified custom URI scheme without PKCE, so the code was not bound to the app that started the flow.
Seen in 3 reports
-
The callback trusted the attacker-controllable Referer header to choose the post-login destination, and OAuth initiation was a forgeable GET.
-
The server allowed arbitrary query parameters and fragments to be appended dynamically to the redirect_uri instead of pinning the whole value.
-
The callback put the access token in the query string and honoured an attacker-controlled redirect_uri, so the token leaked through the Referer header on the redirect.
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Redirect URI validation bypasses
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
OAuth client registration and app settings
of 3 ticked-
Seen in 4 reports
-
Seen in 1 report
-
Seen in 1 report
Open redirects and redirect chains
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
Identity providers and SSO configuration
of 3 tickedBypasses and variations
5How reports got past filters, encoders and other defences.
-
Repeat the host parameter so the validator and the credential handler read different occurrences.
Seen in 1 report
-
Exploit disagreement between the client-side parser and server over which characters separate parameters, so host validation sees a different value than the one used.
Seen in 1 report
-
Send duplicate redirect_uri parameters so validation reads the first while the redirect is built from the last.
Seen in 1 report
-
Try a range of payload variations to bypass the open-redirect filter on redirect_uri so the victim lands on the attacker's server.
-
Use a path traversal segment in the redirect_uri to get past validation and steal the access token.
Seen in 1 report
Payouts
18 paidPublic bounties in US dollars, from the data. 18 of 151 reports show an amount.
- a quarter paid up to
- $975
- median
- $3,000
- three quarters paid up to
- $5,000
- highest
- $13k
One in ten paid reports was paid $7,500 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 1 | 0 | None paid | None |
| High | 11 | 3 | $1,200 | $2,000 |
| Medium | 7 | 1 | $2,000 | $2,000 |
| Low | 7 | 1 | $900 | $900 |
| Unrated | 125 | 13 | $5,000 | $13k |
Highest-paid reports5
-
$13,337 -
$7,500 -
$7,500 -
$6,000 -
$5,000
Tips for beginners
14Advice for a first hunt, drawn from the reports.
-
Look for secondary OAuth endpoints or less obvious flows, such as those used for password reset or account linking. These may have weaker validation. Also check client registration endpoints that allow unauthenticated registration with arbitrary redirect URIs.
Seen in 5 reports
-
Use a webhook or a server you control to capture incoming requests. This helps you confirm that the code or token is sent to you. Be careful not to expose real user data; use dummy accounts.
Seen in 4 reports
-
Look for weak validation patterns. Try adding extra query parameters or fragments to the redirect_uri. Test if the server accepts a redirect_uri that starts with the legitimate domain but continues into your domain. Check if duplicate redirect_uri parameters are accepted and which one is used.
Seen in 3 reports
-
Consider mobile apps. If the OAuth flow uses a custom URI scheme, try to register the same scheme with a malicious app and see if you can intercept the code. Check if PKCE is used; if not, the flow may be vulnerable.
Seen in 3 reports
-
Check for token leakage via Referer. If the token is in the URL, see if it leaks when the user clicks an external link or loads third-party resources. You can use a page you control on the whitelisted domain to capture the Referer.
Seen in 3 reports
Guides and techniques
The best explainers, cheat sheets and technique posts on redirect_uri manipulation, from around the web.
-
The Current Landscape of OAuth AttacksUnit 42 surveys current OAuth attack techniques, giving researchers a structured map of redirect, consent and token abuse patterns.
Explainer unit42.paloaltonetworks.com
-
The Bug Bounty Playbook: OAuth Callback and Redirect ManipulationPlaybook for finding OAuth flaws through callback and redirect URI manipulation in bug bounty targets.
Technique medium.com
-
SSO Gadgets: Escalate (Self-)XSS to ATOExplains how to escalate XSS, even self-XSS with login CSRF, to account takeover by abusing OAuth2 and OIDC SSO gadgets.
Technique security.lauritz-holtmann.de
-
OAuth 2.0 Authentication VulnerabilitiesPortSwigger explains OAuth 2.0 flows and the common implementation flaws that let attackers hijack accounts.
Explainer portswigger.net
-
App using Cognito for SSO? Use this Methodology to find High Severity IssuesMethodology for testing AWS Cognito single sign-on implementations for high severity authentication flaws.
Methodology infosecwriteups.com
Keep learning
Where this lesson fits, and what to read next.
The whole class
Related techniques
How this is made: our model read every listed redirect_uri manipulation report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 75 reports. All redirect_uri manipulation reports.