Skip to content

In-depth lesson · bug class

OAuth and single sign-on flaws

What every disclosed OAuth / SSO 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
169

Learning OAuth / SSO reading list Accounts and login, step 6

Overview

What it is and why programs pay for it.

OAuth and single sign-on (SSO) flaws are among the most impactful bugs in bug bounty programmes because they often lead directly to account takeover. When an authorisation server mishandles redirect URIs, tokens, or SAML assertions, an attacker can steal a victim's credentials or session and act as them. Programmes care deeply about these issues because a single flaw can compromise many users at once, and the affected systems are often central to authentication across an entire platform.

These flaws typically lead to unauthorised access to user accounts, data exposure, and in some cases full administrative control. Common outcomes include stealing OAuth tokens or authorisation codes, bypassing consent screens, forging SAML assertions to log in as arbitrary users, and persisting sessions after logout. The evidence shows reports ranging from token leakage through third-party integrations to complete authentication bypasses in SAML flows.

OAuth and SSO issues are most often found in features that involve third-party integrations, social login, and enterprise SSO. Specific areas include device authorisation pages, group-level OAuth application management, SAML login endpoints, session cookies tied to OAuth profiles, and redirect handling after authentication. Public-facing government sites and platforms that allow custom OAuth clients are also frequent targets.

How it works

The mechanics, as the reports show them.

OAuth flows rely on redirects to pass authorisation codes or tokens between the authorisation server and the client application. If the redirect URI validation is weak, an attacker can manipulate it to send the code or token to a domain they control. Common weaknesses include accepting any path on a whitelisted domain, allowing path traversal, or permitting wildcard subdomains. This enables token theft and subsequent account takeover.

The authorisation code exchange step is another critical point. If the server does not properly invalidate codes after use or checks the wrong expiry field, an attacker can replay a code to obtain multiple tokens. Similarly, if the server does not bind the token to the client that requested it, a token issued for one client can be used to access another service. These flaws allow attackers to escalate privileges or maintain access.

SAML SSO implementations often suffer from signature validation issues. If the signature is not bound to the specific assertion or response elements used for authentication, an attacker can perform XML Signature Wrapping to insert a forged assertion while keeping a valid signature. Other issues include accepting unsigned assertions or failing to validate the signature entirely, leading to authentication bypass.

Session management flaws in SSO can also be exploited. For example, sessions may persist after logout from the identity provider, or a session bridge endpoint might accept tokens from third-party clients without verifying the client identity. This allows an attacker to mint a session for a victim using a token obtained from a less secure integration.

Consent and scope handling is another area where mistakes happen. The consent screen may not display all requested scopes, or the application creation endpoint may allow setting a trusted flag that bypasses CSRF protection. This can lead to users granting more permissions than they realise, or attackers creating malicious applications that appear trusted.

Year by year

3 years

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

Reports per yearPeak 2026: 70
Reports per year
20101
20121
20132
20149
20154
20166
201711
201810
201910
202018
202114
202214
202313
202429
202566
202670
  1. 2026

    70 reports · median $5,000

    New this year3

    • Session-bridge endpoints that exchange third-party tokens for full web sessions are a new pattern in the disclosed reports.
    • Code replay through the token endpoint and downstream credential retrieval first appears clearly in the disclosed reports this year.
    • Testing the deprecated implicit grant for direct token return to an attacker-chosen redirect is new in the disclosed reports.

    Kept working3

    • The disclosed reports cluster around OAuth authorisation and token-exchange logic and SAML signature and redirect handling rather than classic injection.
    • Exploiting an incorrect regular expression in redirect URI validation delivered codes to attacker-controlled domains in the disclosed reports.
    and 1 more

    Turned up less2

    • Classic redirect URI path and subdomain tricks, common in earlier years, are less central in the disclosed reports this year.
    • Facebook token leakage through third-party integrations, a long-running theme, is not a focus in the disclosed reports this year.
  2. 2025

    66 reports · median $9,460

    New this year2

    • Device authorisation pages that ask the user to type or confirm a code appear as a fresh target in the disclosed reports.
    • Group-level OAuth application creation and the trusted flag in app settings are new surfaces in the disclosed reports.

    Kept working2

    • The disclosed reports cluster around OAuth authorisation and token-exchange logic and SAML signature and redirect handling rather than classic injection.
    • Trying SAML authentication bypass techniques against the login flow, varying signature and assertion handling, was productive in the disclosed reports.

    Turned up less2

    • Classic redirect URI manipulation, common in earlier years, is largely absent from the disclosed reports this year.
    • Facebook token leakage through third-party integrations, a recurring theme before, is not a focus in the disclosed reports this year.
  3. 2024

    29 reports · median $100

    New this year1

    • Stealing a first-party Facebook access token through the OAuth flow appears as a distinct goal in the disclosed reports.

    Kept working3

    • Moving the signed region and supplying a matching digest outside it bypassed the signature check in the disclosed reports.
    • Checking whether the SAML library picks DigestValue and Reference elements from anywhere in the document rather than only within SignedInfo worked.
    and 1 more

    Turned up less2

    • Redirect URI manipulation, which dominated earlier years, is much rarer in the disclosed reports this year.
    • Leaking Facebook tokens through third-party integrations, a staple of earlier years, is less prominent in the disclosed reports this year.
