Skip to content
Business logic Write-up Beginner

My First Week: 3 Business Logic Bugs in Major E-Commerce

The e-commerce site enforced a minimum order value, free shipping threshold, and promo code conditions only in the frontend or incompletely in the backend. An attacker could bypass these restrictions by directly accessing the checkout page or tampering with requests, potentially obtaining discounts or avoiding fees.

medium.com

Published on medium.com

Last week, I decided to start my journey in Bug Bounty hunting. Instead of looking for complex code vulnerabilities (like RCE or SQLi), I decided to focus on something that requires human thinking: Business Logic Errors 🧠.

Ali Alassaf, 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 did not re-validate the cart total, shipping eligibility, or promo code conditions when processing the checkout request, relying on frontend restrictions or incomplete backend checks.

Impact

The attacker could bypass minimum order value and shipping fee rules, and obtain discounts without meeting conditions, but the reports were closed as informative because financial impact was not proven.

What the attacker needed

A user account on the e-commerce site; ability to intercept HTTP requests (e.g., Burp Suite)

How it was found

  1. Add a cheap item to the cart.
  2. Manually navigate to the checkout payment URL.
  3. Observe that the payment page opens despite the minimum order value.
  4. For the shipping fee bug, repeat the forced browsing to the payment page with a cheap item.
  5. For the promo code bug, add both required items, go to checkout, intercept the request, and remove one item before the server processes it.

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.

The website tried to enforce rules like a minimum order amount or a discount condition, but it only checked them in the browser or not at all on the server. By skipping the normal steps or changing the request, a user could reach the payment page with a cheap item or get a discount without meeting the condition. This is a business logic flaw because the rules can be broken without hacking code.

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.