Uncovering an Account Linking Vulnerability: Persistent Unauthori
An account linking feature allowed an attacker to pre-register an account using a victim's email and link it to an attacker-controlled account before the victim verified. The attacker retained persistent access to the victim's private content even after the victim verified and took control of the account.
Published on medium.com
As a full-time bug bounty hunter actively hunting for security flaws, I recently discovered a critical account linking vulnerability that allows attackers to gain unauthorized, persistent access to user data without their knowledge. This vulnerability exposes sensitive information and presents a serious security risk…
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 account linking action was only restricted in the web interface and not on the server, so modified requests could link an unverified account to an attacker-controlled external account.
Impact
An attacker could persistently view a victim's private content without detection, and could mass-link accounts for large-scale data harvesting.
What the attacker needed
Victim's email address known; pre-registration allowed; attacker has an external account
The fix
The account linking action should be enforced server-side and should require verification of ownership before an external account can be linked.
How it was found
- The attacker registers an account using the victim's email address.
- Before the victim verifies the account, the attacker links it to their own external account.
- The victim later signs in, verifies the account, and starts creating private content.
- The attacker still has access to the victim's newly created private content.
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.
Account linking lets you connect one service to another, for example signing in with Google. Here, the site let someone create an account with another person's email and attach their own external account before the real owner verified it. That link stayed in place, so the attacker could keep seeing the victim's private content.
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.