CSRF is Dead? Only if You Believe the Marketing: Bypassing SameSite in 2026

Published 2026-12-05 | Bug Bounty Series

The Quick Takeaway

SameSite cookies didn't kill CSRF; they just raised the barrier to entry. If you’re still looking for classic <form> submissions on modern apps, you’re failing—the real money is in finding GET-based state changes, SameSite=None misconfigurations in microservices, and exploiting top-level navigation quirks that "Lax" cookies still allow.

Why This Still Matters in 2026

I remember back in 2020 when Chrome pushed the "Lax by default" update. Half the bug bounty community acted like the sky was falling and CSRF was officially a "won't fix" legacy bug. Fast forward to 2026, and guess what? I’m still pulling five-figure bounties for account takeovers via CSRF.

Why? Because the web is messy. We’ve moved into an era of massive microservice architectures where developers are constantly fighting with cross-domain authentication. To get that legacy partner widget or that complex OAuth flow working, devs frequently flip the SameSite=None; Secure switch because they can't be bothered to fix the underlying architecture.

Moreover, the "Lax" default is a psychological trap. It gives developers a false sense of security. They think, "The browser handles it now," so they stop implementing anti-CSRF tokens. That’s exactly where we strike. If I find a state-changing action that accepts a GET request, or if I can find an open redirect on the target domain, your SameSite=Lax protection is basically tissue paper.

How It Actually Works

To hunt this effectively, you have to understand the nuances of the SameSite attribute. It’s not binary.

  1. Strict: The cookie is only sent if the request originates from the exact same site. Great, but it breaks usability (e.g., clicking a link from an email won't keep you logged in).
  2. Lax: The new default. Cookies aren't sent on "cross-site" subrequests (like images or frames) but are sent when a user navigates to the URL via a top-level transition (a link click). Crucially, it only works for "safe" HTTP methods like GET.
  3. None: The "Please hack me" setting. Cookies are sent everywhere, provided the connection is HTTPS.

The root cause of 90% of my CSRF finds lately is Method Swapping. A developer builds an API endpoint to update a user's email. They test it with a POST request and a JSON body. But, because they used a generic framework like Express or an old version of Spring without strict method validation, the backend happily accepts the same parameters via a GET query string.

If the backend accepts a GET for a state-changing action, SameSite=Lax is bypassed the moment I get a user to click a link.

Finding It on Real Targets

Stop running automated scanners. They miss the context. Here’s my personal methodology when I'm hitting a high-value target on HackerOne.

1. The "Method Flip" Test

Every time you see a POST request that changes state (updating a profile, adding an SSH key, changing a password), try to send it as a GET.

  • Change the method in Burp.
  • Move the parameters to the URL.
  • Check if the server responds with a 200 OK. If it does, and the data changed? You’ve got a live one.

2. The "SameSite=None" Audit

Fire up Burp Suite and look at the Set-Cookie headers during login. Are any critical session cookies (JWTs, SIDs) explicitly marked SameSite=None?

  • Commonly found on sites that offer "Embeddable" versions of their app.
  • Check if the site has a "Sandbox" or "Developer" domain. Often the main site is hardened, but the api.target.com uses None to support third-party integrations.

3. Tracking Token Leakage

Does the site use an anti-csrf-token? If so, where is it reflected? If the token is leaked in a GET request (like a referrer header) or via an XSS-lite (like an HTML injection), the CSRF protection is void.

Recon Checklist:

  • [ ] Identify all cookies without the SameSite attribute (they'll default to Lax, but it’s good to know).
  • [ ] Map every endpoint that accepts GET for sensitive actions.
  • [ ] Check for "Toggle" buttons (Dark mode is boring, but "Disable 2FA" is a goldmine).
  • [ ] Look for Access-Control-Allow-Origin: * on API endpoints; it often hints at a loose security posture.

Exploitation Techniques

Technique 1: The GET-to-POST Conversion (Lax Bypass)

If you found a POST endpoint that also accepts GET, your payload is a simple link. I like to hide these in "Click here to see your reward" bait.

The Payload:

<a href="https://target.com/settings/update_email?email=hacker@evil.com">Claim Reward</a> 

Since this is a top-level navigation, the SameSite=Lax cookies will be sent. The user clicks, the email changes, the account is yours.

Technique 2: The "Lax-plus-POST" 2-Minute Window

This is a bit of a "Deep Magic" trick. For a long time, Chromium had a "Lax + POST" intervention. It treated cookies as Lax, but for the first 2 minutes after a cookie was set, it would actually allow POST requests to send those cookies.

While many browsers have tightened this, you still find legacy environments or specific browser versions (especially on mobile) where this works.

  1. Force the user to re-authenticate (maybe via a fake "Session Expired" popup).
  2. Immediately trigger a hidden form POST via JS.
  3. The browser might include the "Lax" cookies because they are "fresh."

Technique 3: The Open Redirect Bridge

If the target has an open redirect, you can sometimes use it to "reset" the context of the request.
https://target.com/redirect?url=https://target.com/api/delete_account

If the API endpoint checks the Referer header as a defense, the open redirect makes it look like the request came from their own domain. This is a classic "Chain for Impact" move.

Bypassing Common Defenses

1. Bypassing the Origin/Referer Check

Many devs rely on checking the Origin or Referer header.

  • The Null Origin: Try making the request from a sandboxed iframe.

    <iframe sandbox="allow-scripts allow-forms allow-same-origin" src="data:text/html,..."></iframe> 

    Sometimes the server sees the origin as null and has a whitelist that accidentally allows it.

  • The "Double Domain" trick: If they check if the referer contains target.com, host your exploit on target.com.evil.com.

2. The Content-Type Shuffle

If the server looks for application/json to trigger its CSRF protection, try sending text/plain or application/x-www-form-urlencoded. If the backend parser is lazy (looking at you, PHP and older Node modules), it might still parse the body even if the Content-Type is "wrong."

Payload for text/plain JSON:

<form action="https://target.com/api/update" method="POST" enctype="text/plain"> <input name='{"email":"hacker@evil.com", "ignore":"' value='"}'> <input type="submit"> </form> 

The server sees: {"email":"hacker@evil.com", "ignore":"="}. That trailing = is valid JSON structure if handled correctly by the parser.

Writing the Report

When you report CSRF in 2026, you have to be loud about the impact. If you just say "I can change the user's nickname," the triager will give you a P4 and $50.

Structure it like this:

  • Title: Full Account Takeover via CSRF (SameSite=Lax Bypass) on /api/user/settings
  • Severity: High/Critical (depending on the action).
  • Exploitability: "High - Requires single user interaction (click)."
  • Impact: "By inducing a victim to click a specially crafted link, an attacker can change the email address associated with the account. Since the application does not require the current password for email changes, this leads to a full Account Takeover (ATO) by initiating a password reset."

Proof of Concept:
Provide a clean HTML file. Use document.forms[0].submit() for POSTs, or a simple window.location for GETs. Make it look professional.

Payout Expectations

CSRF payouts have actually increased because they are harder to find now.

  • Minor State Change (Username, preferences): $500 - $1,500.
  • Sensitive Action (Delete account, disable MFA): $2,500 - $7,000.
  • Full ATO (Email change, Password change): $10,000 - $25,000+ on top-tier programs like Meta, Google, or major FinTechs.

If you find a CSRF on a multi-billion dollar crypto exchange that lets you add a withdrawal address? You're looking at a life-changing bounty.

The takeaway? Don't listen to the "CSRF is dead" noise. As long as developers are pressured to ship features fast, they will keep making the same mistakes with cookie attributes and method validation.

Keep digging. The bugs are there.

Happy hunting.