How This Simple Account Takeover Gave Me 800 EUR
The invitation signup link did not verify which account was logged in, so opening it while logged in as another user added the invited email as a secondary email to that victim's account. The attacker could then use the forgot-password flow on that email to reset the victim's password and take over the account.
Published on medium.com
I am Dinesh (you can call me as professor ). I am a Cybersecurity Researcher who is trying to become the best version of myself.
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 invitation signup endpoint did not check that the logged-in user matched the invited email address, allowing the invited email to be attached to any account that opened the link.
Impact
An attacker could take over a victim's account by adding their own email as a secondary address and then resetting the password, though the victim had to open the attacker's invite link while logged in.
What the attacker needed
Attacker has an account; attacker can invite a user; victim opens attacker's invite link while logged in
How it was found
- Invite a user to your organisation from the attacker's session.
- Copy the signup link from the invitation email.
- Open that link in a browser where the victim is logged in.
- The invited email is added as a secondary email to the victim's account.
- Use the forgot password page with that email to receive a reset link and change the victim's 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 invite someone to an organisation, the email contains a signup link. That link should only work for the person who was invited. Here it worked for whoever was logged in, so an attacker could make a victim open it and attach the attacker's email to the victim's account. Then the attacker used the 'forgot password' feature to get a reset link sent to that email and change the victim's 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.