How I Turned a Low-Hanging Fruit Bug Into Mass Unauthorized Deletion of Invited Members
The invitation revocation endpoint accepted an account ID from the request body without verifying that the caller owned that account, so any user could delete an invited member from any other account. Because account IDs were sequential, an attacker could script the deletion across every account on the platform.
Published on medium.com
Today, I’m excited to share a vulnerability I discovered that initially seemed like a simple low-hanging fruit. However, with a bit of testing and experimentation, I was able to elevate it into a High issue: Mass Unauthorized Deletion of Invited Members.
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 server used the account ID supplied in the request body to decide which invitation to delete, without checking that the authenticated user owned that account.
Impact
Any invited user could be mass-deleted from all accounts on the platform, with no interaction needed from the victim or the accounts involved.
What the attacker needed
A free account; ability to invite a user; sequential account IDs
The fix
The platform patched the issue promptly.
How it was found
- Create three separate accounts and invite the same email address from each one.
- Intercept the request that revokes an invitation from the third account and send it to the repeater.
- Replace the account ID in the request body with the ID of the first account and send it.
- Replace the account ID with the ID of the second account and send it again.
- Observe that the invited user is removed from all three accounts.
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 app, the app stores that invitation under your account. The app should only let you cancel invitations that belong to you. Here, the server trusted a number sent in the request that said which account the invitation belonged to, so anyone could change that number and cancel invitations in other people's accounts.
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.