CVE-2025–56426: Upcoming Cart Price Manipulation Vulnerability
The shopping cart accepted a tampered quantity parameter set to a negative value, and the server subtracted that item's price from the cart total instead of adding it. An attacker could place an order for expensive products at zero or negative total cost without paying.
medium.com
Published on medium.com
🔍 Overview During a security assessment of the Bagisto CMS v2.3.6 Demo Web Application, I discovered a cart price manipulation vulnerability stemming from improper input validation and flawed backend business logic in the cart and checkout functionality.
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
The application relied on client-supplied quantity values for price calculation without server-side validation that quantities are positive integers.
Impact
Attackers could obtain products for free or at reduced prices, and automated abuse could mass-generate fraudulent orders and distort inventory.
What the attacker needed
A user account on the shop; ability to intercept HTTP requests; a product in the cart
The fix
The vendor fixed it by rejecting quantities below one, recalculating totals only from server-side values, and adding inventory checks, logging and rate limiting.
How it was found
- Create and log in to a user account on the demo application.
- Add a product to the cart and note the normal subtotal.
- Intercept the add-to-cart request with a proxy tool.
- Change the quantity parameter from a positive value to a negative value.
- Forward the tampered request and observe the subtotal drop to zero.
- Complete checkout with cash on delivery and confirm the order total is zero.
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 shop lets you change how many of an item you are buying. The shop's computer trusted the number sent by the browser without checking it was positive. By sending a negative number, the shopper made the total price go down instead of up, and the shop still accepted the order.
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.