Every point, year by year

Where it is found

4

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

  1. Device authorisation pages that ask the user to type or confirm a code, in the device OAuth flow.

    Seen in 1 report
  2. Group-level OAuth application creation and the trusted flag in OAuth app settings.

    Seen in 1 report
  3. SAML single sign-on login flows.

    Seen in 1 report
  4. SAML SSO on public-facing government sites.

    Seen in 1 report

Root causes

8

The mistakes in the code or configuration behind the reports.

  1. The user_code field kept a fragment-addressable id, so the page could be pre-focused and submitted with a single keypress.

    Seen in 1 report
  2. The application creation endpoint let a group owner set the trusted flag, which should be reserved for instance administrators, and trusted apps bypass the CSRF check on authorisation.

    Seen in 1 report
  3. The exchange handler never consumed the authorisation code and checked the client-requested credential lifetime field instead of the code's own expiry column.

    Seen in 1 report
  4. A scope that granted organisation runner management was not shown on the authorisation consent screen.

    Seen in 1 report
  5. An incorrect regular expression in redirect URI validation allowed a bypass for first-party sync apps.

    Seen in 1 report
View all 8

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

Third-party integrations and token leakage

of 3 ticked
More in Third-party integrations and token leakage

Redirect URI validation and bypass

of 3 ticked
  • Seen in 3 reports
  • Seen in 3 reports
  • Seen in 3 reports
More in Redirect URI validation and bypass

OAuth client registration and consent

of 3 ticked
More in OAuth client registration and consent

Authorisation code and token lifecycle

of 3 ticked
More in Authorisation code and token lifecycle
View more things to try

Payouts

42 paid

Public bounties in US dollars, from the data. 42 of 352 reports show an amount.

a quarter paid up to
$925
median
$3,375
three quarters paid up to
$7,125
highest
$55k

One in ten paid reports was paid $12k or more.

SeverityReportsPaidMedianHighest
Critical 9 2 $7,000 $10k
High 25 6 $2,500 $8,500
Medium 33 4 $1,375 $2,940
Low 14 4 $200 $900
Informational 1 0 None paid None
Unrated 270 26 $5,000 $55k

Typical fixes

3

How programs fixed it, as the reports describe.

  1. Delete or mark the authorisation-code row on exchange and check the code's own expiry column rather than a client-supplied lifetime.

    Seen in 1 report
  2. Ensure the validated signature covers the exact response or assertion elements used for authentication.

    Seen in 1 report
  3. Require proof of ownership of redirect URIs at client registration and disable the implicit grant.

    Seen in 1 report

Tips for beginners

12

Advice for a first hunt, drawn from the reports.

  1. Test redirect URI validation thoroughly. Try adding paths, query parameters, fragments, and path traversal sequences to see if the server accepts them. Also test with different subdomains, including non-existent ones, and check if the authorisation code or token is sent to your controlled domain.

    Seen in 3 reports
  2. For SAML, test for signature validation bypasses. Try removing the signature, wrapping assertions, or modifying the signed elements. Check if the application accepts unsigned assertions or if the signature is not bound to the correct elements.

    Seen in 3 reports
  3. Check session management after logout. See if SSO sessions persist after logging out of the identity provider, or if OAuth tokens remain valid after revocation. Also test if a failed authentication still creates a valid session.

    Seen in 3 reports
  4. Look for token leakage through referer headers or postMessage. If the redirect URI points to a page with external links, check if the code leaks in the Referer header. Also test if the OAuth response page sends tokens to arbitrary origins via postMessage.

    Seen in 3 reports
  5. Start by mapping all OAuth and SSO flows in the target application. Look for social logins, third-party integrations, and enterprise SSO endpoints. Use a proxy to intercept requests and understand how redirect URIs, state parameters, and tokens are handled.

    Seen in 2 reports
View all 12

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on OAuth / SSO, from around the web.

Keep learning

Where this lesson fits, and what to read next.

Lessons on single techniques in OAuth / SSO

How this is made: our model read every listed OAuth / SSO 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 26 Nov 2026 from 171 reports. All OAuth / SSO reports.