Skip to content
CSRF Write-up Intermediate

How i earned $500 from google by change one character .

The email notification settings endpoint on Google Ad Manager accepted a CSRF token that had been altered by a single character, so the token check could be bypassed. An attacker could then turn email notifications on or off for a victim's account.

Oday Alhalbe Follow

Published on medium.com

Bounty$500 View original

My name is oday and today i will share one bug in Google from 4 bugs i discovered, Which is in “admanager”. I was able to turn off/on notification email victim account by bypassing the CSRF protection .

Oday Alhalabi, 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 server validated the CSRF token only by its length or format rather than comparing it to the value stored for the session.

Impact

An attacker could turn email notifications on or off for a victim's Ad Manager account, which could hide security or billing alerts.

What the attacker needed

Victim is logged in to Ad Manager; victim visits an attacker page or link

The fix

The server should compare the submitted CSRF token to the value bound to the user's session instead of accepting any value of the right length.

How it was found

  1. Sign in to admanager.google.com and open the email notification settings.
  2. Capture the request that changes the notification setting.
  3. Replace the security_token with a random value of the same length.
  4. Send the request and observe that the change is accepted.
  5. Change a single character of the original token and confirm it still works.
  6. Repeat the proof of concept against other accounts.

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.

A CSRF token is a secret value a website puts in a form so it can tell that a request really came from its own pages and not from another site. Here the site only checked that the token had the right shape or length, not that it was the real one, so a made-up token of the same length was accepted. That means another website could quietly send the request on behalf of a logged-in user.

What is CSRF?

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

More by Oday Alhalbe

View all

1 more disclosed report, best first.

More from Google

View all

The newest disclosed reports for this program.

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.