SSO Misconfiguration Leading to Privilege Escalation Lead to Full Organization Takeover + SSO Email Synchronization Lead to Account Takeover
The platform's SSO treated a changed email as a new user and granted full privileges, and a subdomain allowed email changes that desynchronised with the main domain, letting an attacker register the same email and take over the victim's account.
Published on deepvvm.medium.com
During my recent security research, I explored some SSO implementations and discovered two SSO misconfigurations that allowed full account takeover and organization Takeover . In this article, I’ll walk you through the findings, how the flaws could be exploited, and key lessons for securing SSO systems.
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 platform used the email address as a static identifier across SSO without synchronising changes, so a changed email was treated as a new user or matched to the wrong account.
Impact
An attacker could escalate from limited privileges to full organization takeover, and in the second flaw take over a victim's account on a subdomain.
What the attacker needed
Victim invites attacker; attacker has an account; victim changes email on subdomain
The fix
The issues were fixed by the security team.
How it was found
- Victim invites attacker with limited privileges; attacker accepts.
- Attacker changes their email on the main domain.
- Attacker logs back into the partner platform and sees full privileges.
- Victim changes email on the subdomain.
- Attacker registers a new account on the main domain using the victim's new email.
- Attacker logs into the subdomain via SSO and is logged in as the victim.
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.
Single Sign-On (SSO) lets you log in once and use many sites. Here, the system trusted the email address to decide who you are, so changing your email confused it and gave you more power or someone else's 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.