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.
- 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. █████
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
- Set up two accounts with different emails but the same phone number for SMS 2FA.
- Start a login for the first account in one browser and receive a code.
- Start a login for the second account in another browser and receive a different code.
- 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.