Beyond Lax: Hunting State-Changing CSRF in a SameSite-Default World

Published 2026-12-05 | Bug Bounty Series

The Quick Takeaway

Contrary to what the "CSRF is dead" crowd will tell you, Cross-Site Request Forgery is still a goldmine in 2026. While SameSite=Lax by default has killed the "low-hanging fruit" POST attacks, developers still regularly shoot themselves in the foot by using GET for state changes, misconfiguring SameSite=None, or leaving legacy "Lax + POST" windows open. If you can find a top-level navigation that triggers an action, you've got a P1.

Why This Still Matters in 2026

I remember back in 2016 when CSRF was everywhere. You’d find a profile update page, drop a hidden form in a PoC, and boom—$2,000. Then Google and Apple decided to actually care about security, and SameSite=Lax became the default browser behavior.

Fast forward to 2026. The "Privacy Sandbox" and "Related Website Sets" have complicated the cookie landscape, but the core issue remains: Browsers are built for convenience, not isolation.

Modern frameworks like Next.js or Nuxt often abstract away the cookie handling, leading developers to assume the framework "just handles CSRF." I’ve seen countless "modern" apps where the devs disabled CSRF protection because it interfered with their API design, or they opted for SameSite=None to support some obscure legacy integration without realizing they just opened the door for me.

Just last month, I pulled a $6k bounty from a major fintech app because they used a GET request for a "One-Click Quick Pay" feature. They thought Lax protected them. It didn't.

How It Actually Works

