Description
EverShop through 2.4.0 contains a business logic vulnerability that allows unauthenticated attackers to set negative cart item quantities via the PATCH /api/cart/:cart_id/items/:item_id endpoint. Attackers can submit a negative integer qty to offset other item prices until the total reaches zero, then use the zero_checkout payment method to place paid orders without payment.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| evershopcommerce | EverShop | 0 ≤2.4.0 | — |
References
- https://github.com/evershopcommerce/evershop/blob/v2.4.0/packages/evershop/src/modules/checkout/services/updateCartItemQty.ts#L24-L35
- https://github.com/evershopcommerce/evershop/blob/v2.4.0/packages/evershop/src/modules/checkout/api/updateCartItemQty/payloadSchema.json#L8-L11
- https://github.com/evershopcommerce/evershop/blob/v2.4.0/packages/evershop/src/modules/checkout/services/zeroCheckout.ts#L21-L48
- https://www.vulncheck.com/advisories/evershop-through-2.4.0-negative-cart-quantity-payment-bypass-via-cart-items-api