Skip to content
Account takeover Write-up Intermediate

How I Earned $1800 for finding a (Business Logic) Account Takeover Vulnerability?

The application generated a link when adding a friend that logged the attacker into the victim's account without any credentials or victim interaction. An attacker could view, modify, or delete sensitive information, set or change passwords, and enable two-factor authentication.

Vivek Kumar Yadav Follow

Published on medium.com

Bounty$1,800 View original

I was invited by a Web3 company to test their online infrastructure for Security vulnerabilities. During the sign-up process, I noticed that they were using Google OAuth, which prompted me to investigate further.

agent3137, 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 friend-invitation link contained a token or identifier that authenticated the recipient as the invited user, instead of requiring the invited user to log in.

Impact

The attacker could view, modify, or delete sensitive information, set or change passwords, and enable two-factor authentication on the victim's account.

What the attacker needed

Google account; Victim's email in contacts; Ability to intercept requests

How it was found

  1. Add the victim's email address to your Google contacts list.
  2. Sign up for the application using Google OAuth.
  3. Go to the 'Friends' menu and click on the victim's email to add them as a friend.
  4. Intercept the request and copy the link from the response.
  5. Open the link in a separate browser to be logged in as the victim.

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 sign up using Google, the app can see your Google contacts. The researcher added the victim's email to their own Google contacts, then used the app's 'invite friend' feature. The app created a special link that, when opened, logged the researcher in as the victim. This is called account takeover because the attacker gets full control of someone else's account.

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.

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.