Skip to content
Business logic Write-up Beginner

The $5,000 Business Logic Bug Everyone Walked Past

The upgrade flow trusted client-supplied values for the target plan and the payment amount, so a user could select Enterprise features while paying for Pro, or alter the amount sent to the server. An attacker could obtain higher-tier features for less money than intended.

medium.com

Published on medium.com

This is my favorite kind of bug because it needs zero “hacking” — no payloads, no injection. Just noticing that the app’s LOGIC doesn’t make sense and poking it.

Nitin yadav, 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 accepted the plan name and payment amount from the client request without validating them against the user's actual selection or the real price.

Impact

A user could obtain Enterprise features while paying for a lower plan, or potentially set the payment amount themselves, causing lost revenue.

What the attacker needed

A free or paid account; ability to intercept HTTP requests

How it was found

  1. Start the upgrade flow as a normal user.
  2. Intercept the upgrade request in a proxy tool.
  3. Change the plan value from the paid tier to a higher tier.
  4. Change the amount field sent by the client.
  5. Forward the request and observe that the higher-tier features are granted.

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, your browser sends details to the server, such as which plan you want and how much you are paying. This app believed whatever the browser said instead of checking it on the server. That meant someone could ask for a more expensive plan or a lower price and the app would accept it.

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.