Skip to content
Business logic Write-up Beginner

Hacking a Pizza Order with Burp Suite

The pizza ordering website's user interface did not offer a particular cheese topping at the user's local store, but the HTTP request used numeric parameters to represent toppings. By intercepting and modifying these parameters, the user could add the unavailable topping, bypassing the UI restriction.

initblog.com

Published on initblog.com

Web hacking skills can be used to solve critical challenges in business and life – like customizing a pizza order. Read on to see how I overcame a restricted UI to triumphantly top my pizza just the way I wanted it.

initstring, on initblog.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 server trusted the client-supplied numeric parameters for toppings without validating that the selected toppings were available at the user's location.

Impact

The user could order a topping not offered at their location, but the modification was benign and did not affect price or access restricted information.

What the attacker needed

A pizza ordering account; ability to intercept HTTP requests

The fix

The server should validate that the requested toppings are available at the user's location and not rely on client-side restrictions.

How it was found

  1. Open a private browsing tab and configure the same pizza from a different store that offers the desired topping.
  2. Configure Firefox to proxy through Burp Suite.
  3. Select desired ingredients and click 'Update' to capture the POST request.
  4. Turn on intercept in Burp Suite and edit the pizza at the new location by ticking random boxes.
  5. Modify the 'currIngreds' and 'extIngreds' parameters to match the values from the other store.
  6. Forward the request and observe the order is created successfully.

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.

A website's user interface (the buttons and menus you see) can limit what you can select, but the data your browser sends to the server can be changed manually. Here, the pizza site used numbers to represent toppings, and by editing those numbers in the request, the user could order a topping that wasn't shown as an option. This shows that client-side restrictions are not security controls.

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.