Skip to content
Account takeover Disclosed report Beginner

Improve visibility of connected social accounts after password reset

An attacker could create an account using a victim's email address without verifying it, then link their own Twitter account. Even after the victim reset their password, the attacker could still log in via the linked Twitter account, leading to account takeover.

GitLab

Originally disclosed on GitLab

  • Fixed in 2.1 years
  • Disclosed after 2.1 years

HackerOne report #1015596 by ashutoshshukla31 on 2020-10-21, assigned to @ankelly:

Report | Attachments

Report

Description:-
Attacker can takeover victim account as when attacker creates an
account with victim email where attacker can link his
twitter account because application doesn’t ask to
verify mail before linking twitter account so even after
victim changes or reset his password, attacker still can
log into the victim account with his(attacker's) twitter linked to the
victim account.

Steps To Reproduce The Issue

  1. Signup With Victim Email
  2. Login Without Verification With Victim Email
  3. Linking the attacker’s twitter account
  4. Done

Solution -
There Should Constraint On Webapp Like Email/Account Should
Be Verified Before linking any twitter account or any
other social networking account .

Impact

Impact - When the victim tries to create account with
this email Id, he will see that account already exist. So
if he resets his password then still attacker can
access his account and log into the victim account
with the twitter that attacker has linked with
victim’s account while creating account with victim email.
So In this way Account takeover
takes place which makes it very critical bug.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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

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 application allowed linking a social media account before verifying the user's email address.

Impact

An attacker could take over a victim's account by pre-registering with their email and linking a social account, and the takeover persists even after a password reset.

What the attacker needed

Attacker knows victim's email address; Victim has not yet signed up

The fix

The application should require email verification before allowing any social media account to be linked.

How it was found

  1. Sign up using the victim's email address.
  2. Log in without verifying the email.
  3. Link the attacker's Twitter account to this account.
  4. The attacker can now access the account even after the victim resets the 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 for a website, you usually have to prove you own the email address by clicking a link sent to it. This report says that proof was missing, so someone could sign up with your email and connect their own Twitter account. Later, even if you reset your password, they could still get in through that Twitter connection.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.