Hunting PII Exposures — A Bug Bounty Perspective
An IDOR vulnerability in an e-commerce API allowed an attacker to change a user_id parameter and retrieve other users' personal information, including full name, email, phone number, and address. The author explains that the severity of such PII exposure depends on legal and business context, potentially escalating from low to critical.
medium.com
Published on medium.com
Hello guys, it’s me again. In this article, I’m going to talk about PII exposure.
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 API endpoint failed to verify that the authenticated user was authorised to access the requested user_id, allowing any user to retrieve others' data by changing the parameter.
Impact
The vulnerability could expose sensitive personal data of many users, and the severity may be rated higher depending on legal and business context, potentially reaching critical if GDPR applies.
What the attacker needed
A free account; victim has an account
The fix
The API should enforce authorisation checks to ensure that users can only access their own data, and the text implies the issue was fixed but does not explicitly state it.
How it was found
- Act as a normal customer and add items to the cart.
- During checkout, notice an API request to fetch seller details containing shop_id and user_id parameters.
- Change the user_id to your own to confirm the request returns your data.
- Decrease the user_id by one to retrieve another user's PII.
- Repeat the process to harvest data for many users.
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 a bug where a website uses a user ID or similar identifier in a request, and by changing that ID, you can access another user's data. Here, the API returned personal details like name and email when the user_id was altered, so anyone could harvest private information. The article also explains that the impact of such leaks varies by country and company, but the core issue is the missing check that the requested data belongs to the requester.
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.