Skip to content
Account takeover Disclosed report Beginner

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.

Subhamoy Follow

Originally disclosed on Bugcrowd

  • 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

The original report as published on Bugcrowd, by Subhamoy. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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

  1. Log in to the same account on two devices.
  2. On device A, go to the authentication settings page and complete all steps to activate 2FA.
  3. 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.

More from StackPath

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.