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
- median public bounty
- $500
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.
Seen in these reports14
-
Medium -
-
High
Show 5 moreShow fewer
-
Medium -
Delete any user's added Email,Telephone,Fax,Address,Skype via csrf in (https://academy.acronis.com/)Low -
Medium -
Medium -
Medium
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.
Seen in these reports21
-
$4,000 -
$3,370 High -
$2,940 Low
Show 5 moreShow fewer
-
$2,500 High -
$1,540 Low -
$500 Medium -
$500 Low -
$300 Medium
Year by year
13 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2001 | 7 |
|---|---|
| 2008 | 1 |
| 2009 | 1 |
| 2010 | 3 |
| 2011 | 9 |
| 2012 | 5 |
| 2013 | 6 |
| 2014 | 48 |
| 2015 | 32 |
| 2016 | 74 |
| 2017 | 79 |
| 2018 | 42 |
| 2019 | 45 |
| 2020 | 72 |
| 2021 | 69 |
| 2022 | 62 |
| 2023 | 40 |
| 2024 | 58 |
| 2025 | 82 |
| 2026 | 101 |
-
2026
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.
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.
Turned up less1
- CSRF on GraphQL and CI integration endpoints was less frequently reported compared to 2025, as shown in the disclosed reports.
-
2025
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.
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.
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.
-
2024
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.
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.
Turned up less1
- SameSite=Lax cookie bypasses were less frequently reported compared to 2023, as shown in the disclosed reports.
Earlier years10
Where it is found
249The features and places the reports found it in, most-reported first.
-
Logout endpoints.
Seen in 11 reports
-
Account takeover via CSRF.
Seen in 9 reports
-
Login forms and authentication endpoints.
Seen in 9 reports
-
Profile, preference and settings endpoints.
Seen in 8 reports
-
Account deletion and deactivation endpoints.
Seen in 7 reports
Technologies in these reports16
Root causes
135The mistakes in the code or configuration behind the reports.
-
The settings endpoints accepted state-changing form submissions without a CSRF token or origin check.
Seen in 8 reports
-
The deletion endpoint relied only on the session cookie and required no CSRF token.
Seen in 7 reports
-
The logout endpoint accepted GET requests without a CSRF token.
Seen in 7 reports
-
The deep link handler treated a state-changing action as safe and required no confirmation or origin check.
Seen in 5 reports
-
The plugin endpoints lacked CSRF protection.
Seen in 5 reports
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
Token design and bypass
of 3 ticked-
Seen in 3 reports
-
Seen in 3 reports
Profile and account settings
of 3 ticked-
Seen in 8 reports
-
Seen in 4 reports
-
Seen in 3 reports
Email address and password reset
of 3 ticked-
Seen in 5 reports
-
Seen in 4 reports
Bypasses and variations
86How reports got past filters, encoders and other defences.
-
Test WordPress plugin endpoints such as comment posting and profile fields for CSRF.
Seen in 5 reports
-
Bypass a Referer check by crafting the request.
Seen in 3 reports
-
Use a general technique to bypass CSRF protection.
Seen in 3 reports
-
Replay an OAuth callback request without a CSRF token to link an attacker's third-party account to a victim.
Seen in 3 reports
-
Check whether the OAuth state parameter is missing or static across authorisation attempts.
Payouts
143 paidPublic 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.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| 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 |
Highest-paid reports5
-
$30,000 -
$30,000 -
$25,000 -
$18,750 -
$15,000
Typical fixes
129How programs fixed it, as the reports describe.
-
Require a CSRF token and origin check on settings endpoints.
Seen in 8 reports
-
Require a CSRF token on the deletion endpoint.
Seen in 7 reports
-
Require a CSRF token on the logout endpoint.
Seen in 7 reports
-
Require user confirmation for state-changing deep links.
Seen in 5 reports
-
Add CSRF protection to the plugin endpoints.
Seen in 5 reports
Tips for beginners
14Advice for a first hunt, drawn from the reports.
-
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
-
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
-
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
-
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
-
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
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on CSRF, from around the web.
-
The great SameSite confusionExplains how SameSite cookie semantics are easily misread and how the confusion can undermine CSRF defences.
Technique jub0bs.com
-
That single GraphQL issue that you keep missingExplains how GraphQL endpoints can be vulnerable to CSRF when middleware accepts non JSON content types, despite common assumptions.
Technique blog.doyensec.com
-
Cross-site request forgery: The ultimate Bug Bounty guide to exploiting CSRF vulnerabilitiesExplains CSRF vulnerability types and step-by-step exploitation techniques, including chaining with other flaws.
Explainer yeswehack.com
-
Bypass SameSite Cookies Default to Lax and get CSRFShows how Chrome's Lax plus POST behaviour can still allow CSRF despite SameSite defaults.
Technique medium.com
-
The Modern CSRF Playbook: From Basic Mechanics to SameSite BypassesCovers CSRF mechanics and modern SameSite cookie bypass techniques, useful for hunters testing session protections.
Technique medium.com
Keep learning
Where this lesson fits, and what to read next.
Lessons on single techniques in CSRF
Lessons to read next
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.