Skip to content

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.

Back to the lesson 1 to 10 of 10 (of 24 in all)

Clear the search

2025

10 points

New this year4

  1. 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
  2. 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
  3. 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
  4. 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

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

    Seen in 2 reports
  2. 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.

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