Skip to content

In-depth lesson · bug class

Cross-site request forgery (CSRF)

What every disclosed CSRF 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
505

Learning CSRF reading list Beginner web, step 7

Overview

What it is and why programs pay for it.

Cross-site request forgery is a class of bug where another site can make a logged-in user's browser send a state-changing request to a target application, and the application accepts it because it only checks the session cookie. The evidence behind this lesson covers 615 reports, 84 of which carry a summary, and 135 of which were paid, so this is a well-trodden area rather than a rare curiosity. Programs care because the actions that get forged are the ones that matter to users: changing an email address, resetting a password, deleting an account, linking a third-party login, or moving money-like state such as cart contents and invitations.

The usual consequence is account takeover. A forged email change followed by a password reset, a forged account-linking request, or a forged password change after a reset all hand the attacker the account. Where takeover is not reachable, the impact is still real: forced logout, unwanted follows, deleted media, changed privacy settings, or content created on the victim's behalf. The reports show CSRF chained with open redirects, cross-site flashing, permissive CORS and same-origin policy bypasses to raise severity.

It turns up almost everywhere state changes happen. The evidence lists logout endpoints, login and registration forms, profile and settings pages, account deletion, password reset and change, email change, OAuth authorisation and callback flows, account linking, shopping carts, comment and post creation, invitations, uploads, GraphQL endpoints, JSON APIs that also accept form encoding, WebSocket handshakes, admin actions, WordPress plugins, and custom-scheme deep links in mobile apps. If a request changes something and the only proof of intent is a cookie, it is worth a look.

How it works

The mechanics, as the reports show them.

The concept is simple. The victim is authenticated to the target site, so their browser holds a valid session cookie. The attacker gets the victim's browser to issue a request to a state-changing endpoint, either by loading a page the attacker controls or by embedding the request in content the victim views on the target itself. The browser attaches the cookie automatically, and if the server has no other check, the action succeeds as the victim.

What makes it possible is the absence of a second proof of intent. The root causes in the evidence are consistent: endpoints that accept state-changing form submissions with no CSRF token or origin check, deletion endpoints that rely only on the session cookie, logout endpoints that accept GET, and admin actions reachable by simple GET requests. The same pattern appears in settings, email change, invitations, comments, uploads and business information forms.

Defences fail in predictable ways. A token check applied only to POST leaves GET requests able to carry mutations, which the evidence shows on GraphQL endpoints. JSON-only endpoints that also accept form-encoded input or method overrides lose their protection. Tokens stored in cookies without HttpOnly can be read by scripts, tokens that are not tied to the session or not rotated can be reused, and tokens that can be reversed or predicted can be forged. SameSite=Lax cookies can sometimes be bypassed with a top-level navigation or a method override.

Some flows need their own treatment. OAuth initiation endpoints that rely only on the state parameter, or that have a missing or static state, allow an attacker to bind their own third-party account to a victim or complete a flow into their own workspace. Account-linking endpoints that accept cross-site requests without proving user intent are a direct route to takeover. WebSocket handshakes that do not validate the Origin header and require no per-message token are another variant.

Mobile and rendering surfaces add more paths. Custom-scheme deep links that trigger state-changing actions such as follow or unlock without confirmation are a recurring finding. Markdown rendering, Mermaid diagrams and notebook viewers have allowed form tags and action-styled elements through sanitisers, so a click in rendered content can send a request. Cross-site flashing and permissive cross-domain policy files have also been used to bypass protections.

Year by year

13 years

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

Reports per yearPeak 2026: 101
Reports per year
20017
20081
20091
20103
20119
20125
20136
201448
201532
201674
201779
201842
201945
202072
202169
202262
202340
202458
202582
2026101
  1. 2026

    101 reports · median $1,000

    New this year4

    • CSRF on management console credential deletion was reported, as seen in the disclosed reports.
    • CSRF on backup and exposed script files was reported, as seen in the disclosed reports.
    • CSRF on zone and campaign linking was reported, as seen in the disclosed reports.
    and 1 more

    Kept working4

    • CSRF in browser and desktop features such as reading lists, developer tools and device-bound session credentials was reported, as seen in the disclosed reports.
    • CSRF on advertising and tracker management features was reported, as seen in the disclosed reports.
    and 2 more

    Turned up less1

    • CSRF on GraphQL and CI integration endpoints was less frequently reported compared to 2025, as shown in the disclosed reports.

    Reports from 202610

    Every point and report from 2026
  2. 2025

    82 reports · median $2,000

    New this year4

    • CSRF on referral and integration settings was reported, as seen in the disclosed reports.
    • CSRF on fire alert deactivation was reported, as seen in the disclosed reports.
    • CSRF on user notes was reported, as seen in the disclosed reports.
    and 1 more

    Kept working6

    • CSRF on account management actions such as deletion, deactivation and contact changes was reported, as seen in the disclosed reports.
    • CSRF on GraphQL and CI integration endpoints was reported, as seen in the disclosed reports.
    and 4 more

    Turned up less1

    • CSRF on simple object actions such as pets and albums was less frequently reported compared to 2024, as shown in the disclosed reports.

    Reports from 202511

    Every point and report from 2025
  3. 2024

    58 reports · median $500

    New this year4

    • CSRF chained with client-side path traversal to leak tokens was reported, as seen in the disclosed reports.
    • CSRF on Kubernetes and cluster integration features was reported, as seen in the disclosed reports.
    • CSRF on device firmware and local management interfaces was reported, as seen in the disclosed reports.
    and 1 more

    Kept working6

    • CSRF on simple object actions such as adding or deleting pets and albums was reported, as seen in the disclosed reports.
    • CSRF leading to account takeover through password, security question or email changes was reported, as seen in the disclosed reports.
    and 4 more

    Turned up less1

    • SameSite=Lax cookie bypasses were less frequently reported compared to 2023, as shown in the disclosed reports.

    Reports from 202418

    Every point and report from 2024
