Hacking Wishlists In An E Commerce Web App Idor Diaries
A shopping site's wishlist page let anyone view other users' private and public wishlists by appending a slash to the URL, and the wishlist identifier followed a partly predictable pattern that could be brute forced. This exposed users' names, email addresses, shipping addresses and wishlist products.
Published on infosecwriteups.com
If you haven’t checked other writes on the IDOR Diaries series you check below write-ups
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 wishlist page relied on the URL path for access decisions and treated a trailing slash as a different, unchecked path, while the identifier itself was partly static and therefore enumerable.
Impact
An attacker could view any user's private or public wishlist and obtain their name, email address, shipping address and wishlist products.
What the attacker needed
No account needed to view lists; guessable wishlist identifier
How it was found
- Open a wishlist URL that ends with the owner's name and list name.
- Remove the trailing name segment; the page returns a 404 error.
- Add a slash to the end of the remaining identifier.
- The page then shows another user's private wishlist.
- Create several wishlists and compare their identifiers to work out which parts are fixed and which vary.
- Brute force the varying parts to enumerate other users' private and public wishlists.
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 a shopper wants. Normally only that shopper should see a private list. Here the website checked the address in a sloppy way, so adding a slash at the end showed someone else's list, and the list's identifier was guessable enough to find many more.
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.