Skip to content
Account takeover Write-up Intermediate

From LinkedIn to Full Account Access in 10 Minutes

Two MFA setup API endpoints accepted requests without any authentication, allowing an attacker who knew a user's email address to generate a TOTP secret and complete MFA setup for that account. The attacker could then log in with the victim's email and their own authenticator code, gaining full access to sensitive KYC and compliance data.

shrivarshan81 Follow

Published on shrivarshan81.medium.com

The original lives on shrivarshan81.medium.com

We do not hold its text, 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 MFA setup endpoints lacked authentication and did not verify that the requester owned the email address, allowing anyone to bind an arbitrary account to their own authenticator.

Impact

An attacker with only a victim's email address could complete MFA setup on their own device and then log in as the victim, gaining full access to sensitive KYC, passport, and compliance data.

What the attacker needed

Knowledge of a valid user email; no authentication required

The fix

The MFA setup endpoints should require an authenticated session and verify that the requester owns the account before allowing secret generation or completion.

How it was found

  1. Find a valid employee email address via LinkedIn and email guessing.
  2. Inspect the login page's JavaScript chunk files to discover the MFA setup API endpoints.
  3. Send a request to the setup-mfa endpoint with the target's email to obtain a TOTP secret and QR code.
  4. Scan the QR code with an authenticator app to generate one-time codes for the target account.
  5. Send a request to the complete-mfa-setup endpoint with the target's email, the secret, and a generated code to finish MFA setup.
  6. Log in with the target's email and the attacker-generated one-time code to gain access.

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.

Multi-factor authentication (MFA) adds a second step to login, usually a code from a phone app. Here, the website let anyone set up that second step for any email address without first proving they owned the account. The attacker could then use their own phone app to generate the codes and log in as the victim.

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 by shrivarshan81

View all

1 more disclosed report, best first.

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.