In-depth lesson · OAuth state and CSRF
Year by year: 2025
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.
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