Account Takeover
The email change flow sent the verification message to the original address rather than the new one, and the account was switched to the new address once that message was confirmed. An attacker could therefore attach a victim's email address to their own account and then sign in using it.
medium.com
Published on medium.com
This is my first writeup, hope you find it good! I was bored, so I thought, “Why not go hunting?” I started by using GitHub dorks bug bounty and found this dork:
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
Impact
An attacker could take over an account by binding a victim's email address to it and then logging in with that address, though the report does not show what happens to the victim's existing account.
What the attacker needed
A free account; attacker knows victim's email address
How it was found
- Sign up with the attacker's own email address.
- Change the account email to the victim's address.
- Receive the verification message at the original address and confirm it.
- Log out and sign in using the victim's address with the same password.
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 change the email on an account, the site should check that you really own the new address by sending a confirmation link there. Here it sent the link to the old address instead, so confirming it proved nothing about the new one. The account then used the new address, letting someone else's email end up on the attacker's login.
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.