**The Delete Button Anyone Could Press:**
A regular user could delete any product via an unprotected DELETE endpoint and then redeem the deleted product through a PATCH endpoint, allowing theft of high-value items. The attacker could wipe the entire catalog and claim items for free.
Published on medium.com
I’m Abderhman Reda, a bug hunter passionate about web security. Today, I want to share the story of a particularly interesting vulnerability I recently uncovered…
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
Impact
An attacker could delete any product and then redeem it for themselves, leading to financial loss and denial of service.
What the attacker needed
A regular user account; knowledge of a product ID
The fix
The endpoints should enforce proper authorization checks to ensure only authorized users can delete or redeem products.
How it was found
- Log in as a regular user.
- Find a product ID from the client-side.
- Send a DELETE request to the product endpoint with that ID.
- Observe the product is deleted (200 OK).
- Send a PATCH request to the redeem endpoint with the same product ID.
- Observe the product is redeemed (200 OK).
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.
The website let any logged-in user delete products, even though only admins should be able to. Then, the same user could 'redeem' a deleted product, meaning they could take it for free. This is like a shop where any customer can remove items from the shelf and then take them home without paying.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.