How One Logical vulnerability Opened the Gates
The shopping cart retained discounted prices after the discount period ended, and when discounted items were removed, the cart total decreased by the original price rather than the discounted price. An attacker could add a high-priced item and many discounted low-priced items, wait for the discount to expire, then remove the low-priced items to reduce the total cost of the high-priced item.
medium.com
Published on medium.com
The routine as an normal user was that you were choosing your own goods and adding it to your shopping cart.
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 cart stored the discounted price for items but calculated removals using the original price, causing an inconsistency when discounts expired.
Impact
An attacker could buy a high-priced item at a significantly reduced price by exploiting the cart's price calculation after discounts expire.
What the attacker needed
A user account on the store site; ability to add items to cart; waiting for discount period to expire
How it was found
- Add discounted products to the shopping cart.
- Wait for the discount period to expire (24 hours).
- Observe that the cart still shows the discounted prices.
- Add a high-priced item (e.g., a $500 TV) and many low-priced discounted items (e.g., 50 lamps at $2 each).
- After the discount expires, remove the low-priced items from the cart.
- The cart total decreases by the original price of the removed items, not the discounted price, reducing the cost of the high-priced item.
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 online store had a bug in its shopping cart: it kept old sale prices even after the sale ended. When you removed those sale items, the cart subtracted the full original price, not the sale price, so the total dropped more than it should. This let someone buy an expensive item for much less by adding cheap sale items and then removing them later.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.