Account pre-hijacking using auto login token
An auto-login token issued after signup never expired, could be reused, and was not revoked when the victim reset their password or enabled MFA. An attacker who registered an account with a victim's email could keep access to that account after the victim recovered it.
Published on medium.com
I focused on account management as this is something I work on a lot as a defender.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the auto-login token was not given a short lifetime, was not single-use, and was not revoked on password reset or MFA enrolment.
Impact
An attacker could retain access to a victim's account, including sensitive financial data, even after the victim reset their password or enabled MFA; the attacker could not change the email or bank details without the password.
What the attacker needed
Attacker knows victim's email; signup does not require email verification; victim later recovers the account
The fix
The auto-login token should be single-use, expire within minutes, and be revoked on password reset and MFA enrolment; email verification should also be required at registration.
How it was found
- Register an account using an email address the attacker does not own, on a signup form that does not require email verification.
- Keep the auto-login token that the application issues after registration.
- Wait for the real owner to recover the account by resetting the password.
- Use the kept auto-login token to access the account again.
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 write-up has not been written yet. The Original tab links to the source.
When you sign up, a site may give you a special link that logs you in automatically so you do not have to type your password again. This report found that such a link never stopped working, even after the real owner reset their password or turned on extra login protection. So someone who signed up using your email address first could keep getting into your account later.
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.