IDOR Vulenebility with empty response still exposing sensitive details of customers!
The 'set as default address' endpoint accepted any address_id without checking ownership, returning an empty 200 response. The checkout page then displayed another user's name, full address and mobile number, exposing all customers' addresses and phone numbers.
Published on rahulvarale.medium.com
Hello there👋! For many days I was thinking of sharing my bug bounty experience with the community and finally writing my first write-up.
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 'set as default address' endpoint did not verify that the address_id belonged to the logged-in user before updating it.
Impact
All users' addresses and mobile numbers could be exposed.
What the attacker needed
A user account on the e-commerce site
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 a simple identifier, like a number, to refer to a record and does not check that the person asking owns that record. Here, changing the address number in a request let the attacker set someone else's address as default, and the checkout page then showed that person's private 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.