Case Study: Two-Factor Authentication Bypass
The application sent a one-time password (OTP) to a phone number supplied in a request, and the attacker could change that number to their own device. By replaying the request with the attacker's phone number, the OTP was sent to the attacker, allowing them to complete two-factor authentication and access the victim's account.
With advent of account takeovers, Companies like Google, Facebook have implemented this feature on various sensitive pages where an attacker could get or modify data of a user without his intent. This Authentication method improves the security posture & provides a secure access to users.
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
Impact
An attacker who already knows a victim's credentials could bypass two-factor authentication and take over the account.
What the attacker needed
Valid username and password; ability to intercept and modify requests
How it was found
- Log in to the application with valid credentials.
- Intercept the POST request to the SMS enrolment endpoint that contains the phone number.
- Change the phone number in the request to the attacker's own number.
- Replay the modified request.
- Receive the OTP on the attacker's device and enter it to complete authentication.
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.
Two-factor authentication adds a second step to logging in, often a code sent to your phone. Here, the system trusted a phone number sent by the user's browser when deciding where to send that code. An attacker who already knew a victim's username and password could change that number to their own phone, receive the code, and get into the 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.