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.
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
- View the cart to find the ID of the free promotional item.
- Send a request to add one quantity of that item to the cart.
- Repeat the add request multiple times to increase the quantity of the free item.
- Confirm via the cart API that the quantity has increased.
- 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.