Business Logic Flaws Explained: The Bug No Scanner Can Find


Most bug bounty hunters chase the same vulnerabilities: SQL injection, XSS, SSRF. Scanners hunt those too, which is why the easy ones are gone. But there is a class of bug no scanner can find, because it is not a coding mistake — it is a thinking mistake. Business logic flaws happen when an application works exactly as programmed, but the program's logic itself is wrong.

What Is a Business Logic Flaw?

Every application has rules about how it should behave: a price can never be negative, a user can only see their own orders, a coupon can only be used once. A business logic flaw breaks one of those rules in a way the developers never imagined. The code runs perfectly. The outcome is wrong — and often profitable for the attacker.

Classic Examples

  • Price manipulation. A shopping cart calculates the total on the client side, or trusts a price parameter sent by the browser. Change the price to $0.01 in the request, and the server charges you a cent. This exact bug has paid out real bounties on real stores.
  • Quantity games. Order -1 items and the refund logic adds money to your account. Buy one, apply a "buy one get one free" coupon ten times, and get eleven items for the price of one.
  • Race conditions in the real world. Two requests to redeem the same gift card arrive at the same instant, and both succeed because the balance check happens before either one deducts the amount. We covered race conditions in an earlier post — business logic is where they pay off.
  • Workflow skipping. A checkout flow has steps: cart → shipping → payment → confirm. Skip the payment step by requesting the confirm URL directly, and the order ships unpaid. Developers assume users follow the flow; attackers do not.
  • Broken limits. A password reset code is 4 digits, but there is no rate limit and no expiry. Try all 10,000 combinations, and one of them works. The code is not weak — the process is.

Why Scanners Miss Them

A scanner knows what SQL injection looks like: a quote breaks a query. It has no idea what your application is supposed to do. It cannot know that a negative quantity is wrong, or that a coupon should not stack, or that step three must come after step two. Business logic lives in the application's purpose, and only a human reading the flow can spot when it breaks.

That is exactly why these bugs pay well. Companies know scanners will not find them, so they reward the hunters who do.

How to Hunt for Them (Legally)

  1. Map the flow first. Before touching a single parameter, click through the entire process as a normal user. Write down every step, every state change, and every assumption the app makes.
  2. Ask "what if" at every step. What if I go back a step? What if I skip a step? What if I repeat a step? What if I change the order?
  3. Test the boundaries. Zero, negative numbers, huge numbers, duplicate submissions, two tabs at once. The edges are where logic breaks.
  4. Think like a user, not a hacker. The best business logic bugs are found by people who understand how the feature is supposed to work — and then do something the developers never expected a user to do.

The Rules That Keep You Safe

Only test applications with a public bug bounty program or written permission, and stay strictly inside the published scope. Never use a logic flaw to actually steal money, goods, or data — even "to prove it works". Report it, collect the bounty, and move on. Testing without permission is illegal in most countries, and a shopping cart bug is not worth a criminal record.

The Bottom Line

Technical vulnerabilities get patched and scanners get smarter. But applications keep getting more complex, and every new feature brings new rules — and new ways to break them. If you can read a workflow and spot the assumption nobody questioned, you have a skill no tool can replace. That is where the real bounties live.

Comments

Popular Posts