Day 11: Full Account Takeover (ATO) — A Tale of Two Bugs
An API endpoint returned another user's data when the numeric user ID in a request was changed, and the same ID was trusted from a client-side session object for authentication. By swapping in a victim's ID, an attacker could take over the victim's account and change their password.
medium.com
Published on medium.com
Hi everyone, I hope we’re all having a great day! Today’s bug report highlights how he chained two low-severity bugs to achieve a full account takeover on a private program (www.xyz.com).
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 a client-supplied user ID from a session object for authentication and authorisation without verifying it belonged to the logged-in user.
Impact
An attacker could take over another user's account and change their password.
What the attacker needed
A logged-in account on the target; ability to intercept and modify requests; knowledge of a victim's user ID
How it was found
- Intercept a POST request to the account data endpoint and change the user ID.
- Observe that the response contains another user's data.
- Reload the user account page, intercept the request, and replace the ID with the victim's ID.
- Gain access to the victim's account and change their password to demonstrate impact.
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.
A website was trusting a number the browser sent to decide whose account data to show. By changing that number to someone else's, the researcher could read that person's details and then act as them, including changing their password. This is called an insecure direct object reference: the site checks that you are logged in but not that the object you ask for belongs to you.
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.