2FA bypass possible on https://authsvc.singlestore.com
The two-factor authentication check on the login service could be brute-forced because the server did not limit the number of code attempts. An attacker who already knew a victim's email address and password could try many codes and log into the account without the second factor.
- Triaged in 20 days
- Fixed in 41 days
- Disclosed after 46 days
Summary:
To exploit this vulnerability and break into the victim's account, the attacker only needs to know the email address and password of the victim's account. The 2FA authentication mechanism can be bypassed completely.
Steps To Reproduce:
- Firstly, enter the victim's account e-mail address and password at
https://portal.singlestore.com/and click login. - Then make a fake 2FA code attempt, intercept the request in Burp and do not send the request in Burp, leave Intercept on.
- Then, send the request you caught to the intruder, tick the code next to the mfaToken parameter. Then, mark the Payload type as Number. For example, if the 2FA code sent to your e-mail address is 156289, enter a value between 155900 and 1556300 so that the brute force does not take too long. Then press the start attack button.
- Observe the transition from status code 303 to 302 at the end of the attack. Since the 2FA mechanism was developed incorrectly, as a result of the 3rd incorrect attempt, it switches from an HTTP status code of 200 to a status code of 302 and returns you to the beginning of the login process, but you can still try the request via Burp, and when you make a correct 2FA attempt, including subsequent attempts, it switches to a status code of 302 and you are logged into the account in the browser.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N/CR:H/IR:H/AR:H
Impact
This vulnerability makes it possible to completely bypass the 2FA mechanism developed to protect victims from malicious attacks when logging into their account
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 2FA verification endpoint had no rate limiting or attempt lockout, so codes could be guessed in bulk.
Impact
An attacker who already holds the victim's password could fully bypass the second factor and take over the account.
What the attacker needed
Victim's email address and password; ability to intercept and replay requests
How it was found
- Log in with the victim's email address and password at the portal.
- Submit a wrong 2FA code and intercept the request without forwarding it.
- Send the intercepted request to the intruder tool and mark the mfaToken parameter as a numeric payload.
- Run the attack over a range of code values.
- Watch the status code change from 303 to 302 during the attack.
- Submit a correct code and the browser logs into the account.
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) is a second check after your password, usually a short number sent to your phone or email. Here the site let someone keep guessing that number over and over without stopping them, so the second check gave no real protection. Anyone with the password could keep guessing until they got in.
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.