Skip to content
CSRF Write-up Beginner

Account Takeover Worth $900

A subdomain shared login credentials with the main site but did not enforce the CSRF token when changing the account email. An attacker could change a victim's email address and thereby take over the main site account.

Saad Ahmed Follow

Published on medium.com

Bounty$900 View original

{{media:0}}

Saad Ahmed, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the email-change endpoint on the subdomain did not validate the CSRF token server-side, even though the form included one.

Impact

An attacker could change a victim's email and take over main site accounts, which the author describes as a high-tier asset.

What the attacker needed

A free account; victim is logged in; attacker can make victim's browser send request

How it was found

  1. Log in to the subdomain using the main site account credentials.
  2. Open the account email change request.
  3. Remove the CSRF token from the request and send it.
  4. The email change succeeds, allowing takeover of the main site account.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Many websites put a hidden random value in forms, called a CSRF token, so that another site cannot silently submit the form on your behalf. Here the subdomain checked that token on some actions but not when changing the email address, so an attacker could submit that change without it. Changing the email lets the attacker control the account's recovery address, which leads to taking the account over.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by Saad Ahmed

View all

9 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.