Skip to content
Business logic Write-up Beginner

Exploiting the Menu: Breaking Restaurant Delivery Systems

The delivery platform calculated order prices on the client and the backend accepted them without recalculation or validation. An attacker could intercept the order request and lower item prices, delivery fees and the total, paying much less than the real amount.

davimouar Follow

Published on medium.com

Restaurant Delivery Systems streamline operations, but they can also present significant security risks. Here’s how I discovered a vulnerability in one of these systems, that allowed me to edit the price of my orders, potentially eat for free, and bypass payments by intercepting and manipulating API requests.

Davi Moura, 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

Root cause

Likely the backend trusted client-supplied price fields and did not recalculate or validate item prices, delivery fees or totals.

Impact

An attacker could pay much less than the real price, causing direct financial loss to restaurants; the text notes that each establishment may set a minimum order price, so ordering for a token amount is not always possible.

What the attacker needed

Ability to intercept HTTP requests; a restaurant using the platform; order total at or above the minimum

The fix

Price calculation and validation should be done on the backend, rejecting any price that does not match the server's own calculation, optionally with signed request data.

How it was found

  1. Place an order with the desired items and note the total.
  2. Intercept the order requests before they reach the backend.
  3. Modify the item price, the pre-delivery product price and the total so they add up consistently.
  4. Send the modified request and confirm the order is accepted at the lower price.

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, the app works out the prices and sends them to the server. Here the server simply believed whatever prices the app sent, so someone could change them in transit and pay less. The fix is for the server to work out and check the prices itself.

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 by davimouar

View all

1 more disclosed report, best first.

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.