IDOR in the Wild: How I Discovered a Critical Data Exposure via V
A vendor admin API accepted a vendorId in the request body and returned driver records for whichever vendor was specified, without checking that the authenticated user belonged to that vendor. An attacker with a valid token could change the vendorId to read other vendors' drivers' names, phone numbers, licence numbers and onboarding dates.
During a recent security review of a ride-hailing application’s vendor admin panel, I encountered an API endpoint that looked routine on the surface it fetched a list of drivers based on some pagination and filtering.
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
Impact
An attacker with a valid token could read other vendors' drivers' names, mobile numbers, licence numbers and onboarding dates, which the author describes as a privacy violation and a breach of data protection laws.
What the attacker needed
A valid authenticated token; access to the vendor driver list API
The fix
The backend should derive the vendor from the authenticated session or verify that the user's token is authorised for the requested vendorId, and enforce strict tenant isolation.
How it was found
- Intercept the driver list request in Burp.
- Change the vendorId value in the JSON body to another vendor's number.
- Send the request with the same token and observe another vendor's driver records.
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) happens when a website uses an identifier from the user, such as a vendor number, to decide which records to show, but never checks that the user is allowed to see those records. Here the server trusted the vendorId sent in the request, so anyone logged in could swap it for another vendor's number and see their drivers' personal details.
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.