Missing session checks at 2FA leading to improper session management in BMO (bugzilla.mozilla.org)
After a password reset, a session that was already at the two-factor authentication (2FA) prompt could still be completed using the old password, allowing login despite the reset. An attacker with the old password and a valid 2FA code could retain access after the legitimate user reset the password.
Originally disclosed on Mozilla
- Fixed in 7 days
- Paid in 12 days
- Disclosed after 7 days
Summary:
-----------
Even after resetting the password remotely, the user already presented with the 2FA page is allowed to log in with the old password of the BMO account.
Impact:
--------
Improper session management
Repro Steps:
--------------
Setup: 2FA enabled BMO account
1. Go to bugzilla.mozilla.org and enter the credentials. You will be presented with 2FA page which will ask you to enter the 2FA code. Do not enter the code at this moment.
2. From another browser/device, go to bugzilla.mozilla.org and initiate the reset password process for the BMO account, and reset the password successfully for the given BMO account.
3. Come to the previous browser/device where you were presented with the 2FA page and enter the valid 2FA code. You will be successfully logged in.
Any session created with an older password should get terminated right after the password reset.
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 does not invalidate pending authentication sessions (those at the 2FA step) when the account password is reset.
Impact
An attacker who knows the old password and has a valid 2FA code could still log in after the legitimate user resets the password, meaning the reset does not fully revoke access.
What the attacker needed
2FA-enabled BMO account; knowledge of the old password; a valid 2FA code
How it was found
- Go to bugzilla.mozilla.org and enter the account credentials to reach the 2FA page, but do not enter the code.
- From another browser or device, initiate and complete the password reset for the same account.
- Return to the first browser at the 2FA page and enter a valid 2FA code to log in successfully.
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.
When you log in, the site first checks your password, then asks for a second code (2FA). If you reset your password, any login that was halfway through should be cancelled. Here, a login that was waiting at the 2FA step could still finish using the old password, so someone who knew the old password could get in even after the reset.
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.