Skip to content
Business logic Disclosed report Beginner

Items bought for free due to lacks of quantity controls

The server did not validate the quantity of items added to the cart, accepting zero or negative values as one. An attacker could place an order for free by setting the quantity to zero.

nadino Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 6 days
  • Paid in 6 days
  • Disclosed after 3 months

Hi,

The server fails to check the quantity of the items that are going to be sell. Values <= 0 are accepted as 1.

PoC:

Go here https://sandbox.reverb.com/fr/item/139897-fender-2-strap-leather-test-2018-leather

Intercept the response after clicking "Add to cart" and put "quantity: 0"

reverb_quantity_0.png
reverb_quantity_0.png From the original on HackerOne

Proceed to checkout

reverb_0_euros.png
reverb_0_euros.png From the original on HackerOne

Place order

reverb_final.png
reverb_final.png From the original on HackerOne
reverb_gratis.png
reverb_gratis.png

I used one of the fake credit cards you provide us.

Impact

Items are sold gratis

The original report as published on HackerOne, by nadino. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server did not validate that the quantity parameter was greater than zero before processing the order.

Impact

Items could be purchased for free.

What the attacker needed

Ability to intercept HTTP traffic

How it was found

  1. Go to the product page.
  2. Intercept the response after clicking 'Add to cart' and set quantity to 0.
  3. Proceed to checkout.
  4. Place order.

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 report has not been written yet. The Original tab links to the source.

The website did not check that the quantity was positive. A quantity of zero was accepted as one, and the order could be placed for free.

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.

More from Reverb.com

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.