How I Found a Critical API Vulnerability in a Global Brand with 5
An API endpoint for retrieving addresses did not check that the requesting user owned the address, so changing the numeric ID in the URL returned other customers' full address details. The attacker could access names, cities, ZIP codes and phone numbers without being logged in as those users.
Published on medium.com
In the world of web security, some of the most dangerous vulnerabilities are the simplest. Recently, I discovered a critical bug in a live API belonging to a well-known global brand with over 50 million customers.
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 looked up an address by its numeric ID without verifying that the address belonged to the authenticated user.
Impact
An unauthenticated attacker could read other customers' names, cities, ZIP codes and phone numbers; the text does not say whether any defence limited the exposure.
What the attacker needed
No account needed; guessable numeric IDs
The fix
The endpoint should enforce an ownership or permission check (for example a Laravel policy) before returning an address; the text says the company deployed a fix.
How it was found
- Find the address endpoint that takes a numeric ID.
- Send requests with different numeric IDs.
- Observe that one response contains another user's address 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 API is how apps talk to servers. Here, the server gave out address details just because someone asked for a particular number, without checking whether that person was allowed to see it. This is called an insecure direct object reference (IDOR): changing a number in a link lets you see someone else's data.
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.