Let’s get technical. The SameSite attribute controls when cookies are sent with cross-site requests.

  1. Strict: Cookies are only sent if the request originates from the same site. It’s the gold standard, but it breaks user experience (e.g., clicking a link from an email won't keep you logged in).
  2. Lax: This is the 2026 default. Cookies aren't sent on "unsafe" cross-site requests (like POST), but they are sent on top-level navigations using safe HTTP methods (GET).
  3. None: Cookies are sent everywhere. Requires the Secure flag.

The root cause of 90% of the CSRF I find today is State-Changing GETs.

Think about it: If a developer uses a GET request to delete a user or change an email address (don't laugh, it happens constantly in "internal" admin panels), SameSite=Lax does absolutely nothing to stop me. A simple <a href="..."> or a window.location redirect is a top-level navigation. The browser says, "Oh, the user clicked a link! I should send their cookies."

Here is the HTTP reality:

GET /api/v1/user/delete?id=1337 HTTP/1.1 Host: victim.com Cookie: session=xyz123; SameSite=Lax Referer: https://attacker.com/ 

The browser sends that session cookie because it’s a GET request and a top-level navigation. The server sees a valid session, processes the id=1337, and the account is gone.

Finding It on Real Targets

When I start a new program, I don’t just run a scanner. I look for where the logic is fragile.

My Hunting Methodology:

  1. The "Method Swap" Test: Take a standard POST request (like updating a profile). Change it to a GET. Does the server still process it? Many REST APIs use generic routers that don't strictly enforce the HTTP verb.
  2. The "Cookie Stripper": Use Burp Suite’s "Match and Replace" to remove CSRF tokens from your requests. If the request still succeeds, the token is either not validated or it’s optional.
  3. The "Lax + POST" Window: Chromium (and by extension, Edge/Brave) still has a "Lax + POST" intervention. For the first 2 minutes after a cookie is set, it might be sent on a cross-site POST request if it doesn't have a SameSite attribute explicitly set. I look for login/refresh flows that set new cookies.
  4. Deep-Link Analysis: Check mobile-web integrations. Often, GET requests used for deep-linking into an app are vulnerable if accessed via a mobile browser.

Recon Checklist:

  • [ ] Search for GET requests with parameters like action=, delete=, update=, or admin=.
  • [ ] Check for SameSite=None in the Set-Cookie headers using Burp's "Columns" feature.
  • [ ] Look for X-HTTP-Method-Override or _method parameters. Can you turn a POST into a GET?
  • [ ] Identify sensitive actions that don't require a password confirmation (Email change, MFA disable, API key regeneration).

Exploitation Techniques

1. The Top-Level Navigation (The Lax Bypass)

If the state-change is a GET, don't use an <img> or an <iframe>. Those are sub-resource loads, and Lax will block the cookies. You need a full window change.

Payload:

<script> // Simple, direct, and works on Lax window.location = "https://victim.com/admin/promote?user=attacker&role=admin"; </script> 

2. The Form Submission via Window Open

Sometimes you need to trigger a POST, and the site has SameSite=None (common in legacy enterprise apps). I like to use a new window to stay stealthy.

Payload:

<script> const win = window.open("about:blank", "_blank"); win.document.write(` <form id="f" action="https://victim.com/account/update" method="POST"> <input type="hidden" name="email" value="hacker@evil.com"> </form> <script>document.getElementById('f').submit();<\/script> `); </script> 

3. The "Method Override" Trick

This is a beauty. Some frameworks (like Laravel or Ruby on Rails) allow you to override the POST method using a GET parameter. If the site is protected against POST-CSRF but allows _method=POST in a GET request, you’ve bypassed Lax.

Payload:

<a href="https://victim.com/profile?_method=POST&email=pwned@attacker.com">Click for free BTC</a> 

The browser treats this as a GET (sending Lax cookies), but the server treats it as a POST. Checkmate.

Bypassing Common Defenses

Empty or Duplicate Tokens

I can't tell you how many times I've bypassed a CSRF token by just sending an empty string: csrf_token=. Or better yet, try duplicating the parameter: csrf_token=valid&csrf_token=. The server might validate the first (attacker-controlled) and the app might use the second.

The "Same-Site" Subdomain Takeover

If app.target.com is protected by SameSite=Lax, but you find a subdomain takeover on dev.app.target.com, you are now "Same-Site." You can bypass Lax restrictions because the browser considers *.target.com to be the same site in many contexts. Use your taken-over subdomain to host the exploit and fire a POST request to the main app.

JSON to URL-Encoded

If the API expects JSON (Content-Type: application/json), CSRF is usually hard because of the Preflight (OPTIONS) request. But check if the server accepts application/x-www-form-urlencoded. If I can send the same data via a standard HTML form, I can bypass the CORS preflight entirely.

Writing the Report

When you write this up, don't focus on the bug, focus on the impact. A "CSRF on /api/settings" is a P3. "Complete Account Takeover via Unprotected Email Change" is a P1.

Template:

Summary:
The endpoint [URL] is vulnerable to CSRF due to the lack of anti-forgery tokens and the use of state-changing GET requests, which bypasses the browser's default SameSite=Lax protection.

Steps to Reproduce:

  1. Log in to victim.com.
  2. Host the attached exploit.html on a separate domain.
  3. Visit exploit.html.
  4. Observe that your email address on victim.com has been changed without your consent.

Impact:
An attacker can perform an Account Takeover (ATO) by changing the victim's email address. Since the application does not require the current password for this action, the attacker can subsequently trigger a password reset and gain full control of the account.

Payout Expectations

CSRF payouts vary wildly, but here’s what I’ve seen on the major platforms (HackerOne/Bugcrowd) lately:

  • P4 ($100 - $300): CSRF on non-sensitive actions (e.g., changing "Newsletter Preferences" or "UI Theme").
  • P3 ($500 - $1,500): CSRF on actions that impact data but not account security (e.g., deleting a non-critical resource, adding an item to a cart).
  • P1/P2 ($3,000 - $15,000+): Full Account Takeover, changing MFA settings, or unauthorized financial transactions.

If you find a CSRF on a major crypto exchange that lets you withdraw funds or change an API key, you’re looking at $20k minimum.

I've been at this for over a decade. The tech changes, the headers get longer, and the browsers get smarter. But at the end of the day, there's always a developer somewhere who thinks, "I'll just use a GET request here, it's faster."

Find that developer, and you’ll find your next big bounty.

Happy hunting.