Skip to content
CSRF Disclosed report Intermediate

Take over of accounts created using Google or Facebook

Accounts created via Google or Facebook without a password could have a password set by an attacker through a CSRF flaw on the password-setting endpoint. An attacker could then log in to the victim's account using the password they set.

tomoh Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 3 hours
  • Fixed in 10 days
  • Disclosed after 6 months

When a user creates an account using Google or Facebook and does not set an additional password, it is possible to set their passwords via CSRF. Since the account is created using a social media account, no existing password check is needed and the CSRF check on the endpoint is broken. To reproduce, create an account with Google or Facebook and make account load the attached HTML file. You should now be able to login to the account with password=ATTACKER_PASS.

Impact

An attacker can take over of accounts created using Google or Facebook.

The original report as published on HackerOne, by tomoh. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the password-setting endpoint did not require the existing password for social-login accounts and lacked a working CSRF protection check.

Impact

An attacker could take over accounts created using Google or Facebook.

What the attacker needed

Account created via Google or Facebook; no additional password set; victim loads attacker HTML

How it was found

  1. Create an account using Google or Facebook.
  2. Make the account load the attached HTML file.
  3. Log in to the account using the attacker-chosen password.

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 report has not been written yet. The Original tab links to the source.

When you sign up with Google or Facebook, the site may not give you a separate password. This report says an attacker could trick your browser into setting a password on your account without you knowing, because the site did not properly check that the request came from you. After that, the attacker could log in as you.

What is CSRF?

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

More by tomoh

View all

1 more disclosed report, best first.

More from Khan Academy

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.