Exposing 100,000 User Data : Massive API Bug Exposing
The API did not check whether a requester was allowed to access another user's data, so changing the user ID in a request returned that user's details. The researcher could retrieve personal information for 100,000 users.
Published on medium.com
Hey there! As a security researcher, I often test web applications to see how well they hold up against potential vulnerabilities.
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 API relied on a user-supplied identifier to decide which record to return but did not verify that the caller was authorised to access that record.
Impact
Personal details such as usernames, email addresses and phone numbers for 100,000 users could be leaked, which may enable phishing or identity theft and breach data protection rules.
What the attacker needed
An account on the application; ability to send API requests
The fix
The API should check on every request that the authenticated caller is authorised to access the requested user record, rather than trusting the supplied user ID.
How it was found
- Send an API request to fetch your own user data.
- Notice a user ID in the API call.
- Send a similar request with a different user ID.
- Observe that another user's details are returned.
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.
An API is the part of a website that sends and receives data behind the scenes. This one accepted a user ID number and returned that person's details without checking if the person asking was allowed to see them. By swapping in other people's ID numbers, the researcher could read their private information.
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.