Every point, year by year

Where it is found

249

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

  1. Logout endpoints.

    Seen in 11 reports
  2. Account takeover via CSRF.

    Seen in 9 reports
  3. Login forms and authentication endpoints.

    Seen in 9 reports
  4. Profile, preference and settings endpoints.

    Seen in 8 reports
  5. Account deletion and deactivation endpoints.

    Seen in 7 reports
View all 249

Root causes

135

The mistakes in the code or configuration behind the reports.

  1. The settings endpoints accepted state-changing form submissions without a CSRF token or origin check.

    Seen in 8 reports
  2. The deletion endpoint relied only on the session cookie and required no CSRF token.

    Seen in 7 reports
  3. The logout endpoint accepted GET requests without a CSRF token.

    Seen in 7 reports
  4. The deep link handler treated a state-changing action as safe and required no confirmation or origin check.

    Seen in 5 reports
  5. The plugin endpoints lacked CSRF protection.

    Seen in 5 reports
View all 135

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

Other

of 3 ticked
  • Seen in 31 reports
  • Seen in 6 reports
  • Seen in 5 reports
More in Other

Token design and bypass

of 3 ticked
More in Token design and bypass

Profile and account settings

of 3 ticked
  • Seen in 8 reports
  • Seen in 4 reports
  • Seen in 3 reports
More in Profile and account settings

Email address and password reset

of 3 ticked
More in Email address and password reset
View more things to try

Bypasses and variations

86

How reports got past filters, encoders and other defences.

  1. Test WordPress plugin endpoints such as comment posting and profile fields for CSRF.

    Seen in 5 reports
  2. Bypass a Referer check by crafting the request.

    Seen in 3 reports
  3. Use a general technique to bypass CSRF protection.

    Seen in 3 reports
  4. Replay an OAuth callback request without a CSRF token to link an attacker's third-party account to a victim.

    Seen in 3 reports
  5. Check whether the OAuth state parameter is missing or static across authorisation attempts.

    Seen in 2 reports
View all 86

Payouts

143 paid

Public bounties in US dollars, from the data. 143 of 978 reports show an amount.

a quarter paid up to
$250
median
$500
three quarters paid up to
$2,000
highest
$30k

One in ten paid reports was paid $4,528 or more.

SeverityReportsPaidMedianHighest
Critical 15 1 $2,000 $2,000
High 91 9 $800 $7,500
Medium 223 28 $450 $2,500
Low 86 25 $500 $2,940
Informational 20 2 $100 $100
Unrated 543 78 $825 $30k

Typical fixes

129

How programs fixed it, as the reports describe.

  1. Require a CSRF token and origin check on settings endpoints.

    Seen in 8 reports
  2. Require a CSRF token on the deletion endpoint.

    Seen in 7 reports
  3. Require a CSRF token on the logout endpoint.

    Seen in 7 reports
  4. Require user confirmation for state-changing deep links.

    Seen in 5 reports
  5. Add CSRF protection to the plugin endpoints.

    Seen in 5 reports
View all 129

Tips for beginners

14

Advice for a first hunt, drawn from the reports.

  1. Do not report a missing token on its own. If the endpoint has no meaningful state change, or the action is already gated by a confirmation step or a re-authentication prompt, there is no impact. The evidence is full of endpoints where the fix was to add a token because the action mattered.

    Seen in 6 reports
  2. Be careful with destructive tests. Account deletion, media deletion and password changes affect real state. Use your own accounts, and where a program provides a test environment, use it. Do not run deletion tests against other users.

    Seen in 6 reports
  3. For mobile apps, look at custom-scheme deep links that trigger state changes such as follow or unlock. If the action happens without a confirmation prompt, that is the finding. The evidence shows this pattern repeatedly.

    Seen in 5 reports
  4. Show impact concretely. A proof of concept that changes the victim's email and then completes a password reset is far stronger than one that merely shows a request was accepted. Where takeover is not possible, state the exact state change and who it affects.

    Seen in 5 reports
  5. Check scope before you spend time. Third-party plugins, appliance firmware interfaces and Node.js modules appear in the evidence, but many programs exclude them. Confirm the asset is in scope and that the vulnerable component is the program's responsibility.

    Seen in 5 reports
View all 14

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on CSRF, from around the web.

Keep learning

Where this lesson fits, and what to read next.

Lessons on single techniques in CSRF

How this is made: our model read every listed CSRF 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 614 reports. All CSRF reports.