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
- median public bounty
- $3,375
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.
Seen in these reports8
-
$5,580 High -
Critical
Show all 8 reportsShow fewer
-
$2,000 Medium -
Medium -
Critical -
High -
High
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.
Seen in these reports11
-
High -
$8,500 High -
$5,580 High
Show 5 moreShow fewer
-
$2,000 High -
$2,000 Medium -
$400 -
Critical -
Year by year
3 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2010 | 1 |
|---|---|
| 2012 | 1 |
| 2013 | 2 |
| 2014 | 9 |
| 2015 | 4 |
| 2016 | 6 |
| 2017 | 11 |
| 2018 | 10 |
| 2019 | 10 |
| 2020 | 18 |
| 2021 | 14 |
| 2022 | 14 |
| 2023 | 13 |
| 2024 | 29 |
| 2025 | 66 |
| 2026 | 70 |
-
2026
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.
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.
-
2025
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.
-
2024
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.
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.
Where it is found
4The features and places the reports found it in, most-reported first.
-
Device authorisation pages that ask the user to type or confirm a code, in the device OAuth flow.
Seen in 1 report
-
Group-level OAuth application creation and the trusted flag in OAuth app settings.
Seen in 1 report
-
$5,580 High
-
-
SAML single sign-on login flows.
Seen in 1 report
-
SAML SSO on public-facing government sites.
Seen in 1 report
Technologies in these reports16
Root causes
8The mistakes in the code or configuration behind the reports.
-
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
-
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
-
$5,580 High
-
-
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
-
A scope that granted organisation runner management was not shown on the authorisation consent screen.
Seen in 1 report
-
An incorrect regular expression in redirect URI validation allowed a bypass for first-party sync apps.
Seen in 1 report
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-
Seen in 65 reports
-
Seen in 2 reports
Redirect URI validation and bypass
of 3 ticked-
Seen in 3 reports
-
Seen in 3 reports
-
Seen in 3 reports
OAuth client registration and consent
of 3 ticked-
Seen in 2 reports
-
Seen in 1 report
-
Seen in 1 report
Authorisation code and token lifecycle
of 3 ticked-
Seen in 1 report
Payouts
42 paidPublic 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.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| 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 |
Highest-paid reports5
-
$55,000 -
$25,000 -
$13,340 -
$13,337 -
$12,000
Typical fixes
3How programs fixed it, as the reports describe.
-
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
-
Ensure the validated signature covers the exact response or assertion elements used for authentication.
Seen in 1 report
-
Require proof of ownership of redirect URIs at client registration and disable the implicit grant.
Tips for beginners
12Advice for a first hunt, drawn from the reports.
-
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
-
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
-
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
-
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
-
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.
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on OAuth / SSO, 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
-
OAuth 2.0 Authentication VulnerabilitiesPortSwigger explains OAuth 2.0 flows and the common implementation flaws that let attackers hijack accounts.
Explainer portswigger.net
-
A Practical JWT Attacks Cheat Sheet (Built from PortSwigger)A condensed JWT attack cheat sheet ordered by testing priority, distilled from PortSwigger's academy material.
Cheat sheet medium.com
-
SAML BibleNetspi's deep guide to common SAML single sign-on flaws and how to find and exploit them.
Explainer blog.netspi.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
Lessons on single techniques in OAuth / SSO
Lessons to read next
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.