Simulations/Business Logic Abuse

Business Logic Abuse

Beginner

The checkout endpoint trusts the cart JSON the browser sends — quantity, unit price, and a list of coupon codes — and recomputes the total from them with no lower bound. Tamper the cart to flip the total negative, then turn on server-side validation to see it recomputed honestly.

Progress:
1
Go negative on quantity
2
Stack coupons past zero
3
Recompute on the server
⚡ Cart
POST /api/checkout — body.quantity, body.unitPrice, body.coupons
Quantity
Unit price ($)
Coupons (stackable)
🛡 Server Protection
Server response log
Waiting for checkout…

Challenges

1
Go negative on quantity
Submit a negative quantity so the total flips negative and the store credits you.
hints
2
Stack coupons past zero
Turn on multiple coupons at once to drive the total below $0.
hints
3
Recompute on the server
Enable server-side validation and confirm the abusive cart is normalized to an honest, non-negative total.
hints
How to fix business logic abuse
authoritative pricing, quantity validation, server-side coupon rules

Frequently Asked Questions