Accidental Account Takeover
An email verification link contained a token that was actually the user's identifier, and it stayed valid after first use. An attacker who obtained another user's identifier from API responses could reuse it to log in as that user.
Published on infosecwriteups.com
Let’s start the writeup. I was testing a team management App.
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 with a normal account could take over other employees' accounts, including those in their team and users commenting on the feedback page.
What the attacker needed
A free account; victim's user identifier visible in API responses
How it was found
- Sign up for accounts with different roles using separate browser containers.
- Copy the email verification link from the mailbox.
- Paste the link in a private window and see that it still logs in.
- Search the token in Burp to find it matches the user identifier.
- Collect other users' identifiers from the team users page API response.
- Use a collected identifier to take over an employee account as proof of concept.
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 app emails you a link to confirm your address. That link carried a secret code, but the code was really just the account's public ID, and it kept working forever. Anyone who could see another person's ID could open the same kind of link and be logged in as them.
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.