Skip to content
Business logic Write-up Beginner

Unlimited free burgers — Hacking McDonald’s India

The McDelivery India cart API allowed a free promotional item to be added repeatedly by sending the same add-to-cart request multiple times, bypassing the one-per-order limit. An attacker could obtain unlimited free promo items in a single order without paying extra.

medium.com

Published on medium.com

While casually exploring the McDelivery platform, I stumbled upon a critical vulnerability that allowed promo items meant to be “one per order” to be multiplied endlessly. What started as a curiosity turned into a serious bug bounty report revealing a flaw with potential for massive abuse — and business loss.

Monish, on medium.com

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

Impact

An attacker could obtain unlimited free promotional items in a single order, causing financial loss to the business.

What the attacker needed

A McDelivery India account; an active promo offer

The fix

The backend should enforce a maximum quantity for promotional items, rejecting requests that exceed the allowed limit.

How it was found

  1. View the cart to find the ID of the free promotional item.
  2. Send a request to add one quantity of that item to the cart.
  3. Repeat the add request multiple times to increase the quantity of the free item.
  4. Confirm via the cart API that the quantity has increased.
  5. Proceed to payment and observe the total amount remains unchanged.

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.

When you order food online, the website's cart keeps track of what you're buying. Some items are free gifts if you meet an offer, and the site is supposed to give you only one. Here, the site didn't check how many times you asked for the free item, so you could keep asking and get many free burgers.

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.

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.