Previously created sessions continue being valid after MFA activation
When a user activates two-factor authentication, other existing sessions for the same account remain valid. An attacker who already has a session could keep using the account even after the owner turns on 2FA.
- Triaged in 3 hours
- Fixed in 10 days
- Paid in 7 days
- Disclosed after 14 days
Summary by the program
@brdoors3 found a design issue in MFA implementation: previously created sessions aren't invalidated after MFA activation. No users affected.
Thanks, @brdoors3!
The report
Hi team,
I found one issue related to your 2FA system on https://account.grammarly.com/security
POC
1 access the same account on https://account.grammarly.com in two devices 2 on device 'A' go to https://account.grammarly.com/security > 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
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 revoke existing sessions when MFA is enabled.
What the attacker needed
Attacker already has a valid session; victim enables 2FA
The fix
The application should terminate all other sessions when 2FA is activated, requiring a fresh login and 2FA code before access is granted again.
How it was found
- Log in to the same account on two devices.
- On device A, go to the security page and complete all steps to activate 2FA.
- On device B, reload the page.
- Observe that the session on device B is still 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 of identity, such as a code from a phone, when you log in. The report says that if someone was already logged in on another device, turning on 2FA does not log them out. So a person who had stolen a login session could stay in the account.
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.