CSRF vulnerability found in Gmail; Google not willing to fix it
The Gmail 'Change Password' function accepted requests via HTTP GET and relied only on the session cookie for authentication, with no anti-CSRF token. An attacker could make a logged-in victim's browser send password-change requests, potentially changing the victim's password or testing guesses of the old password.
seclists.org
Published on seclists.org
II. BACKGROUND ------------------------- Gmail is Google's free webmail service.
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
The password-change endpoint accepted GET requests and authenticated them only with the session cookie, without a per-request anti-CSRF token.
Impact
The attacker could change a victim's password, causing a selective denial of service, and could potentially gain access to the victim's mail; the report also notes the attack evaded the captcha on the authentication form.
What the attacker needed
Victim is logged in to Gmail; victim visits attacker's page; attacker knows or guesses old password
The fix
No fix was provided by the vendor; the endpoint should require a POST request with a per-request anti-CSRF token.
How it was found
- The attacker creates a web page containing requests to the Gmail Change Password function.
- The attacker sends mail to the victim and uses social engineering to get the victim to visit that page while logged in to Gmail.
- The victim's browser sends the password-change requests, and the password cracking runs without the victim noticing.
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.
When you are logged in to a site, your browser automatically sends your session cookie with every request to that site. A cross-site request forgery (CSRF) attack tricks your browser into sending a request the site trusts, such as a password change, without you meaning to. Here the password-change page had no extra check, so a page the attacker controlled could trigger it.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.