Zero-Click Account Takeover via Organization Invite Abuse
Organization invitations were accepted automatically, so an attacker could add a victim to an attacker-controlled organization without consent. Once a member, the attacker could change the victim's email address and trigger a password reset, taking over the account.
medium.com
Published on medium.com
During security testing, I discovered a critical Zero-Click Account Takeover vulnerability in an organization’s invitation functionality. The issue allows an attacker to force a victim account to join an attacker-controlled organization without the victim’s consent.
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 was auto-accepted and organization members could change other members' email addresses without verification.
Impact
An attacker could take over a victim's account without any action from the victim, gaining access to their data and the ability to act as them.
What the attacker needed
Attacker has an account; victim has an account; no victim interaction needed
The fix
The application should require explicit approval before joining an organization, stop members from changing other users' emails, verify email changes, and send security notifications.
How it was found
- Log in as the victim and create an organization with the victim as owner.
- In a separate session, log in as the attacker.
- From the attacker account, send an organization invitation to the victim's email address.
- The victim account automatically joins the attacker's organization.
- The attacker changes the victim's email address to one the attacker controls.
- The attacker triggers a password reset and uses the link to set a new 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 join a team or organization in an app, you normally have to click a link to accept. Here the app added people automatically, so an attacker could put someone into their own team. Inside that team the attacker had the power to change the victim's email address, and then used the password reset to get into the account.
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.