Buying A Gift Can Cost You Your PII Data
An IDOR vulnerability in the address selection endpoint allowed an attacker to change the addressId parameter and retrieve other users' addresses, names, and phone numbers. Because the IDs were sequential, an attacker could enumerate all addresses in the database, causing a mass PII leak.
Published on addictivehackers.blogspot.com
The original lives on addictivehackers.blogspot.com
We do not hold its text, 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 the addressId supplied by the client without verifying that the address belonged to the authenticated user, and used sequential identifiers that made enumeration trivial.
Impact
An attacker could retrieve the names, phone numbers, and addresses of all users in the database, resulting in a mass PII leak.
What the attacker needed
A user account; ability to place an order
The fix
The issue was fixed silently by the Winni team, though the report does not describe the fix; it should be fixed by checking that the requested address belongs to the authenticated user and by using non-sequential identifiers.
How it was found
- Start placing an order and reach the address selection step.
- Intercept the POST request sent to the address selection endpoint.
- Change the addressId value to another number.
- Observe the response containing another user's name, phone number, and address.
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.
When you place an order, the site asks which saved address to use by sending a number (the address ID) to the server. The server did not check that the address belonged to you, so changing the number showed someone else's name, phone number, and address. Because the numbers were in order, someone could simply try every number and collect everyone's 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.