Email OTP/2FA Bypass
The login flow issued a session cookie before the email one-time-code second factor was verified, and deleting a specific refresh cookie caused the application to treat the session as fully authenticated. An attacker who already knew a victim's username and password could therefore skip the second factor and reach the account.
- Fixed in 5 hours
- Disclosed after 5 months
The application has a functionality of 2FA by email OTP so i can bypass that 2FA and got the access of application without having any access of victim account. when a user try to login in the application and enter username and password, the 2FA page is available and application generate all the cookies like "PHPSESSID" or "bb_sessionhash" at same time at 2FA page that is responsible for the user session but there is a cookie named "bb_refresh" if i delete that cookie and refresh the page again then i can successfully login to the application without 2FA.
POC:
- Login with correct username and password
- Right click and open inspect element and go to application tab
- Select Cookie form the left panel and select drugs.com
- Delete the cookie named "bb_refresh"
- Now refresh the page again and Boom ! You Logged In !
████████
Impact
A 2FA bypass in a web application compromises user security, allowing unauthorized access. Attackers can exploit this vulnerability to gain control over accounts, leading to potential data breaches, privacy violations, and unauthorized actions.
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 application created the authenticated session at the password step and relied on a client-side cookie to decide whether the second factor still had to be completed, so removing that cookie skipped the check.
Impact
An attacker holding a victim's password could gain full access to the account without the email code, though the report gives no evidence of testing against a real victim account.
What the attacker needed
Victim's username and password; ability to edit own browser cookies
How it was found
- Log in with a valid username and password so the email code page appears.
- Open the browser developer tools and go to the application/cookie panel.
- Delete the refresh cookie for the site.
- Reload the page and the session is treated as fully logged in.
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.
Many sites ask for a password and then a second code sent by email, called two-factor authentication. This site handed out the logged-in session before that code was checked, and removing one particular cookie made the site skip the check entirely. Anyone with a stolen password could get in without ever seeing the email code.
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.