data-disable-with attributes used by Rails-ujs. Inject an invisible clickable
layer over the whole page to trigger CSRF via XSS.
<script>alert(1)</script> โ
confirm it's filtered by DOMPurifydata-* attributes survive:
try data-remote, data-url, data-disable-with<a class="fixed-top fixed-bottom" data-disable-with="<img src=x onerror=fetch('/api/...')>">
alert() is blocked by CSP, chain to <form> CSRF to change Admin password insteaddata-disable-with on any click โ escalate to Admin CSRF"DOMPurify blocks tags and events, but it cannot know which data attributes a 3rd-party library will execute. The sanitizer's allow-list is your enemy's whitelist."
POST, PUT, PATCH, DELETE methods onlyCSRF token is in
body/header, or if only cookies are used for authSameSite attribute on session
cookies: Strict=safe, Lax=partially safe,
None=CSRF possible
/api/mobile/ or /api/v2/ endpoints โ these often lack CSRF protection added to
web flows"The best CSRF hunters don't find one bug. They map the whole attack surface first, then systematically test every state-changing action. Speed comes after methodology."
csrf_token in body, no X-CSRF-Token header, no password re-auth prompt"Any sensitive action (delete, transfer, disable) with zero CSRF protection is a critical bug regardless of 'low impact' appearance. The scale of automated exploitation makes it critical."
Email Change โ does
2FA get disabled? OAuth Link โ does it bypass 2FA?
"2FA is only as strong as the application's ability to enforce it across ALL re-entry points. Deactivation, recovery codes, OAuth linking โ every 'alternate login' is a potential 2FA bypass."
SameSite=Lax (or no SameSite set)
POST to
GET โ move body params to URL query string
https://target.com/settings/update-email?email=hacker@evil.com
_method=POST or _method=DELETE in GET request (Rails/Laravel method
override)"SameSite=Lax is not a silver bullet. It stops cross-site POSTs but allows GET link clicks. Any state-changing GET endpoint destroys Lax protection entirely."
<img src="/logout"> in comments โ
every visitor is instantly logged out. Permanent service disruption.GET /logout (most vulnerable)csrf_token parameter
or X-CSRF-Token header in logout request<img src="https://target.com/logout" style="display:none">
"Logout CSRF alone is Low. But Stored Logout CSRF = Persistent DoS affecting every user. Always think about where the PoC can be embedded, not just whether it works."
SameSite=Lax
set OR is the SameSite attribute missing
entirely? (Chrome defaults to Lax)/login?next=attacker.html)"Everyone knows SameSite=Lax stops POST CSRF. Almost nobody tests the 120-second fresh-cookie exception. That's exactly why it's still finding $2,500 bugs in 2026."
session_id
cookie value BEFORE logging injavascript:document.cookie='session_id=ATTACKER_VALUE'
"Session Fixation is the 'pre-authentication CSRF'. You don't steal the victim's session โ you give them yours. If login doesn't generate a new session ID, you own the account before they do."
/logout)<img src="https://target.com/logout">
"Logout CSRF may seem low impact, but it can be used to disrupt user workflows or as part of a more complex session fixation attack."
if (params.has("token")) validate() โ not the token's value. Empty
string passes. Send authenticity_token= (blank) and the server
processes the request.
authenticity_token)
403 Forbidden403 Forbiddenauthenticity_token= โ observe responsetoken=null, token=true, token=0, token=[] (array bypass in PHP)"isset() checks presence. empty() checks value. Developers who write `if token exists, validate` but not `if token is valid AND non-empty` leave a gaping hole."
X-CSRF-Token): delete the entire header row, not just
its value/api/mobile/ often forgets token enforcement"Optional validation is the enemy of security. 'If token exists, check it' means 'no token = no check'. Always verify that token absence returns HTTP 403, not 200."
csrf_token value โ copy it"The token must be bound to the session. A valid token for User A must be invalid for User B. This seems obvious, but global token pools are found regularly in large codebases."
text/plain and parses the body as
JSON anyway. HTML form + enctype="text/plain" = no CORS preflight =
CSRF!Content-Type: application/json to text/plainenctype="text/plain" and craft the JSON body using
input name trick:name='{"email":"h@evil.com","ignore":"'
value='1"}' โ browser sends valid JSON
text/plain is a "simple"
content-type โ browser sends NO CORS Preflight OPTIONS request"text/plain is the CSRF hunter's best friend in 2026. It triggers no CORS preflight, can carry JSON body, and many backend parsers don't care about the Content-Type header."
{) regardless of Content-Type header. No preflight means
cross-origin form can submit JSON without CORS blocking.Content-Type header
entirely from JSON request โ does server still process it?Content-Type: application/x-www-form-urlencoded with JSON body โ
does it parse?
enctype="text/plain". Use ignore field
to absorb the = sign"Body-parser 'content sniffing' โ detecting JSON from body instead of header โ is the root cause. Any framework that looks at { before checking Content-Type is vulnerable."
415 Unsupported Media Typeenctype="text/plain"
to avoid CORS preflight trigger
Content-Type: text/plain
automatically for this enctype โ no preflight!"A server that doesn't say 415 to unexpected Content-Types is a server that doesn't care what type you're sending. That complacency is CSRF's best ally."
Referer header CONTAINS
"target.com". It doesn't check the start of the string. Attacker uses a domain like
target.com.attacker.com to bypass.
Referer or
Origin is required
target.com.attacker.comattacker.com/target.com/poc.html<meta name="referrer"
content="no-referrer"> to suppress header โ does it bypass?"Regex for domain validation is notoriously hard. 'target.com' is not the same as '^https://target.com/'. Always test how deep the check goes."
Origin: null. This can be triggered by
using an iframe with a sandbox attribute or a data: URI.Origin to null<iframe sandbox="allow-forms allow-scripts" srcdoc="...">
Origin: null for the
sandboxed iframe"Origin: null is a common fallback for local files and sandboxed environments. If the server's whitelist includes 'null', any site can CSRF via iframe."
$_SERVER['HTTP_HOST'] to generate CSRF
tokens or form actions. Attacker manipulates Host header to point to their
domain, stealing the token via leaky forms.Host header to attacker.com in a request fetching a form<form action="..."> now points to
attacker.com
attacker.com โ they load a
form that POSTs to your server"The Host header cannot be trusted. If it's used to generate URLs in the UI, it's a direct vector for token theft and data exfiltration."
id=123 to id=124POST /update?id=TARGET_IDX-Forwarded-Host: attacker.com in a request
dev.target.com to set a cookie for
target.com, matching the CSRF token in their form. The server only checks if
body token = cookie token.
csrf_token cookie for parent domain: domain=.target.comstate
parameter. Attacker starts an OAuth flow, intercepts the code, and sends it to
the victim. Victim's account is linked to attacker's ID.state is
present in the URL/auth/callback?code=VALID_CODE"OAuth state is functionally a CSRF token for social login. No state = no protection against linking unauthorized accounts."
SAMLResponse via POST
without any CSRF protection. Attacker replays their own valid SSO response to link the
victim's session to the attacker's corporate identity.POST /sso/callback
containing SAMLResponsecsrf_token is present in the POST bodySAMLResponse
redirect_uri to point to attacker domain
redirect_uri against a strict
whitelistattacker.target.com)
"Authentication flows are sensitive. If you can control the redirect, you can control the code."
"User frustration is an impact. Massive logout can be used as a distraction during a real attack."
GET requests.
Since
GET requests send SameSite=Lax cookies on top-level navigation, an attacker can
trigger a mutation via a simple link click.GET /graphql?query=mutation{...}query batching to trigger multiple
mutations in a single cross-site request. Attacker can change profile and delete
notifications simultaneously.text/plain bypass if application/json
is protected"Batching is efficient for devs, but deadly for security if each operation isn't individually validated."
/socket.io/?transport=polling)
attacker.comOrigin on handshake"WebSockets often skip the standard web security model. Always check the handshake."
Origin header and
uses cookie-based auth. Attacker page initiates a WebSocket connection to the target;
browser sends victim's cookies. Attacker steals real-time data or executes trades.Connection: Upgrade)
Origin to attacker.com
โ check if connection is still acceptedcrossdomain.xml
(allow-access-from domain="*"). Attacker uses a malicious SWF file to send a
JSON POST with custom headers./crossdomain.xml on the targetallow-access-from is wildcard or overly broad
"Legacy configurations are time bombs. Even if Flash is 'dead', backend policies might still be active."
/pb.api.v1.Service/Method)
text/plain Content-Type for gRPC
calls"Complexity doesn't mean security. Protobuf can be wrapped in a form just like JSON."
"State management across requests is hard. If the first step is insecure, the whole chain fails."
<script>alert(1)</script> in a setting field"CSRF is the delivery vehicle; XSS is the payload. A CSRF bug that drops a persistent shell is Critical."
"RCE via CSRF is the ultimate jackpot. One click by an admin and you own the box."
"SSRF is powerful; CSRF makes it accessible. Internal IPs are the keys to the cloud."
"Self-CSRF is often rated Info, but with XSS it becomes Critical. Context is everything."
"ATO is the definitive goal. CSRF on a profile field can be the first domino to fall."
Exploit CSRF to change admin profile info to include an XSS payload โ Admin session hijacked.
CSRF to update email/phone โ Trigger "Forgot Password" โ Full Account Takeover.
CSRF to update server config/scripts โ Trigger command execution on target.
| ID | VULNERABILITY | TECHNIQUE | PHASE | SEVERITY |
|---|---|---|---|---|
| #01 | GitLab Sanitization Bypass | data- Attributes XSS+CSRF | RECON | HIGH |
| #02 | DoD Delete Account CSRF | Zero Token Protection | RECON | CRITICAL |
| #03 | HackerOne 2FA Bypass | Deactivation State Loss | BASIC | CRITICAL |
| #04 | Fintech JSON Confusion | text/plain Content-Type | TOKEN | HIGH |
| #05 | Streaming JSON Conversion | Form-Encoded Override | BASIC | MEDIUM |
| #06 | LinkedIn SameSite Bypass | GET Method Abuse | BASIC | HIGH |
| #07 | Shopify Token Bypass | Empty Token Value | TOKEN | HIGH |
| #08 | Fintech Param Removal | Soft Validation Bypass | TOKEN | HIGH |
| #09 | Social Token Binding | Attacker Token Reuse | TOKEN | HIGH |
| #10 | Token Fixation | Cookie Forcing | TOKEN | HIGH |
| #11 | Token Leakage | Referer Header URL | TOKEN | MEDIUM |
| #12 | SaaS JSON Laxity | Content Sniffing Bypass | TOKEN | HIGH |
| #13 | X-CSRF-Token Bypass | Method Tunneling | TOKEN | HIGH |
| #14 | Null Byte Bypass | Token Param Poisoning | TOKEN | MEDIUM |
| #15 | Cloud Provider Media Type | No 415 Enforcement | TOKEN | HIGH |
| #16 | Recruitment Fixation | Cookie Injection | BASIC | HIGH |
| #17 | GitHub Lax Window | 120-second Bypass | BASIC | HIGH |
| #18 | Banking Referer Bypass | Regex Failure | HEADER | HIGH |
| #19 | E-commerce Null Origin | Sandboxed Iframe | HEADER | HIGH |
| #20 | SaaS Host Poisoning | $_SERVER['HTTP_HOST'] | HEADER | CRITICAL |
| #21 | Cloud Console IDOR+CSRF | Header Bypass | HEADER | HIGH |
| #22 | Slack OAuth CSRF | Missing State | OAUTH/SSO | HIGH |
| #23 | X-Forwarded-Host CSRF | Host Injection | HEADER | MEDIUM |
| #24 | Double Submit Bypass | Subdomain XSS | HEADER | HIGH |
| #25 | Enterprise SAML Replay | POST Replay | OAUTH/SSO | CRITICAL |
| #26 | OAuth Redirect CSRF | Incomplete State Check | OAUTH/SSO | HIGH |
| #27 | Imgur Logout CSRF | GET Logout Stored | BASIC | MEDIUM |
| #28 | SSO Global Logout | Single Click Logout | OAUTH/SSO | MEDIUM |
| #29 | Shopify GraphQL GET | Lax Cookie Navigation | MODERN API | HIGH |
| #30 | GraphQL Batching | Multi-Mutation Chain | MODERN API | HIGH |
| #31 | Socket.io Handshake | Origin Check Failure | MODERN API | HIGH |
| #32 | Trading CSWH | WebSocket Hijacking | MODERN API | CRITICAL |
| #33 | Legacy SWF JSON | crossdomain.xml Bypass | MODERN API | MEDIUM |
| #34 | gRPC-Web text/plain | Protobuf via Form | MODERN API | HIGH |
| #35 | Advanced Logic Chain | Multi-step Validation | CHAINS | HIGH |
| #36 | WordPress CSRF to XSS | Banner Setting Chain | CHAINS | HIGH |
| #37 | CSRF to Admin RCE | Command Injection | CHAINS | CRITICAL |
| #38 | CSRF to SSRF | Webhook setup | CHAINS | HIGH |
| #39 | Self-CSRF to XSS | Account Linking Chain | CHAINS | MEDIUM |
| #40 | Uber ATO Chain | Phone Change + Reset | CHAINS | CRITICAL |