One Way to Find Hidden IDOR Vulnerability
An API endpoint returned sensitive user details but ignored request parameters, so the author guessed parameter names by converting the JSON response keys into query parameters. Using a capitalised parameter name, they retrieved another account's login, password, phone number and email while authenticated as their own account.
Published on web.archive.org
I received an invitation for an internal project, i found an interesting vulnerability in this project.
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 endpoint trusted a client-supplied user identifier and never checked that it matched the logged-in account.
Impact
An authenticated attacker could read other users' login names, passwords, phone numbers and email addresses.
What the attacker needed
An account on the internal project; knowledge of a victim's identifier
How it was found
- Find an API endpoint that returns sensitive user information.
- Notice the request has no parameters and try guessing parameter names from a dictionary.
- Convert the JSON response field names into request parameters and try them.
- Change the parameter names to capitalised forms and retry.
- Supply another test account's identifier and receive that account's sensitive data.
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 IDOR (insecure direct object reference) is when a website lets you ask for someone else's data just by changing an identifier, without checking that the data belongs to you. Here the endpoint only returned data when the right parameter name was supplied, and the author found that name by copying the field names from the response and trying different capitalisations. Once the name matched, the server handed over another user's details, including their password.
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.