Skip to content

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

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.

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.

Year by year

8 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 40
Reports per year
20131
20145
20154
20164
20178
20183
20194
20208
20214
20225
20236
20248
202514
202640
  1. 2026

    40 reports · median $5,000

    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.
    and 1 more

    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.
    and 3 more
  2. 2023

    6 reports · median $4,000

    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.
  3. 2021

    4 reports

    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.
Every point, year by year

Where it is found

2

The features and places the reports found it in, most-reported first.

  1. OAuth authorisation flows on platforms that let users host content under custom domains.

    Seen in 1 report
  2. A secondary OAuth2 login endpoint that does not validate the redirect URI.

    Seen in 1 report

Root causes

6

The mistakes in the code or configuration behind the reports.

  1. 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
  2. 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
  3. The callback trusted the attacker-controllable Referer header to choose the post-login destination, and OAuth initiation was a forgeable GET.

    Seen in 2 reports
  4. The server allowed arbitrary query parameters and fragments to be appended dynamically to the redirect_uri instead of pinning the whole value.

    Seen in 1 report
  5. 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.

    Seen in 1 report
View all 6

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
More in Redirect URI validation bypasses

OAuth client registration and app settings

of 3 ticked
  • Seen in 4 reports
  • Seen in 1 report
  • Seen in 1 report
More in OAuth client registration and app settings

Open redirects and redirect chains

of 3 ticked
More in Open redirects and redirect chains

Identity providers and SSO configuration

of 3 ticked
More in Identity providers and SSO configuration
View more things to try

Bypasses and variations

5

How reports got past filters, encoders and other defences.

  1. Repeat the host parameter so the validator and the credential handler read different occurrences.

    Seen in 1 report
  2. 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
  3. Send duplicate redirect_uri parameters so validation reads the first while the redirect is built from the last.

    Seen in 1 report
  4. Try a range of payload variations to bypass the open-redirect filter on redirect_uri so the victim lands on the attacker's server.

    Seen in 1 report
  5. Use a path traversal segment in the redirect_uri to get past validation and steal the access token.

    Seen in 1 report

Payouts

18 paid

Public 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.

SeverityReportsPaidMedianHighest
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

Tips for beginners

14

Advice for a first hunt, drawn from the reports.

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
View all 14

Guides and techniques

The best explainers, cheat sheets and technique posts on redirect_uri manipulation, from around the web.

Keep learning

Where this lesson fits, and what to read next.

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.