Previously created sessions continue being valid after 2FA activation
When two-factor authentication is activated on a WordPress account, other existing sessions remain valid instead of being terminated. An attacker who already has an active session could continue to access the account even after the legitimate user enables 2FA.
b740e9c0b92b389ac6646c5 Follow
Originally disclosed on HackerOne
- Triaged in 11 days
- Fixed in 5 months
- Disclosed after 6 months
Summary:
WordPress has a function called "2fa". I have found a bug in this function. As a result of this bug, every site that uses the 2fa function in WordPress is affected.
Steps To Reproduce:
1/ Access the same account on example.com in two devices 2/ On device 'A' go to example.com> complete all steps to activate the 2FA system Now the 2FA is activated for this account 3/ Back to device 'B' reload the page The session still active
##Same to Same Report Link https://hackerone.com/reports/667739
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
Root cause
Likely the application does not invalidate existing sessions when 2FA is enabled, so previously authenticated sessions remain valid.
What the attacker needed
Attacker has an active session; victim enables 2FA
The fix
The reporter suggests terminating other sessions on 2FA activation, forcing re-authentication with the 2FA code.
How it was found
- Log in to the same account on two devices.
- On device A, complete all steps to activate 2FA for the account.
- 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 step, like a code from a phone, when you log in. This report says that if someone is already logged in on another device, turning on 2FA does not log them out. So an attacker who stole a password earlier could keep using the account even after the owner enables 2FA.
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.