Skip to content
Account takeover Disclosed report Beginner

Two-factor authentication (via SMS)

The two-factor authentication system accepted a verification code sent to one account when entered for a different account, as long as both accounts shared the same phone number. An attacker who controls the shared phone number could log into either account using a code intended for the other.

dia2diab Follow

Originally disclosed on HackerOne

  • Disclosed after 11 days

Hello Coinbase Security Team

I just found a problem in Two-factor authentication mechanism, here is the details and how to reproduce this issue:

I have two accounts with two emails on ████ i active 2FA on the both of two emails with this phone number `██████████.

From Chrome i will try to login using my first email █████ and now i recieved my code related to this email here 6020930.

From FireFox i will try to do the same thing using my second email ████████ and now i recieved my second code for the second email 1091566.

Logically, the following steps must be excuted to make the two accounts be logged in:

████████ => 6020930 ████ => 1091566

But the problem is when i change the two code and emails to be ███ => 1091566 ███████ => 6020930

I found myself be logged in with two accounts and there is no problem there, The exactly problem is you allow accounts that have the same number to be logged in with each other verification code if they request a login via SMS.

Thank you. █████

The original report as published on HackerOne, by dia2diab. 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 system validates the SMS code against the phone number rather than binding it to the specific account or login session.

Impact

Accounts sharing a phone number can be logged into using the other account's SMS code, weakening account-specific 2FA.

What the attacker needed

Two accounts sharing the same phone number; access to the shared phone number to receive SMS codes

How it was found

  1. Set up two accounts with different emails but the same phone number for SMS 2FA.
  2. Start a login for the first account in one browser and receive a code.
  3. Start a login for the second account in another browser and receive a different code.
  4. Swap the codes between the two login attempts and observe that both logins succeed.

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.

Two-factor authentication (2FA) adds a second step to login, often a code sent by text message. This report shows that if two accounts use the same phone number, the code sent for one account can be used to log into the other account. That means the codes are not tied to the specific account, only to the phone number.

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 dia2diab

View all

4 more disclosed reports, best first.

More from Coinbase

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.