API vulnerability make me $500.
The account deletion endpoint accepted a user ID from the URL and deleted that account without checking whether the caller owned it. Any logged-in user could therefore delete another user's account by swapping the ID.
Published on medium.com
I was casually testing a mobile app — nothing fancy, just the usual recon + endpoint probing. The app allowed basic features like login, register, update profile, and account deletion.
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
The server authorised the request based only on a valid session token and never compared the user ID in the URL with the identity in the token.
Impact
Any logged-in user could delete other users' accounts, potentially including admin accounts if IDs were predictable.
What the attacker needed
A free account on the app; ability to intercept app traffic
The fix
The server should compare the user ID in the token with the one in the request before running any deletion logic; the text says it was patched within 72 hours.
How it was found
- Log in to the app and intercept traffic with a proxy.
- Trigger the 'Delete My Account' option and capture the DELETE request containing the user ID.
- Replay the request with the same authorisation token but a different user's ID.
- Observe a successful response and confirm the other account was removed.
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 log in, the server gives you a token that proves who you are. This app used that token to check you were logged in, but never checked that the account you asked to delete was actually yours. So anyone with a normal account could wipe out other people's accounts just by changing a number in the request.
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.