Chasing P3 Bug: My Hunt for Vulnerabilities in the ‘Wishlists�
The wishlist delete-all function did not properly check that the wishlist belonged to the requesting user, so an attacker could delete another user's wishlist by changing the wishlist ID in the request. The IDs were sequential, making them easy to guess.
Hello, readers! My name is Nebty, and I’m a newcomer to the world of bug bounty hunting.
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 server trusted the wishlist ID supplied by the client without verifying that the authenticated user owned that wishlist.
What the attacker needed
Two accounts on the shop subdomain; ability to intercept requests (e.g. Burp Suite); victim's wishlist ID (sequential, easy to guess)
The fix
The server should verify that the authenticated user owns the wishlist before allowing deletion.
How it was found
- Create two accounts on the shop subdomain, one as attacker and one as victim.
- Find the wishlist ID for both accounts using Burp Suite while adding a product.
- In the attacker account, create a new wishlist, click Delete All, and intercept the request.
- Replace the wishlist IDs in the request with the victim's IDs and send it.
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.
A wishlist is a saved list of products. The website used a simple number to identify each wishlist, and it did not check that the person sending the delete request actually owned that list. So anyone could delete someone else's list just by changing the number.
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.