My First Bug Bounty Win: How I Found and Reported a Security Vulnerability
After changing the email on an account that was created with Google login, the original Google account could still log in and access the account now owned by the new email. This allowed the first owner to retain full access, including bypassing 2FA and making purchases, effectively an account takeover.
Published on heinhtetagg.medium.com
Like many security enthusiasts, I often explore different platforms, testing their authentication flows to see if anything seems off. One day, while using a proxy service provider (name redacted for confidentiality), I stumbled upon something unexpected.
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 application did not invalidate the original Google authentication link or active sessions when the account email was changed.
Impact
The first owner could retain access to the account after transferring ownership, bypass 2FA set by the second owner, and make unauthorised purchases using the second owner's account.
What the attacker needed
A Google account; ability to change account email; victim takes over the account
The fix
The platform should invalidate old authentication tokens and force logout on email change, and enforce 2FA.
How it was found
- Register an account using Google Login as the first owner.
- Change the email associated with the account to a new email, transferring ownership to a second owner.
- Log in again using the original Google account and observe full access to the second owner's account.
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 in with Google, the site trusts Google to confirm who you are. If you later change the email on the account, the site should stop trusting the old Google login. Here it did not, so the person who gave away the account could still get back in.
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.