# Cross-Site Request Forgery > CSRF (CWE-352) makes a victim's browser send an authenticated, state-changing request the victim did not intend, because the server accepts ambient credentials (cookies, Basic/Digest, client certs, network position) without proof that the request came from its own UI. ## What it is The broken trust boundary is between *who is authenticated* and *who authored the request*. The server authenticates the browser, not the intent: cookies attach regardless of which page triggered the request, and HTML forms, links and simple `fetch` requests can target any origin. Three preconditions: 1. **A valuable action** — email/password/MFA change, role grant, API key creation, payment, config change. 2. **Ambient credentials** — session cookie whose `SameSite` policy lets it travel (`None`, unset in Firefox/Safari, or `Lax` on top-level GET), HTTP auth, or a loopback/intranet position. 3. **No unpredictable input** — no enforced token, or one that can be removed, reused, guessed or planted. CSRF exploits the site's trust in the browser; XSS exploits the user's trust in the site. Same-origin policy doesn't help: it restricts *reading* responses, not *sending* simple requests. Variants that bypass "cross-site" framing entirely: same-site sibling attacks, client-side CSRF (attacker-steered same-origin JS, incl. CSPT2CSRF), and browser-to-localhost CSRF. ## Why it matters | Impact rung | Typical sink | Example | |---|---|---| | Integrity nuisance | likes, settings, logout | logout CSRF (useful in chains) | | Account takeover | email change → password reset; OAuth connect | Canva profile/email; $1,300 email-change ATO | | Admin action as victim | user creation, role grant, ticket approval | Warpgate, Omnispace Agora, WatchGuard Dimension | | Credential / secret theft | config overwrite, hash export | AVideo SMTP creds; Wp Social OAuth secret; Injection Guard hash export | | RCE / infra compromise | plugin install, file manager, SQL console, CI/CD | NewsBlogger, Pluck, phpMyAdmin, emlog, Argo CD → K8s, NASA AIT-GUI | Severity drivers: privilege of the targeted user (admin bots and support staff open links), whether cookies actually travel (SameSite), whether the action is body-independent (one link/`<img>` is enough), and chaining with self-XSS. Of 42 CSRF disclosures catalogued 2024–2026, 27 had platform severity and five were High/Critical. ## How it works **Delivery shapes** ```html <!-- GET: only if cookie travels on subresource/nav --> <img src="https://target/api/unlink"> <!-- POST: auto-submitting form; cookie needs SameSite=None (or same-site origin / Lax+POST window) --> <form action="https://target/account/email" method="POST"><input name="email" value="[email protected]"></form> <script>history.pushState('','','/');document.forms[0].submit()</script> ``` **Variants** (each with its own page): - Cookie-policy gaps and bypasses → [[SameSite Cookies]] - Token implementation flaws → [[CSRF Token Bypasses]] - JSON/API endpoints via simple content types, CORS, alternate body channels → [[JSON CSRF]] - GET/override/HEAD method tricks → [[Method Override CSRF]] - Origin/Referer/Fetch-Metadata defense failures → [[Referer and Origin Validation Bypasses]] - Session swapping into the attacker's account, OAuth/SAML callbacks → [[Login CSRF]] - **Stored CSRF**: the forging `<img>`/form is hosted on the target itself (HTML-allowed fields, wiki pages) — same-site by construction (YesWiki `despam`, Samy-style worms). - **Cross-site WebSocket hijacking**: CSRF against the WS handshake (Warpgate `/@warpgate/` streams, Zeppelin WS endpoints). - **Client-side CSRF**: JS builds request method/path from URL fragment, params, `postMessage` or uploaded JSON; app attaches its own CSRF header — tokens and SameSite don't help. ## Where to find it - Account/recovery: email, phone, password, MFA, linked identities, API keys, SSH keys — "crown jewel" mutations. - Admin panels of self-hosted products and CMS plugins (WordPress nonces missing on one handler is the recurring pattern). - OAuth/SAML/SSO callbacks, account-linking, consent/confirm endpoints. - Integrations: GraphQL endpoints accepting GET or form bodies; third-party integration connectors (HackerOne Tray.io). - Legacy paths and sibling apps sharing the session cookie with looser `SameSite` or CSRF exclusions. - Bodiless `POST` endpoints keyed by path (`/approve/:id`, `/sessions/:id/close`) — reachable by forms, `no-cors` fetch and even `<a ping>`. - Local/embedded services: dev servers, MCP servers, desktop agents, device UIs (modems, Tasmota), anything on `127.0.0.1`/RFC1918. - Frameworks: per-method or per-content-type middleware (Hono `csrf()`, Flask-WTF + GET routes), exemption lists (Coder), session-store-specific cookie attributes (Rails Action Pack), filter ordering (Alchemy CMS). ## How to test 1. **Inventory** state-changing requests; tag cookie-authenticated ones (bearer-only APIs aren't classic CSRF). 2. **Cookie check**: every auth cookie's `SameSite`/`Secure`/prefix, including remember-me and legacy-path cookies; note which browsers will send it. 3. **Token check** (two accounts): remove, empty, random same length, other user's token, stale token, placeholder; token in URL? 4. **Method**: replay as GET, HEAD; `_method=POST`/override headers; `PUT/PATCH/DELETE` → `POST`. 5. **Content type**: urlencoded, multipart, `text/plain` (JSON-shaped), `text/plain; application/json`; drop custom CSRF headers. 6. **Origin/Referer**: omit, `null`, lookalike, query-embedded; check `Sec-Fetch-Site: same-site` acceptance. 7. **CORS**: reflected `Origin` + `ACAC: true` on mutating routes. 8. **Same-site surface**: enumerate siblings with XSS/upload/takeover; client-side redirect gadgets for `Strict`. 9. **Auth flows**: login/logout/register tokens; OAuth `state`/PKCE binding; SAML RelayState. 10. **Build a browser PoC** (Burp "Generate CSRF PoC", CSRF PoC Creator) and confirm in a real browser with default settings — Burp acceptance ≠ exploitable. **Checklist** - [ ] No GET/HEAD side effects; method override disabled or effective-method-aware - [ ] Token required, session-bound, all routes/methods/encodings, not in URLs - [ ] Auth cookies: explicit `SameSite`, `__Host-`, `Secure` - [ ] Origin/`Sec-Fetch-Site` exact, fail-closed, content-type-independent - [ ] JSON routes reject simple content types; CORS exact allow-list - [ ] Login/logout/OAuth/SAML bound to initiating browser - [ ] Siblings and redirect gadgets reviewed; WS handshakes check Origin - [ ] Local services validate Host/Origin ## Exploitation and escalation - **Self-XSS → stored XSS**: CSRF the vulnerable profile field so the payload lands in the victim's account (Renwa), or bypass a CAPTCHA gate with an unused value. With [[Login CSRF]], log the victim into the attacker's account that holds the self-XSS. - **XSS → token theft**: any same-origin/same-site XSS reads tokens or replays the app's CSRF header; sibling XSS defeats SameSite and `Sec-Fetch-Site` trust (Argo CD). - **Email change → reset → ATO**; OAuth credential overwrite (Wp Social) → control of social login. - **CSRF → RCE**: plugin/module install (NewsBlogger, Pluck), file manager (WPIDE), SQL execution (phpMyAdmin, emlog), CI/CD deploys (Argo CD), spacecraft command routes (NASA AIT-GUI). - **Browser as network pivot**: unauthenticated device UIs (USB modem sends SMS with attacker-chosen content), localhost tools via DNS rebinding (Playwright MCP). - **IDOR + CSRF**: enumerate IDs in forged requests to delete all users, or hijack anonymous wizards (PetMemoria). - See [[Vulnerability Chaining]] and [[Account Takeover]]. ## Bypassing defenses | Defense | Common failure | Page | |---|---|---| | SameSite Lax | GET mutations, `_method`, Lax+POST 2-min window, siblings, client-side redirects | [[SameSite Cookies]], [[Method Override CSRF]] | | Tokens | not enforced, not session-bound, method/format-conditioned, leakable, hash collisions | [[CSRF Token Bypasses]] | | Referer/Origin | fail-open on absence, substring match, exempt entry points, sub-resource Referer | [[Referer and Origin Validation Bypasses]] | | "JSON only" | `text/plain` parsing, form encodings, `text/ping`, credentialed CORS, query-param body | [[JSON CSRF]] | | CAPTCHA / confirm step | reusable or hardcoded values | [[CSRF Token Bypasses]] | ## Real-world cases - Netflix (2006) — CSRF to add DVDs to queue, change shipping address; also ING Direct, YouTube, McAfee, uTorrent web console CVE-2008-6586. [[raw/en.wikipedia.org/cross-site-request-forgery-wikipedia-3428|Cross-site request forgery - Wikipedia]] - Samy MySpace worm — stored CSRF via XSS. [[raw/rapid7.com/csrf-attacks-rapid7-3434|CSRF Attacks - Rapid7]] - Messenger.com (2015) — token sent, never verified; site-wide CSRF. [[raw/masimshahzad.medium.com/the-csrf-token-nobody-checked-14075|The CSRF Token Nobody Checked]] - Argo CD (GHSA-92mw-q256-5vwg) — sibling-domain `text/plain` XHR creates privileged pod → K8s compromise. [[raw/hackerone.com/internet-bug-bounty-argo-cd-csrf-leads-to-kubernetes-cluster-compromis-4835|Internet Bug Bounty: Argo CD CSRF leads to Kubernetes cluster compromise]] - NASA AIT-GUI (GHSA-p9r8-2q67-fp86, CVSS 9.4) — unauthenticated command/script routes accept urlencoded cross-origin POSTs with no preflight; fixed 2.5.2 with Origin/Referer checks. [[raw/thehackernews.com/nasa-ait-gui-flaws-could-let-unauthenticated-attackers-issue-spacecraf-11904|NASA AIT-GUI Flaws Could Let Unauthenticated Attackers Issue Spacecraft Commands]], [[raw/infosecurity-magazine.com/nasa-ground-control-software-flaw-enables-unauthenticated-commands-11884|NASA Ground Control Software Flaw Enables Unauthenticated Commands]] - Apache Zeppelin (CVE-2026-44613) — `allowed.origins=*` default + `text/plain` bodies. [[raw/ox.security/cve-2026-44613-turning-a-csrf-into-silent-unauthorized-actions-11104|CVE-2026-44613: Turning a CSRF into Silent Unauthorized Actions]] - phpMyAdmin ≤ 5.2.3 (CVE-2026-119426) — token skipped on non-AJAX POST to `/sql`. [[raw/daybreach.dev/phpmyadmin-csrf-token-bypass-via-non-ajax-post-to-sql-cve-2026-119426-12794|phpMyAdmin CSRF token bypass via non-AJAX POST to /sql (CVE-2026-119426)]] - emlog pro AI assistant — no token, cookie-only auth, `confirm` gate → arbitrary SQL. [[raw/github.com/emlog-pro-ai-assistant-csrf-to-sql-execution-poc-14911|emlog pro AI Assistant CSRF to SQL execution PoC]] - Pluck CMS (CVE-2026-78748) — missing Referer passes → module install RCE. [[raw/plaintext.block8.ai/the-bouncer-who-waves-you-in-with-no-name-tag-pluck-cms-missing-refere-14676|The bouncer who waves you in with no name tag: Pluck CMS missing-Referer CSRF (CVE-2026-78748)]] - NewsBlogger theme (CVE-2025-12821) — missing nonce in plugin install, regression of CVE-2025-1305 → RCE. [[raw/sentinelone.com/cve-2025-12821-wordpress-newsblogger-csrf-allowing-rce-4828|CVE-2025-12821: WordPress NewsBlogger CSRF Allowing RCE]] - WP Options Editor (CVE-2025-23797) — `default_role` change → privilege escalation. [[raw/sentinelone.com/cve-2025-23797-wp-options-editor-csrf-vulnerability-4653|CVE-2025-23797: WP Options Editor CSRF Vulnerability]] - Wp Social (CVE-2026-122675) — provider settings lack nonce; OAuth client ID/secret overwritten. [[raw/mor-golan.github.io/cve-2026-122675-csrf-in-wp-social-overwrites-oauth-client-credentials-15676|CVE-2026-122675: CSRF in Wp Social overwrites OAuth client credentials]] - Injection Guard < 1.4.0 — CSRF exports WooCommerce password hashes to a reachable file. [[raw/github.com/injection-guard-wordpress-plugin-csrf-14808|Injection Guard WordPress plugin CSRF]] - WWBN AVideo (CVE-2026-34394, CVE-2026-40925) — `SameSite=None` + no token on admin config. [[raw/sentinelone.com/cve-2026-34394-wwbn-avideo-csrf-vulnerability-2990|CVE-2026-34394: Wwbn Avideo CSRF Vulnerability]], [[raw/radar.offseq.com/cve-2026-40925-csrf-in-wwbn-avideo-configuration-endpoint-4832|CVE-2026-40925: CSRF in WWBN AVideo Configuration Endpoint]] - Warpgate (GHSA-qcwp-cwqv-g428) — admin role grant / ticket approval cross-site. [[raw/github.com/warpgate-cross-site-admin-actions-without-origin-check-13245|Warpgate cross-site admin actions without origin check]] - Webmin 2.670 — Referer-exempt hop sets firewalld zone `trusted`. [[raw/abraxaslabs.tech/webmin-2-670-firewalld-index-cgi-csrf-sets-zone-to-trusted-14677|Webmin 2.670 firewalld index.cgi CSRF sets zone to trusted]] - Tasmota ≤ 16.0.0 (CVE-2026-119755) — substring Referer check → console commands. [[raw/github.com/tasmota-through-16-0-0-csrf-high-13926|Tasmota through 16.0.0 CSRF (high)]] - Coder (GHSA-jvgx-787p-cfmg) — unanchored exemption regex. [[raw/github.com/coder-csrf-protection-skipped-for-api-paths-matching-unanchored-exempt-13924|coder: CSRF protection skipped for API paths matching unanchored exemption patterns]] - Alchemy CMS (GHSA-cqh4-xxr9-qc73) — user memoized before CSRF check. [[raw/rubysec.com/alchemy-cms-csrf-protection-bypassed-in-admin-controllers-14678|alchemy_cms: CSRF protection bypassed in admin controllers]] - pac4j (CVE-2026-40458) — `String.hashCode()` token collisions. [[raw/cert.pl/vulnerabilities-in-pac4j-software-7884|Vulnerabilities in PAC4J software]] - Hono `csrf()` — `text/ping` bypass. [[raw/github.com/hono-csrf-misses-hyperlink-auditing-text-ping-posts-13246|Hono csrf() misses hyperlink auditing text/ping POSTs]] - Apache Juneau (CVE-2026-73099) — `content` query param replaces body. [[raw/github.com/apache-juneau-csrf-via-the-content-query-parameter-cve-2026-73099-13593|Apache Juneau CSRF via the content query parameter (CVE-2026-73099)]] - ASP.NET Core (CVE-2026-109481) — `/_blazor/refresh` binds victim principal to attacker circuit. [[raw/github.com/asp-net-core-elevation-of-privilege-via-csrf-cve-2026-109481-14078|ASP.NET Core elevation of privilege via CSRF (CVE-2026-109481)]] - OpenMage (critical) — OAuth confirm via GET grants attacker REST token. [[raw/github.com/openmage-magento-lts-cross-site-request-forgery-critical-14534|OpenMage Magento LTS cross-site request forgery (critical)]] - Playwright MCP (CVE-2025-9611) — no Origin check → DNS rebinding tool invocation. [[raw/sentinelone.com/cve-2025-9611-microsoft-playwright-mcp-server-csrf-flaw-4652|CVE-2025-9611: Microsoft Playwright MCP Server CSRF Flaw]] - USB 3G/4G modem — unauthenticated web UI CSRF sends SMS (infrastructure-less phishing). [[raw/virusbulletin.com/virus-bulletin-csrf-vulnerability-in-usb-modems-allows-for-infrastruct-11885|Virus Bulletin :: CSRF vulnerability in USB modems allows for infrastructure-less phishing]] - YesWiki `despam` (GHSA-cv88-hx5q-vq72) — stored auto-submit form on a wiki page deletes pages when an admin views it. [[raw/github.com/yeswiki-admin-despam-csrf-deletes-wiki-pages-13247|YesWiki admin despam CSRF deletes wiki pages]] - Typemill (CVE-2026-53468) — stored XSS chained with CSRF on API endpoints. [[raw/infosecwriteups.com/chaining-stored-xss-and-csrf-in-typemill-cms-a-deep-dive-into-attribut-9039|Chaining Stored XSS and CSRF in Typemill CMS: A Deep Dive into Attribute Injection]] - Thelia — URL-borne token + GET deletes across admin. [[raw/github.com/thelia-back-office-csrf-token-leak-get-deletes-13244|Thelia back-office CSRF token leak + GET deletes]] - FlowIntel < 4.1.0 — 14 destructive GET routes bypass Flask-WTF. [[raw/github.com/flowintel-csrf-15520|FlowIntel CSRF]] - Omnispace Agora (CVE-2026-63150) — `$_GET`/`$_POST` merge → admin creation. [[raw/github.com/omnispace-agora-project-csrf-14679|Omnispace Agora Project CSRF]] - KTM e-BOK (CVE-2026-35096) — email/password change CSRF. [[raw/cert.pl/vulnerabilities-in-ktm-system-e-bok-software-9963|Vulnerabilities in KTM System e-BOK software]] - ATutor — CSRF alongside token validation flaws in a multi-CVE report. [[raw/cert.pl/vulnerabilities-in-atutor-software-11586|Vulnerabilities in ATutor software]] - WeGIA (CVE-2026-61671) — ownership bypass with CSRF component. [[raw/insightcve.com/wegia-record-ownership-bypass-and-csrf-cve-2026-61671-12754|WeGIA record ownership bypass and CSRF (CVE-2026-61671)]] - OpenAI Discord verification (P3) — `GET /unlink`. [[raw/pickleoffsec.com/one-link-to-unlink-csrf-in-openai-discord-verification-service-12650|One Link to Unlink: CSRF in OpenAI Discord Verification Service]] - HackerOne Tray.io integration — link victim's GitHub/Jira to attacker account. [[raw/medmahmoudi.com/csrf-in-hackerone-tray-io-integration-12611|CSRF in HackerOne Tray.io integration]] - Canva — header-less urlencoded profile update → ATO path. [[raw/medium.com/critical-account-takeover-via-csrf-header-bypass-12488|Critical Account Takeover via CSRF Header Bypass]] - Email-change CSRF ATO ($1,300). [[raw/medium.com/account-takeover-via-csrf-on-the-email-change-endpoint-1-300-12649|Account Takeover via CSRF on the Email-Change Endpoint ($1,300)]] - Login CSRF via static OAuth `state`, no PKCE. [[raw/dkryptsecurity.com/login-csrf-via-a-replayable-oauth-code-static-state-no-pkce-15065|Login CSRF via a replayable OAuth code (static state, no PKCE)]] - Seamless Auth API < 0.19.2 — OAuth `state` signed, expiring and single-use but not browser-bound; PKCE verifier derived from `state`; login CSRF per RFC 9700 §4.7, fixed with a hashed browser-held `binding`. [[raw/seamlessauth.com/we-wrote-an-rfc-9700-matrix-and-it-found-a-bug-oauth-state-binding-15863|We wrote an RFC 9700 matrix and it found a bug (OAuth state binding)]] - PortSwigger "SameSite Lax bypass via method override" — browser sees a top-level GET and sends the Lax cookie; middleware honors `_method=POST` and runs the email change. [[raw/k0z1l.github.io/portswigger-csrf-lab-samesite-lax-bypass-via-method-override-15858|PortSwigger CSRF lab: SameSite Lax bypass via method override]] - SourceHut (CVE-2026-121728) — login token reused to register. [[raw/blog.arusekk.pl/sourcehut-disabled-registration-bypass-via-login-csrf-token-cve-2026-1-14929|SourceHut disabled registration bypass via login CSRF token (CVE-2026-121728)]] - Rodauth < 2.47.0 (CVE-2026-82468), RT 6.0.0–6.0.2, Vikunja < 2.7.1, Apache Roller 5.0.1–6.1.6, OpenAM 14.5.1–16.1.3, OpenEMR < 8.5.0, SAP Web Dispatcher/ICM (critical, admin session → OS compromise), TeamCity < 2026.2.2 (Hub integration, diagnostics), IBM API Connect, WatchGuard Dimension, ICRTouch ByTable wallet top-up — advisory-level CSRF. [[raw/github.com/rodauth-before-2-47-0-csrf-cve-2026-82468-13925|Rodauth before 2.47.0 CSRF (CVE-2026-82468)]], [[raw/github.com/request-tracker-6-csrf-protection-broken-for-authenticated-users-13243|Request Tracker 6 CSRF protection broken for authenticated users]], [[raw/github.com/vikunja-csrf-before-2-7-1-13595|Vikunja CSRF before 2.7.1]], [[raw/github.com/apache-roller-5-0-1-6-1-6-csrf-allows-unauthenticated-attacker-actions-14535|Apache Roller 5.0.1–6.1.6 CSRF allows unauthenticated attacker actions]], [[raw/github.com/openam-csrf-before-16-1-4-13596|OpenAM CSRF before 16.1.4]], [[raw/github.com/openemr-8-5-0-csrf-in-observationcontroller-14675|OpenEMR 8.5.0 CSRF in ObservationController]], [[raw/github.com/sap-web-dispatcher-icm-request-forgery-critical-13923|SAP Web Dispatcher / ICM request forgery (critical)]], [[raw/github.com/jetbrains-teamcity-csrf-on-hub-integration-15361|JetBrains TeamCity CSRF on Hub integration]], [[raw/github.com/jetbrains-teamcity-csrf-on-diagnostics-15519|JetBrains TeamCity CSRF on diagnostics]], [[raw/github.com/ibm-api-connect-csrf-13594|IBM API Connect CSRF]], [[raw/github.com/watchguard-dimension-user-management-csrf-15364|WatchGuard Dimension user-management CSRF]], [[raw/github.com/icrtouch-bytable-wallet-top-up-csrf-15221|ICRTouch ByTable wallet top-up CSRF]] - WordPress/CMS plugin advisories: Abilities Bridge, Simple JWT Login, WPIDE (high), Blubrry PowerPress (high), Edwiser Bridge REST scope, ZIP AI (CVE-2026-129025), Vvveb, Dockhand, Revive Adserver, WriteFreely account settings, Webasyst Photos (CVE-2026-116210), Akeeba (CVE-2026-105296). [[raw/github.com/abilities-bridge-wordpress-plugin-missing-nonce-csrf-14386|Abilities Bridge WordPress plugin missing nonce CSRF]], [[raw/github.com/simple-jwt-login-wordpress-plugin-csrf-14388|Simple JWT Login WordPress plugin CSRF]], [[raw/github.com/wpide-file-manager-csrf-high-14079|WPIDE file manager CSRF (high)]], [[raw/github.com/blubrry-powerpress-podcasting-csrf-high-13767|Blubrry PowerPress Podcasting CSRF (high)]], [[raw/github.com/edwiser-bridge-wordpress-rest-csrf-scope-flaw-15220|Edwiser Bridge WordPress REST CSRF/scope flaw]], [[raw/github.com/csrf-in-brainstorm-force-zip-ai-15067|CSRF in Brainstorm Force ZIP AI]], [[raw/github.com/vvveb-csrf-14807|Vvveb CSRF]], [[raw/github.com/dockhand-1-0-57-cross-site-request-forgery-15673|Dockhand 1.0.57 cross-site request forgery]], [[raw/github.com/revive-adserver-csrf-in-tracker-invocation-php-14241|Revive Adserver CSRF in tracker-invocation.php]], [[raw/github.com/writefreely-csrf-in-account-settings-14537|WriteFreely: CSRF in account settings]], [[raw/vulncheck.com/webasyst-photos-app-csrf-via-backend-actions-cve-2026-116210-12792|Webasyst Photos app CSRF via backend actions (CVE-2026-116210)]], [[raw/jvn.jp/jvn-44272550-akeeba-products-csrf-cve-2026-105296-13425|JVN#44272550: Akeeba products CSRF (CVE-2026-105296)]] ## Prevention Summary (detail in [[CSRF Prevention]]): - Use the framework's CSRF protection and keep it global; tokens session-bound (synchronizer or signed double-submit), enforced on every non-safe effective method and every accepted encoding. - Or/and enforce `Sec-Fetch-Site` (reject `cross-site`, and `same-site` unless siblings are trusted) with exact `Origin` fallback; fail closed on absence. - Never mutate on GET/HEAD; disable method override. - JSON APIs: require `application/json` + custom header; exact CORS allow-list with credentials. - Session cookies: explicit `SameSite=Lax`/`Strict`, `__Host-`, `Secure`, `HttpOnly` — as depth, never alone. - Protect login/logout/registration and bind OAuth (`state` + PKCE) and SAML flows to the initiating browser. - Re-authenticate for crown-jewel actions; localhost services validate Host/Origin. ## Tools - **Burp Suite** — "Generate CSRF PoC"; extensions CSRF Scanner, CSurfer, Auto CSRF, CSRF PoC Creator. See [[Burp Suite]]. - **EasyCSRF** (Burp) — strips CSRF headers/params (urlencoded, multipart, JSON), converts PUT/DELETE/PATCH → POST, urlencoded → JSON; good for APIs and GraphQL. - **XSRFProbe** — crawler + token-strength analysis + PoC generation. - **Bolt** — crawling CSRF scanner. ## Sub-pages - [[SameSite Cookies]] — cookie attribute semantics, Lax/Strict gaps and bypasses - [[CSRF Token Bypasses]] — enforcement, binding, leakage and construction flaws in anti-CSRF tokens - [[JSON CSRF]] — forging JSON/API requests via simple content types, CORS and body channels - [[Login CSRF]] — session swapping; OAuth `state`/PKCE and SAML RelayState binding failures - [[Method Override CSRF]] — GET-reachable mutations, `_method`, HEAD and `$_REQUEST` tricks - [[Referer and Origin Validation Bypasses]] — header-check failures incl. sub-resource Referer and `Sec-Fetch-Site` - [[CSRF Prevention]] — control matrix, framework patterns, Fetch Metadata policy See also: [[CORS Misconfiguration]] ## Sources - [[raw/cwe.mitre.org/cwe-352-cross-site-request-forgery-3431|CWE-352: Cross-Site Request Forgery]] - [[raw/owasp.org/csrf-owasp-foundation-3429|CSRF - OWASP Foundation]] - [[raw/cheatsheetseries.owasp.org/cross-site-request-forgery-prevention-cheat-sheet-owasp-2877|Cross-Site Request Forgery Prevention Cheat Sheet - OWASP]] - [[raw/developer.mozilla.org/cross-site-request-forgery-csrf-security-mdn-web-docs-2991|Cross-site request forgery (CSRF) - Security - MDN Web Docs]] - [[raw/portswigger.net/what-is-csrf-cross-site-request-forgery-tutorial-examples-web-security-944|What is CSRF (Cross-site request forgery)? Tutorial & Examples - Web Security Academy]] - [[raw/portswigger.net/bypassing-samesite-cookie-restrictions-csrf-portswigger-2875|Bypassing SameSite Cookie Restrictions - CSRF - PortSwigger]] - [[raw/book.hacktricks.xyz/csrf-cross-site-request-forgery-hacktricks-2874|CSRF (Cross Site Request Forgery) - HackTricks]] - [[raw/intigriti.com/csrf-advanced-exploitation-guide-intigriti-4254|CSRF: Advanced Exploitation Guide - Intigriti]] - [[raw/yeswehack.com/the-bug-bounty-guide-to-exploiting-csrf-vulnerabilities-yeswehack-4253|The Bug Bounty Guide to Exploiting CSRF Vulnerabilities - YesWeHack]] - [[raw/cobalt.io/csrf-bypasses-cobalt-3427|CSRF & Bypasses - Cobalt]] - [[raw/cobalt.io/csrf-bypasses-cobalt-2876|CSRF & Bypasses - Cobalt]] - [[raw/hackviser.com/cross-site-request-forgery-csrf-attack-guide-hackviser-2873|Cross-Site Request Forgery (CSRF) Attack Guide - Hackviser]] - [[raw/medium.com/csrf-the-bug-everyone-declared-dead-and-nobody-actually-fixed-13022|CSRF: The Bug Everyone Declared Dead and Nobody Actually Fixed]] - [[raw/en.wikipedia.org/cross-site-request-forgery-wikipedia-3428|Cross-site request forgery - Wikipedia]] - [[raw/rapid7.com/csrf-attacks-rapid7-3434|CSRF Attacks - Rapid7]] - [[raw/securehyperloop.com/csrf-bug-bounty-writeups-and-disclosed-reports-13764|CSRF bug bounty writeups and disclosed reports]] - [[raw/corneacristian.medium.com/top-25-csrf-bug-bounty-reports-4252|Top 25 CSRF Bug Bounty Reports]] - [[raw/attaxion.com/side-by-side-comparison-of-ssrf-vs-csrf-attaxion-2260|Side-by-Side Comparison of SSRF vs. CSRF - Attaxion]] - [[raw/security.stackexchange.com/web-application-should-login-and-logout-action-have-csrf-protection-in-931|web application - Should login and logout action have CSRF protection? - In]] - [[raw/medium.com/self-xss-csrf-to-stored-xss-361|Self-XSS + CSRF to Stored XSS]] - [[raw/appsecwriteups.com/escalating-self-xss-by-chaining-csrf-and-analyzing-captcha-15627|Escalating self-XSS by chaining CSRF and analyzing CAPTCHA]] - [[raw/medium.com/steal-csrf-auth-unique-key-header-with-xss-382|Steal CSRF/Auth/Unique key Header with XSS]] - [[raw/link.medium.com/brute-forcing-user-ids-via-csrf-to-delete-all-users-with-csrf-attack-952|Brute Forcing User IDS via CSRF To Delete all Users with CSRF attack.]] - [[raw/bblabs.es/wizard-takeover-ato-idor-csrf-lab-based-on-a-real-report-12598|Wizard Takeover ATO (IDOR + CSRF) lab based on a real report]] - [[raw/bblabs.es/http-method-override-and-admin-bot-exploitation-csrf-lab-from-a-real-r-13766|HTTP method override and admin bot exploitation: CSRF lab from a real report]] - [[raw/medium.com/eight-doors-one-key-chaining-misconfigurations-into-full-account-takeo-12490|Eight Doors, One Key: Chaining Misconfigurations into Full Account Takeover]] - [[raw/github.com/0ang3el-easycsrf-958|0ang3el/EasyCSRF]] - [[raw/github.com/0xinfection-xsrfprobe-5602|0xInfection/XSRFProbe]] - [[raw/masimshahzad.medium.com/the-csrf-token-nobody-checked-14075|The CSRF Token Nobody Checked]] - [[raw/hackerone.com/internet-bug-bounty-argo-cd-csrf-leads-to-kubernetes-cluster-compromis-4835|Internet Bug Bounty: Argo CD CSRF leads to Kubernetes cluster compromise]] - [[raw/thehackernews.com/nasa-ait-gui-flaws-could-let-unauthenticated-attackers-issue-spacecraf-11904|NASA AIT-GUI Flaws Could Let Unauthenticated Attackers Issue Spacecraft Commands]] - [[raw/infosecurity-magazine.com/nasa-ground-control-software-flaw-enables-unauthenticated-commands-11884|NASA Ground Control Software Flaw Enables Unauthenticated Commands]] - [[raw/ox.security/cve-2026-44613-turning-a-csrf-into-silent-unauthorized-actions-11104|CVE-2026-44613: Turning a CSRF into Silent Unauthorized Actions]] - [[raw/daybreach.dev/phpmyadmin-csrf-token-bypass-via-non-ajax-post-to-sql-cve-2026-119426-12794|phpMyAdmin CSRF token bypass via non-AJAX POST to /sql (CVE-2026-119426)]] - [[raw/github.com/emlog-pro-ai-assistant-csrf-to-sql-execution-poc-14911|emlog pro AI Assistant CSRF to SQL execution PoC]] - [[raw/plaintext.block8.ai/the-bouncer-who-waves-you-in-with-no-name-tag-pluck-cms-missing-refere-14676|The bouncer who waves you in with no name tag: Pluck CMS missing-Referer CSRF (CVE-2026-78748)]] - [[raw/sentinelone.com/cve-2025-12821-wordpress-newsblogger-csrf-allowing-rce-4828|CVE-2025-12821: WordPress NewsBlogger CSRF Allowing RCE]] - [[raw/sentinelone.com/cve-2025-23797-wp-options-editor-csrf-vulnerability-4653|CVE-2025-23797: WP Options Editor CSRF Vulnerability]] - [[raw/mor-golan.github.io/cve-2026-122675-csrf-in-wp-social-overwrites-oauth-client-credentials-15676|CVE-2026-122675: CSRF in Wp Social overwrites OAuth client credentials]] - [[raw/github.com/injection-guard-wordpress-plugin-csrf-14808|Injection Guard WordPress plugin CSRF]] - [[raw/sentinelone.com/cve-2026-34394-wwbn-avideo-csrf-vulnerability-2990|CVE-2026-34394: Wwbn Avideo CSRF Vulnerability]] - [[raw/radar.offseq.com/cve-2026-40925-csrf-in-wwbn-avideo-configuration-endpoint-4832|CVE-2026-40925: CSRF in WWBN AVideo Configuration Endpoint]] - [[raw/github.com/warpgate-cross-site-admin-actions-without-origin-check-13245|Warpgate cross-site admin actions without origin check]] - [[raw/abraxaslabs.tech/webmin-2-670-firewalld-index-cgi-csrf-sets-zone-to-trusted-14677|Webmin 2.670 firewalld index.cgi CSRF sets zone to trusted]] - [[raw/github.com/tasmota-through-16-0-0-csrf-high-13926|Tasmota through 16.0.0 CSRF (high)]] - [[raw/github.com/coder-csrf-protection-skipped-for-api-paths-matching-unanchored-exempt-13924|coder: CSRF protection skipped for API paths matching unanchored exemption patterns]] - [[raw/rubysec.com/alchemy-cms-csrf-protection-bypassed-in-admin-controllers-14678|alchemy_cms: CSRF protection bypassed in admin controllers]] - [[raw/cert.pl/vulnerabilities-in-pac4j-software-7884|Vulnerabilities in PAC4J software]] - [[raw/github.com/hono-csrf-misses-hyperlink-auditing-text-ping-posts-13246|Hono csrf() misses hyperlink auditing text/ping POSTs]] - [[raw/github.com/apache-juneau-csrf-via-the-content-query-parameter-cve-2026-73099-13593|Apache Juneau CSRF via the content query parameter (CVE-2026-73099)]] - [[raw/github.com/asp-net-core-elevation-of-privilege-via-csrf-cve-2026-109481-14078|ASP.NET Core elevation of privilege via CSRF (CVE-2026-109481)]] - [[raw/github.com/openmage-magento-lts-cross-site-request-forgery-critical-14534|OpenMage Magento LTS cross-site request forgery (critical)]] - [[raw/sentinelone.com/cve-2025-9611-microsoft-playwright-mcp-server-csrf-flaw-4652|CVE-2025-9611: Microsoft Playwright MCP Server CSRF Flaw]] - [[raw/virusbulletin.com/virus-bulletin-csrf-vulnerability-in-usb-modems-allows-for-infrastruct-11885|Virus Bulletin :: CSRF vulnerability in USB modems allows for infrastructure-less phishing]] - [[raw/github.com/yeswiki-admin-despam-csrf-deletes-wiki-pages-13247|YesWiki admin despam CSRF deletes wiki pages]] - [[raw/infosecwriteups.com/chaining-stored-xss-and-csrf-in-typemill-cms-a-deep-dive-into-attribut-9039|Chaining Stored XSS and CSRF in Typemill CMS: A Deep Dive into Attribute Injection]] - [[raw/github.com/thelia-back-office-csrf-token-leak-get-deletes-13244|Thelia back-office CSRF token leak + GET deletes]] - [[raw/github.com/flowintel-csrf-15520|FlowIntel CSRF]] - [[raw/github.com/omnispace-agora-project-csrf-14679|Omnispace Agora Project CSRF]] - [[raw/cert.pl/vulnerabilities-in-ktm-system-e-bok-software-9963|Vulnerabilities in KTM System e-BOK software]] - [[raw/cert.pl/vulnerabilities-in-atutor-software-11586|Vulnerabilities in ATutor software]] - [[raw/insightcve.com/wegia-record-ownership-bypass-and-csrf-cve-2026-61671-12754|WeGIA record ownership bypass and CSRF (CVE-2026-61671)]] - [[raw/pickleoffsec.com/one-link-to-unlink-csrf-in-openai-discord-verification-service-12650|One Link to Unlink: CSRF in OpenAI Discord Verification Service]] - [[raw/medmahmoudi.com/csrf-in-hackerone-tray-io-integration-12611|CSRF in HackerOne Tray.io integration]] - [[raw/medium.com/critical-account-takeover-via-csrf-header-bypass-12488|Critical Account Takeover via CSRF Header Bypass]] - [[raw/medium.com/account-takeover-via-csrf-on-the-email-change-endpoint-1-300-12649|Account Takeover via CSRF on the Email-Change Endpoint ($1,300)]] - [[raw/dkryptsecurity.com/login-csrf-via-a-replayable-oauth-code-static-state-no-pkce-15065|Login CSRF via a replayable OAuth code (static state, no PKCE)]] - [[raw/blog.arusekk.pl/sourcehut-disabled-registration-bypass-via-login-csrf-token-cve-2026-1-14929|SourceHut disabled registration bypass via login CSRF token (CVE-2026-121728)]] - [[raw/github.com/rodauth-before-2-47-0-csrf-cve-2026-82468-13925|Rodauth before 2.47.0 CSRF (CVE-2026-82468)]] - [[raw/github.com/request-tracker-6-csrf-protection-broken-for-authenticated-users-13243|Request Tracker 6 CSRF protection broken for authenticated users]] - [[raw/github.com/vikunja-csrf-before-2-7-1-13595|Vikunja CSRF before 2.7.1]] - [[raw/github.com/apache-roller-5-0-1-6-1-6-csrf-allows-unauthenticated-attacker-actions-14535|Apache Roller 5.0.1–6.1.6 CSRF allows unauthenticated attacker actions]] - [[raw/github.com/openam-csrf-before-16-1-4-13596|OpenAM CSRF before 16.1.4]] - [[raw/github.com/openemr-8-5-0-csrf-in-observationcontroller-14675|OpenEMR 8.5.0 CSRF in ObservationController]] - [[raw/github.com/sap-web-dispatcher-icm-request-forgery-critical-13923|SAP Web Dispatcher / ICM request forgery (critical)]] - [[raw/github.com/jetbrains-teamcity-csrf-on-hub-integration-15361|JetBrains TeamCity CSRF on Hub integration]] - [[raw/github.com/jetbrains-teamcity-csrf-on-diagnostics-15519|JetBrains TeamCity CSRF on diagnostics]] - [[raw/github.com/ibm-api-connect-csrf-13594|IBM API Connect CSRF]] - [[raw/github.com/watchguard-dimension-user-management-csrf-15364|WatchGuard Dimension user-management CSRF]] - [[raw/github.com/icrtouch-bytable-wallet-top-up-csrf-15221|ICRTouch ByTable wallet top-up CSRF]] - [[raw/github.com/abilities-bridge-wordpress-plugin-missing-nonce-csrf-14386|Abilities Bridge WordPress plugin missing nonce CSRF]] - [[raw/github.com/simple-jwt-login-wordpress-plugin-csrf-14388|Simple JWT Login WordPress plugin CSRF]] - [[raw/github.com/wpide-file-manager-csrf-high-14079|WPIDE file manager CSRF (high)]] - [[raw/github.com/blubrry-powerpress-podcasting-csrf-high-13767|Blubrry PowerPress Podcasting CSRF (high)]] - [[raw/github.com/edwiser-bridge-wordpress-rest-csrf-scope-flaw-15220|Edwiser Bridge WordPress REST CSRF/scope flaw]] - [[raw/github.com/csrf-in-brainstorm-force-zip-ai-15067|CSRF in Brainstorm Force ZIP AI]] - [[raw/github.com/vvveb-csrf-14807|Vvveb CSRF]] - [[raw/github.com/dockhand-1-0-57-cross-site-request-forgery-15673|Dockhand 1.0.57 cross-site request forgery]] - [[raw/github.com/revive-adserver-csrf-in-tracker-invocation-php-14241|Revive Adserver CSRF in tracker-invocation.php]] - [[raw/github.com/writefreely-csrf-in-account-settings-14537|WriteFreely: CSRF in account settings]] - [[raw/vulncheck.com/webasyst-photos-app-csrf-via-backend-actions-cve-2026-116210-12792|Webasyst Photos app CSRF via backend actions (CVE-2026-116210)]] - [[raw/jvn.jp/jvn-44272550-akeeba-products-csrf-cve-2026-105296-13425|JVN#44272550: Akeeba products CSRF (CVE-2026-105296)]] - [[raw/seamlessauth.com/we-wrote-an-rfc-9700-matrix-and-it-found-a-bug-oauth-state-binding-15863|We wrote an RFC 9700 matrix and it found a bug (OAuth state binding)]] - [[raw/k0z1l.github.io/portswigger-csrf-lab-samesite-lax-bypass-via-method-override-15858|PortSwigger CSRF lab: SameSite Lax bypass via method override]]