Skip to content
Business logic Write-up Beginner

How I Exploited a Business Logic Flaw to Slash Product Prices in

The checkout flow accepted a client-supplied price parameter, allowing an attacker to change the amount paid for a product. The attacker could purchase items at a lower price than intended.

Zyad Ibrahim Follow

Published on medium.com

أَوَلَ� ْ يَعْلَ� ُوا أَنَّ اللَّهَ يَبْسُطُ الرِّزْقَ لِ� َن يَشَاءُ وَيَقْدِرُ ۚ إِنَّ فِي ذَٰلِكَ لَآيَاتٍ لِّقَوْ� ٍ يُؤْ� ِنُونَ [ الز� ر: 52]

Zyad Ibrahim, 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 server trusted the client-supplied price parameter without validating it against the actual product price.

Impact

An attacker could buy products at a reduced price, causing financial loss to the store.

What the attacker needed

A user account; ability to intercept HTTP requests

The fix

The server should validate the price and other critical values on the server side, not relying on client input.

How it was found

  1. Add a product to the cart and go to checkout.
  2. Select PayPal as the payment method and intercept the request.
  3. Modify the price parameter to a lower value.
  4. Forward the request and complete payment at the manipulated 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 buy something online, the price is usually sent from your browser to the server. If the server trusts that price without checking it, you can change it to whatever you want. This report shows someone doing exactly that to pay less for a product.

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 Zyad Ibrahim

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.