The shop that sold items for one cent

While reviewing an online shop’s sales, a team member spotted a baffling purchase. Someone had bought a €900 item for one cent.

The website displayed the correct price. Nobody had edited the database, there was no discount, and the payment system recorded the transaction as valid.

Everything suggested an ordinary purchase, yet nobody could explain the amount charged.

How did the buyer change the price without modifying the website or accessing the server?

How to solve the cases
A €900 product page next to a paid receipt for €0.01

Hints

Reveal them one at a time, only when you need them.

Solution

The buyer tampered with the price sent to the server. The shop accepted the modified amount without checking it.

What happened?

When the buyer added the item to the basket, the browser sent an HTTP request. In this shop the request contained a price parameter in cents. For a €900 item the value was 90000.

The buyer used Burp Suite, a web security testing tool, to intercept the request. They changed price to 1 and sent the modified request.

Original request
price=90000€900
Modified request
price=1€0.01

The order went through for one cent.

How could it have been prevented?

The browser should send only the product ID and quantity. The server should look up the price in its own catalogue and calculate the total from trusted data.

Further reading

This case is inspired by the Excessive trust in client-side controls lab from PortSwigger Web Security Academy, which shows how to change a product price using Burp Suite.

The guidance on calculating prices and totals is in the OWASP Business Logic Security Cheat Sheet (Open Worldwide Application Security Project).

Have a story worth investigating?

Suggest a case

A project by Eniun

How do you solve the cases?

Each case presents a mystery that seems to defy explanation.

A moderator who knows the solution reads the mystery to the group. The group works out what happened by asking questions, discussing hypotheses and using what they know.

You can project the case on a screen so everyone can read it and refer back to it during the discussion.

The moderator can guide the discussion without giving away the answer. If the group gets stuck, each case offers three graded hints under “Hints”, which can be revealed one at a time.

Once the moderator confirms that the group has found the answer, select “Show answer” to open the solution.

You can also solve the cases on your own: read the story, try to come up with an explanation and use the hints only when you need them.