In-depth lesson · OAuth state and CSRF
Year by year
What the disclosed OAuth state and CSRF reports of each year show, newest first: what first appeared, what kept working and what turned up less.
2026
9 pointsNew this year3
Supplying the attacker's own URI as the exchange redirect URI in an Android app's login flow to see whether a stolen code can be redeemed appears in the disclosed reports.
Seen in 1 report
Sending a crafted redirect URI to an exported activity that handles OAuth and SSO redirects to see whether it treats it as a completed login appears in the disclosed reports.
Seen in 1 report
Registering a redirect URI that matches only the origin of the target domain, then aiming it at an open redirect on that domain to forward the code, appears in the disclosed reports.
Seen in 1 report
Kept working6
Exported Android activities that handle OAuth and SSO redirects, along with mobile app token exchange, were places where this flaw appeared in the disclosed reports.
Triggering the OAuth login start endpoint cross-site with the Referer header set to a page the attacker controls, then observing where the user is sent after authentication, worked in the disclosed reports.
Seen in 1 report
Intercepting the linking callback, copying the URL with the code, dropping the request to keep the code valid, and auto-submitting the URL from a page the victim visits worked in the disclosed reports.
Seen in 1 report
Starting an OAuth flow with the attacker's own Salesforce account and sending the callback URL to a site administrator to see whether the site links the attacker's account worked in the disclosed reports.
Seen in 1 report
Replacing the state parameter, which held a predictable user ID, with another user's ID during partner app linking to see whether their account bound to the attacker's app worked in the disclosed reports.
Seen in 1 report
Registering a client with an arbitrary redirect URI, generating a PKCE challenge, and sending an authorisation link to a victim to see whether the code arrives at the attacker's callback worked in the disclosed reports.
2025
10 pointsNew this year4
Changing response_mode to fragment so the authorisation code lands in the URL fragment, combined with an open redirect and a missing state check, first appears in the disclosed reports.
Seen in 1 report
Testing whether the token endpoint accepts an exchange without a valid client secret and whether it checks the redirect URI against a whitelist appears in the disclosed reports.
Seen in 1 report
Applications marked trusted by default skipping the CSRF check on the authorisation flow, so a crafted link yields a code without consent, appears in the disclosed reports.
Seen in 1 report
-
$5,580 High
-
Checking whether the state parameter is predictable across sessions or users in an OAuth integration appears in the disclosed reports.
Seen in 1 report
Kept working6
Hunters chained a missing state check with a second weakness such as an open redirect, a Referer-driven redirect or a cross-site confirmation step in the disclosed reports.
Checking OAuth requests on a secondary subdomain for a missing state parameter, then sending a login link carrying the attacker's own code to force a victim into the attacker's account, worked in the disclosed reports.
Having the victim start the add-account flow and abandon it, then sending a callback URL with the attacker's authorisation code, was a productive pattern in the disclosed reports.
Seen in 1 report
Capturing the social linking request, noting the missing state, keeping the code valid by dropping the request, and hosting the linking URL in an iframe aimed at an admin worked in the disclosed reports.
Seen in 1 report
Deleting the state parameter from the final linking request and submitting it as a cross-site proof of concept was effective in the disclosed reports.
Seen in 1 report
Removing the state token from the linking callback URL entirely and sending the modified link to a logged-in victim worked in the disclosed reports.
Seen in 1 report
2024
5 pointsKept working5
Hunters tested account-linking callbacks by completing the connect step in a victim's browser to see whether the attacker's third-party account bound to the victim, as in the Facebook linking flow in the disclosed reports.
Comparing state values across two sign-ins in turn revealed predictable state tokens within a time window in the disclosed reports.
Seen in 1 report
Capturing the request that binds an OAuth provider account and checking whether a state parameter was required, then trying it cross-site when absent, was a productive pattern in the disclosed reports.
Seen in 1 report
Account-linking flows for third-party integrations such as Google Drive, Pinterest, Twitch, Facebook, Bitbucket, GitHub, Salesforce and Google were where this flaw appeared in the disclosed reports.
Project import flows and account-linking settings pages were features where the flaw turned up in the disclosed reports.
Seen in 1 report