UUIDs Unmasked: Exploiting IDOR for User Data Access
The application used UUIDs to make object references hard to guess, but an API token creation URL also accepted a numeric account_id parameter. By changing that numeric value, a regular user could view another user's widget data, including an admin's.
Published on medium.com
My name is Satyam Singh, and I’m back again with another article where I will share how I uncovered an IDOR vulnerability within an application that utilizes UUIDs.
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 trusted a client-supplied numeric account_id parameter for authorisation instead of checking that the authenticated user owned the requested account.
Impact
A regular authenticated user could view other users' data, including an admin user's widget data, and could enumerate such data at scale.
What the attacker needed
A regular user account; knowledge of another user's UUID; ability to send modified requests
How it was found
- Create a regular user account and an admin account, and add widget data from the admin account.
- Find the API token creation functionality whose URL contains an account_id parameter with a numeric value.
- Change the numeric account_id value and observe that information about other users is returned.
- Copy the account_id parameter and add it to other application URLs that use UUIDs.
- Replace the UUID with another user's UUID while keeping the account_id parameter to view that user's data.
- Send the request to an intruder tool to perform mass exploitation.
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.
Many apps try to stop people from guessing other users' records by using long random identifiers called UUIDs. Here, a second, simple number parameter was also accepted, and changing that number let a normal user see another user's information. This is called an insecure direct object reference (IDOR): the app checks that you are logged in but not that the record 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.