Account Takeover And Staying Logged In Forever After Password Res
The system allowed account creation without email verification and issued access and refresh tokens at signup. If the real owner later signed in with Google or reset their password, the attacker's old refresh token remained valid, enabling persistent account access.
Published on medium.com
During an authorized test I discovered the system allows account creation without email verification and issues accesstoken and refreshtoken at signup. If the real account owner later signs in with Google or changes/resets their password, the old tokens the attacker obtained remain valid — enabling persistent access.
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 system did not revoke refresh tokens when a password was reset or changed, and it issued tokens to accounts without verifying the email address.
Impact
The attacker could retain full access to the victim's account even after the victim changed their password, potentially viewing personal data or changing settings.
What the attacker needed
Attacker can register with victim's email alias; victim later resets password or signs in with Google
How it was found
- Created an account using an email variation that logically maps to the victim’s mailbox (alias).
- Saved the issued refresh_token.
- Later, the victim used “Forgot Password” and successfully changed their password.
- After the password change, used the saved refresh_token and observed the system returned a new access_token.
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, the system gives you a special key (a refresh token) that lets you stay logged in. Normally, if you change your password, all old keys should stop working. Here, they did not, so someone who signed up with your email before you did could keep using their old key even after you reset your password.
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.