Old session does not expire after setup 2FA
When two-factor authentication (2FA) was enabled on one device, other existing sessions for the same account remained active. An attacker who already had a logged-in session could keep using the account even after the victim turned on 2FA.
- Accepted in 5 days
- Fixed in 11 days
- Disclosed after 4 months
Summary by Subhamoy
Hi team,
I found this issue related to your 2FA system on https://control.stackpath.com/profile/authentication
POC
access the same account on https://control.stackpath.com in two devices. on device 'A' go to https://control.stackpath.com/profile/authentication > complete all steps to activate the 2FA system. Now the 2FA is activated for this account.
back to device 'B' reload the page. The session still active.
Impact In this scenario when 2FA is activated the other sessions of the account are not invalidated.
2FA is required to login. I believe the expected and recommended behavior here is to terminate the other sessions> request a new login> request the 2FA code> so then give the account access again
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
What the attacker needed
Attacker has an active session; victim enables 2FA
The fix
The application should terminate all other sessions when 2FA is enabled, forcing a new login and 2FA code.
How it was found
- Log in to the same account on two devices.
- On device A, go to the authentication settings page and complete all steps to activate 2FA.
- On device B, reload the page; the session remains active.
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 proof, like a code from a phone, when you log in. This report says that if someone was already logged in on another device, turning on 2FA did not log them out. So an attacker who had stolen a login session could stay in the account even after the owner tried to secure it.
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.