Tips

Business logic tips

Business logic bugs abuse the application’s rules rather than a technical flaw: negative quantities, skipped steps or prices set by the client. Finding them means understanding what a feature is meant to do.

Published tips, newest first. Payloads and commands are shown as plain text.

  • Test Streamed Content For Sequential Fragments

    When testing a target that streams content, such as videos, look for endpoints that return links to sequential fragments. Try opening these links and verify if they continue where the previous fragment ended. If they do, it may be possible to automate the collection of these fra…

    Business logicDiscovery

  • Validate Business Rules At Every Endpoint

    When testing an application, never assume that restrictions enforced by the user interface are also enforced by the backend. Every endpoint must validate business rules independently. To find business logic vulnerabilities, try to bypass restrictions by manipulating requests to…

    Business logicDiscovery

Business logic: how to hunt it

Where to look

  • Prices, quantities, discounts and currencies sent by the client and trusted by the server.
  • Multi-step flows whose steps can be skipped, repeated or taken out of order.
  • Free trials, referrals and coupons that can be stacked or reused.
  • Assumptions about who can act when, such as invited users acting before they accept.

What proves it

State the intended rule, then show the requests that break it and the concrete gain, such as an order at the wrong price on your own account, cancelled before it ships.

Read further

Writeups on Business logic, by hunters and researchers, most with a short summary.