How I Disconnect All Social Login Of Addthis User
The disconnect endpoint for linked social accounts used a sequential numeric identifier with no ownership check, so any logged-in user could delete another user's linked social logins by changing that number. An attacker could disconnect a victim's Facebook, Twitter or Google login from their AddThis account.
Published on addictivehackers.blogspot.com
The original lives on addictivehackers.blogspot.com
We do not hold its text, 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 delete endpoint identified the connected account only by a sequential numeric id and never verified that the id belonged to the requesting user.
Impact
An authenticated attacker could disconnect any other user's linked social logins, which could lock victims out of social sign-in or disrupt their account access.
What the attacker needed
A free AddThis account; victim's connected account id known
The fix
The endpoint should verify that the connected account belongs to the authenticated user before deleting it; the report states the issue was fixed.
How it was found
- Create a first account and note the numeric id of its connected social account.
- Create a second test account with a different connected social account id.
- While logged in as the first account, send the disconnect request but replace the id with the second account's id.
- Observe a successful response and confirm the second account's social login was disconnected.
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 link a social account to a site, the site stores a record for it and gives that record a number. The site should check that the record belongs to you before deleting it, but here it did not, so changing the number in the request deleted someone else's record. This kind of flaw is called an insecure direct object reference: the app trusts an identifier from the user without checking who owns it.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.