CWE-352Automation & fraudSeverity · Medium

Actions forged from another site

Without request forgery protection, any web page a signed-in user visits can make their browser change their email, password or payout details.

At a glance

Controls
CWE-352 · A01:2021 Broken Access Control
Typical severityMedium
ReferenceCWE-352
OWASP Top 10A01:2021 Broken Access Control

What it is

Browsers send a site's cookies with every request to that site, even when another page starts the request. If the product accepts a state-changing request based on the cookie alone, it cannot tell who started it. This is cross-site request forgery.

An attacker hosts a page that quietly submits a form to the product. A signed-in user who visits it changes their email, password or payout account without knowing. A changed email often leads to full account takeover. AI-assisted attackers can scan every form and API call for missing protection and build working pages automatically.

Where it hides

What a reviewer can look for in the code and in the behaviour, before anyone proves it.

  • Email, password and phone number change endpoints
  • Payout and bank detail updates
  • Older form-based pages that skipped token checks
  • APIs that accept form-encoded or simple requests with cookie sessions

How MATT tests it

The proof runs against the deployed product, on every release, whoever wrote the code.

  1. 01List state-changing endpoints that rely on cookies and note which check a token or origin.
  2. 02Build a test page on a MATT-controlled site that submits a change for a signed-in MATT test user.
  3. 03Visit the page as that test user, record whether the change happens, then restore the test account.
The rule, in plain English

Every state-changing request must prove it came from the product.

Executable check

as test user, from another site: POST /v1/account/email with a new address expect: 403 expect: the account email is unchanged expect: session cookies are set with SameSite=Lax or Strict

Every rule MATT holds →

What the fix looks like

  1. 01

    Require an anti‑forgery token on every state‑changing request and check it on the server.

  2. 02

    Check the Origin header and reject requests from other sites.

  3. 03

    Set session cookies with SameSite=Lax or Strict.

  4. 04

    Ask for the current password before changing email, password or payout details.

A check that was never written is found by proving the deployed behaviour, fixed with the engineer who shipped it, and kept fixed by running the control on every change. What is ExploitOps? →

ExploitOps discovery call

Understand where your security loop breaks.

A call with a MATT co-founder to understand your product and whether an ExploitOps Review is worth doing. If there is a real need, we scope one with the research team.

Let’s understand your priority

What brings you to MATT?

What would you like help with?
01 / 02