main logo icon

Published on

December 5, 2026

|

24 min read

Business Logic Vulnerabilities (2026): Examples, Why Scanners Miss Them and How to Test

Business logic vulnerabilities explained for security and engineering leads: nine classes with textbook examples, why scanners and AI agents miss them, how penetration testers test each one, and the fix for each, mapped to OWASP WSTG, ASVS 5.0 and CWE.

Arafat Afzalzada

Arafat Afzalzada

Founder

Web App Security

Summarize with AI

ChatGPTPerplexityGeminiGrokClaude

TL;DR

Business logic vulnerabilities are flaws in how an application enforces its own rules: prices, limits, approvals, ownership and the order of a workflow. Every request looks valid, which is why the OWASP Web Security Testing Guide says this type of vulnerability "cannot be detected by a vulnerability scanner". The common classes are price and quantity tampering, trust in client-side state, workflow step skipping, coupon and limit abuse, race conditions on one-time actions, role and tenant boundary assumptions, refund and transfer flaws, unrestricted access to sensitive business flows (OWASP API6:2023) and timing and expiry gaps. A penetration tester finds them by writing down the rule that must hold, running controlled misuse cases with two or more accounts and checking the final state of the order, balance or record, not the HTTP status code. The fix is almost always the same shape: keep the authoritative state on the server, enforce each step and limit there, and make every check and the update that depends on it one atomic operation. Section V2.3 of OWASP ASVS 5.0 lists the verification requirements. Stingrai's Hybrid Pentest puts Snipe, Stingrai's autonomous agent, across the full application while certified penetration testers test the same application manually alongside it. It is US$6,800 per assessment or US$1,275 per month on a 12-month engagement, for one web application and associated APIs.

Business logic vulnerabilities are flaws in how an application enforces its own rules: prices, limits, approval steps, ownership and the order of a workflow. Each request looks valid, so the application returns success while the business loses money, data or control, which is why OWASP says a vulnerability scanner cannot detect them.

Quick answer. A business logic vulnerability lets a user reach an outcome the business never intended through requests the application accepts as normal: a negative quantity that lowers a basket total, a coupon redeemed twice, a payment step skipped, a refund larger than the charge. The OWASP Web Security Testing Guide says this type of vulnerability "cannot be detected by a vulnerability scanner and relies upon the skills and creativity of the penetration tester". Testing means stating the rule, running controlled misuse cases across roles and checking the final state. Stingrai's web application penetration testing covers workflow order, state changes, limits, pricing, approvals and race conditions on one-time actions across every user role in scope.

This guide is for the security lead, engineering manager or IT director who needs to know what these flaws look like in a real product, why the tools already in the pipeline do not report them and what a penetration test should prove. It walks through nine classes with a generic example each, the reason scanners miss it, how a tester checks for it and the fix, and maps every class to the OWASP and MITRE entries a developer or auditor will recognize. If you are writing the scope for an engagement rather than learning the classes, the companion guide on business logic penetration testing covers roles, fixtures, safe limits and the evidence to ask for.

What is a business logic vulnerability?

A business logic vulnerability is a gap between what an application technically allows and what the business intended it to allow. The code runs without errors, the input passes format validation and the response is a success, yet the result breaks a rule: an order ships unpaid, a discount applies twice, an approver signs off their own request.

Three primary sources describe the category in slightly different terms:

  • OWASP Web Security Testing Guide (WSTG) v4.2. The chapter's introduction to business logic testing calls these flaws "usually one of the hardest to detect, and usually application specific but, at the same time, usually one of the most detrimental to the application, if exploited". Its opening example is an authentication flow designed as steps 1, 2 and 3: "What happens if the user goes from step 1 straight to step 3?"

  • MITRE CWE-840, Business Logic Errors. CWE-840 is a grouping, not a weakness, and its vulnerability mapping is marked "PROHIBITED": MITRE asks analysts to "perform root cause analysis to determine what mistake led to the logic error" and map to a specific member. In CWE 5.0, released on 28 October 2026, the grouping has eight members, including CWE-841 (Improper Enforcement of Behavioral Workflow), CWE-837 (Improper Enforcement of a Single, Unique Action) and CWE-639 (Authorization Bypass Through User-Controlled Key).

  • OWASP Top 10:2025, A06 Insecure Design. The A06 entry "includes flaws in the business logic of an application, e.g. the lack of defining unwanted or unexpected state changes inside an application". The category maps 39 CWEs, with 729,882 occurrences and 7,647 CVEs in OWASP's data, and it states the design point plainly: "An insecure design cannot be fixed by a perfect implementation."

Business logic overlaps with access control. A user in one tenant reading another tenant's invoice by changing an ID is an IDOR vulnerability, and the weakness behind it, CWE-639, is also a member of the CWE-840 grouping. The practical difference is the question the tester asks: access control asks "may this user touch this object or function?", while business logic asks "may this action happen now, in this order, this many times, for this amount?". Both need a human to know the rule. For the authorization side in depth, see broken access control.

Business logic vulnerabilities at a glance

The table below is Stingrai's summary of the nine classes this guide covers. The examples are generic and the fixes are drawn from OWASP's remediation guidance; no single standard prescribes this table.

Class

Example

Why scanners miss it

How a tester checks

Fix

Price and quantity tampering

A negative or fractional quantity lowers the basket total

The request is well formed and returns success

Varies quantities and amounts on a test order, then reads the stored total

Price on the server from item IDs and quantities; enforce ranges

Trust in client-side state

A hidden field or extra JSON property sets a discount, role or approval flag

Hidden and read-only fields look like any other parameter

Changes values the interface never lets a user edit and checks what the server kept

Keep authoritative values server-side; allow-list writable fields per action

Workflow step skipping

An order reaches "confirmed" without passing the payment step

Each step is valid on its own; crawlers follow the happy path

Calls later steps directly or out of order and checks the final state

A server-side state machine that checks the current state at every step

Coupon and limit abuse

A one-per-customer coupon applies twice, or a monthly quota resets on a new session

A second success looks identical to the first

Repeats the action within an agreed count, across sessions and accounts

Enforce per-user and global limits in the database, not the browser

Race conditions on one-time actions

Two simultaneous redemptions of one gift card both succeed

Needs concurrent requests and a rule to judge the result

Sends a small agreed burst on test accounts and reconciles balances

Make the check and the update one atomic operation; idempotency keys

Role and tenant boundary assumptions

A requester approves their own request, or one tenant reads another's record

Every response is 200 OK; there is no second account to compare

Replays each request as other roles and tenants and compares outcomes

Check function, object and tenant permission on the server for every request

Refund, transfer and reversal flows

A transfer where source equals destination adds value; points survive a cancellation

Only someone who knows how money should net out can see it

Runs controlled refunds, transfers and cancellations and reconciles the ledger

Transactions that commit in full or roll back; checks at confirmation too

Unrestricted access to sensitive business flows

A script holds every appointment slot or buys all limited stock

Each request is legitimate; the harm is in volume and pattern

Identifies sensitive flows and checks per-account and aggregate limits with a small sample

Per-user and global limits, hold expiry and non-human pattern detection

Timing and expiry gaps

A price lock or seat hold never expires; an approval is used after it lapsed

Needs waiting and knowledge of the intended window

Delays steps past the documented window and checks what still succeeds

Timeouts, and revalidation at the final step

Business logic vulnerability examples, class by class

Each example below is a textbook illustration of the kind OWASP uses, not a description of a specific product. Testing any of them on a live system needs written authorization, test accounts and agreed limits.

1. Price and quantity tampering

Example. A basket accepts a quantity of minus one, or a decimal such as 0.1, and the backend multiplies it through to the total. The in-development edition of the WSTG puts it directly: "adding negative quantities of an item may result in a negative value, reducing the overall cost of the basket" (WSTG-BUSL-10, Payment Functionality). A related form is a price or currency value that travels from the browser and is trusted on the server.

Why it is missed. The input is syntactically valid. WSTG-BUSL-01 separates this from boundary checks: business data validation "in most cases cannot be simply verified at the entry point, but usually requires checking some other system". A scanner sees a 200 response and a well-formed order.

How a tester checks. On a test order, the tester varies quantities and amounts that the interface constrains (negative, zero, fractional, very large) and then reads the order the server stored, the invoice and the ledger entry, not the confirmation page.

Fix. The in-development WSTG-BUSL-10 remediation for payment flows: "The only things included in client-side requests should be item IDs and quantities." Compute prices, discounts and totals on the server, validate quantity ranges, and check that combined values are reasonable, which ASVS 5.0 requirement 2.2.3 asks for. The matching weakness is CWE-1284, Improper Validation of Specified Quantity in Input.

2. Trust in client-side state

Example. A form carries a hidden field for the discount rate, a disabled drop-down for the account tier, or an API accepts an isApproved property it never shows in the interface. The value the browser sends is the value the server stores.

Why it is missed. WSTG-BUSL-03 explains that such fields "remain non-editable only in the context of the browsers". To a scanner they are ordinary parameters. WSTG-BUSL-02 adds the related risk of forged requests that reach "hidden" features "such as enabling debugging".

How a tester checks. The tester submits values the interface never lets a user change, adds properties the documentation does not list, and confirms what the server persisted and acted on.

Fix. The WSTG says that if a business value such as quantity is shown as non-editable, the application "must maintain a copy on the server-side and use the same for business logic processing". ASVS 5.0 requirement 8.3.1 asks that authorization rules run "at a trusted service layer", and 15.3.3 asks for mass assignment countermeasures "by limiting allowed fields per controller and action". The weaknesses are CWE-602 (Client-Side Enforcement of Server-Side Security), CWE-472 (External Control of Assumed-Immutable Web Parameter) and CWE-915 for mass assignment.

3. Workflow step skipping

Example. Checkout runs cart, shipping, payment, confirmation. The confirmation endpoint marks the order paid and releases fulfilment without checking that a payment was authorized for this order. A user who calls it directly receives the goods.

Why it is missed. Each step is a legitimate endpoint. A crawler follows the order the interface presents, and nothing in the response says a step was skipped. WSTG-BUSL-06 says these flaws are "very application/system specific and careful manual misuse cases must be developed using requirements and use cases".

How a tester checks. The tester maps the intended sequence, then calls later steps first, repeats steps, goes backwards after a value is fixed, and abandons a flow midway to see what stays applied.

Fix. A server-side state machine: each step checks the current state of the record before acting. The WSTG's remediation asks the application to "prevent attackers from circumventing/skipping/or repeating any steps/processes in the workflow", and to roll back anything an incomplete workflow spawned. ASVS 5.0 requirement 2.3.1, a Level 1 control, asks that flows run "in the expected sequential step order and without skipping steps". The weakness is CWE-841, whose definition covers behaviors not performed "in the required sequence or timeframe".

4. Coupon, promotion and limit abuse

Example. A welcome coupon is meant to be used once per customer. It is marked used in the browser session, so a new session, a second account or a return to the discount page applies it again. The WSTG's own examples are a discount allowed "once per transaction" and a subscription that allows "three complete documents monthly".

Why it is missed. The second redemption returns exactly what the first did. Nothing distinguishes an allowed success from a disallowed one except the rule.

How a tester checks. Within an agreed count, the tester repeats the action in the same session, a new session and a second test account, and checks the counter the server keeps.

Fix. WSTG-BUSL-05 recommends "setting a coupon to be no longer valid on the database level" and "a counter limit per user on the back end or database level". ASVS 5.0 requirement 2.1.3 asks that limits be documented "both per-user and globally across the application", and 2.3.2 that they be implemented as documented. The weakness is CWE-837.

5. Race conditions on one-time actions

Example. A gift card balance is checked, then debited, in two separate operations. Two redemption requests that arrive together both pass the check before either debit lands, so the card pays twice. The same window exists for withdrawals, referral bonuses, invitation quotas and approvals that should happen exactly once.

Why it is missed. A race only shows when requests overlap and someone reconciles the result against the rule, which a scan that sends one request at a time never does. The in-development WSTG lists where races hurt most, including "State transitions that should happen exactly once (account activation, approval workflows, role changes)", and notes that older guidance treated many windows as too small to exploit over the internet until "Two techniques changed that". A narrow window is no longer a reason to rule a race out.

How a tester checks. On test accounts, the tester sends a small, agreed burst of the same request (the WSTG suggests keeping bursts small, "for example 20 to 30 requests") and reconciles balances, records and emails afterwards.

Fix. The in-development WSTG-BUSL-10 remediation is to make "each check and the update that depends on it a single atomic operation": conditional updates that check affected rows, row-level or optimistic locking, uniqueness enforced by database constraints, and idempotency keys "for state-changing requests and payment callbacks". ASVS 5.0 requirement 15.4.2 asks for the same atomicity to prevent time-of-check to time-of-use races, and 2.3.4 for locking so limited resources "cannot be double-booked". The weaknesses are CWE-362 and CWE-367.

6. Role and tenant boundary assumptions

Example. An expense tool lets the person who submitted a claim approve it, because the approve endpoint checks only that the caller holds the approver role, not that the caller is someone other than the requester. In a multi-tenant product, an export endpoint trusts the organization ID in the request body.

Why it is missed. The responses are normal. A scanner logged in as one user has no second user or tenant to compare against, and no idea that separation of duties is a rule.

How a tester checks. The tester holds at least two accounts per role and two tenants, replays each sensitive request as each of them, and compares what changed. The method is covered in depth in the IDOR vulnerability guide.

Fix. Check function-level, object-level and tenant-level permission on the server for every request. ASVS 5.0 requirements 8.2.1 and 8.2.2 cover function and data access, 8.4.1 asks for cross-tenant controls so operations "will never affect tenants with which they do not have permissions to interact", and 2.3.5, a Level 3 control, asks that high-value flows "require multi-user approval". The weaknesses are CWE-639 and CWE-283 (Unverified Ownership).

7. Refund, transfer and reversal flows

Example. The in-development WSTG lists several: a transfer whose "source of the transfer is equal to the destination" that "may result in simply adding value to the account"; a two-step payment where the daily limit is checked at initiation but not at confirmation; a bulk payment whose total is positive while one line is negative. The stable WSTG adds loyalty points that stay on an account after the purchase that earned them is cancelled. A refund larger than the original charge belongs here too.

Why it is missed. Every individual operation is valid. The flaw is in how the operations net out, which only someone who knows the accounting rule can see.

How a tester checks. With test accounts and an agreed ceiling, the tester runs refunds, partial refunds, transfers, reversals and cancellations in different orders, then reconciles the ledger against what the business says should have happened.

Fix. The in-development WSTG-BUSL-10 asks that checks such as "daily limits or balance validations" run during the confirmation phase as well as initiation. ASVS 5.0 requirement 2.3.3 asks that a business operation "succeeds in its entirety or it is rolled back to the previous correct state". For money movement, multi-user approval of high-value actions (ASVS 2.3.5) and a reconciliation job that flags impossible balances add a second line of defense.

8. Unrestricted access to sensitive business flows

Example. A script reserves every appointment slot, or buys all of a limited product within seconds of release. OWASP's API6:2023 describes an airline scenario where one user books 90% of a flight's seats with no cancellation fee, cancels them days before departure and buys one ticket at the discounted price.

Why it is missed. API6 states that an endpoint "is vulnerable if it exposes a sensitive business flow, without appropriately restricting the access to it", and that "in general technical impact is not expected". There is no error to detect. The in-development WSTG-BUSL-11, Denial of Inventory adds that allocation abuse can deny legitimate customers "while the application continues to respond normally", and that "a small number of requests may be sufficient".

How a tester checks. With the owner, the tester identifies which flows would harm the business if used excessively, then checks per-account and aggregate limits and hold expiry using a small sample, extrapolating impact rather than exhausting real inventory.

Fix. API6 splits mitigation into a business layer (identify the flows that hurt if over-used) and an engineering layer: device fingerprinting, human detection, detection of non-human patterns such as reaching "add to cart" and "complete purchase" in "less than one second", and tighter controls on machine-consumed APIs. ASVS 5.0 requirements 2.4.1 and 2.4.2 cover anti-automation and "realistic human timing". The weaknesses are CWE-770 and CWE-799.

9. Timing and expiry gaps

Example. A ticketing site locks seats while a customer pays, but the lock never expires, so a held session blocks inventory indefinitely. A quote's fixed price is honored after its window closes. An approval granted last month is used to release a payment today.

Why it is missed. The test requires waiting, and knowing what the intended window is. WSTG-BUSL-04 says these "manual misuse cases should be created considering execution and transaction timing that are application/system specific".

How a tester checks. The tester holds or delays each time-bound step past its documented window and checks whether the final step still succeeds, and from a second session whether the held resource was released.

Fix. The WSTG recommends "canceling or resetting transactions after a specified amount of time has passed", and the final step should revalidate any time-bound condition rather than trust the state captured when the flow began.

Where business logic flaws sit in a typical workflow

The diagram below follows one order from cart to refund and marks the server-side check each step needs. It is an editorial illustration built from the OWASP examples above.

Business logic flaws in an order and refund workflow

Figure 1: Where business logic classes break in an order and refund workflow, with the server-side check each step needs. Sources: OWASP WSTG v4.2, Business Logic Testing and OWASP WSTG Latest, WSTG-BUSL-10 and OWASP ASVS 5.0.0.

Why do vulnerability scanners miss business logic vulnerabilities?

Scanners miss business logic flaws because they have no oracle for the rule. A scanner decides that something is wrong by matching a signature: an error message, a reflected payload, a version string, a response time. A business logic flaw produces none of those. The WSTG says testing tools "are incapable of detecting logical vulnerabilities", and that they "have no means of detecting if a user is able to circumvent the business process flow through editing parameters, predicting resource names or escalating privileges". MITRE makes the same point about code analysis: such issues "might not be easily detectable via automatic code analysis, because the associated operations do not produce clear errors or undefined behavior at the code level".

In Stingrai's view, four things block automated detection, and each one maps to a class above:

  • No statement of intent. A tool cannot know that one coupon per customer is the rule, or that the requester may not approve their own claim. The WSTG's advice to third-party testers is to "ask the business if different operations should be allowed".

  • No second identity. Most role and tenant flaws only show when the same request is replayed as another user and the outcomes compared. Unauthenticated or single-account scans never make that comparison.

  • No concurrency. Races need overlapping requests and a reconciliation afterwards. Sequential scanning cannot see them.

  • No view of the final state. The flaw lives in the ledger, the order record or the next month's quota, not in the HTTP response the scanner reads.

That is why OWASP's guide concludes that "Automation of business logic abuse cases is not possible and remains a manual art relying on the skills of the tester and their knowledge of the complete business process and its rules." Static analysis, dynamic scanning and dependency checks remain worth running; they cover different classes. For a side-by-side of what dynamic scanners and penetration tests each find, see DAST vs penetration testing.

Can AI agents find business logic vulnerabilities?

Partly, and in Stingrai's view the answer depends on whether the agent has the rule and a way to check the outcome. The WSTG's statement that automation "is not possible" predates today's AI agents: v4.2 was released in December 2020, and the tools it lists are intercepting proxies, browser plug-ins and other browser extensions. In Stingrai's view, AI agents change part of that picture because they can follow a workflow, hold several identities and reason about what a page is for.

In Stingrai's view, the published evidence is still thin. A December 2025 study from Stanford, Carnegie Mellon and Gray Swan AI (arXiv:2512.09882, revised March 2026) found that its agent "placed second overall" on a university network and outperformed "9 of 10 human participants". The same study reports that the agent "is also more prone to false positives than humans" and that "a key limitation is its inability to interact with browsers via GUI". The setting was a network, not a single web application, so treat it as evidence about agents and people in general.

Where agents help (Stingrai's view). Business logic testing has a large mechanical component: enumerating every role pair for every sensitive request, replaying each step out of order, repeating one-time actions, varying quantities across ranges, and doing it again after every release. Agents do that breadth well and do not get bored. Snipe, Stingrai's autonomous agent for web applications and associated APIs, "maps pages, API endpoints, parameters, user roles and application workflows" and its specialized agents test "authentication, access control, business logic and injection" in parallel. Its business logic coverage includes "missing validation, repeatable transactions and server-side decisions that rely on client-controlled data".

Where agents struggle (Stingrai's view). An agent can infer that a coupon should probably work once, but it cannot know that a refund above the original charge is allowed for one customer segment and forbidden for another, that the approval threshold differs by region, or that a fulfilment event three systems away is the real harm. It also cannot judge, without a person, how far a test may go before it creates a real obligation. Those are the cases where the WSTG's advice to "have the client walk the tester through the application" and keep "a direct line to the developers" still decides the result.

Stingrai's conclusion for a buyer is that agent breadth and human judgment are complements on this class. That is the design of hybrid testing, covered below.

How do penetration testers test for business logic vulnerabilities?

A business logic test starts from the rule, not the endpoint. The steps below are Stingrai's method, built on the WSTG's guidance that misuse cases are "developed using requirements and use cases".

  1. Write the invariants. For each flow that moves money, grants access, releases data or changes an obligation, state the rule that must always hold: "a refund never exceeds the captured amount", "the requester cannot approve their own claim", "a coupon applies once per customer".

  2. Map state and role together. List every state a record can be in and every role and tenant that can act on it. Most findings sit where a state and a role meet unexpectedly.

  3. Prepare identities and fixtures. At least two accounts per role, two tenants where the product is multi-tenant, test payment methods and records that can be reversed.

  4. Walk the happy path with the owner. Record each request, the state change it causes and the system that holds the final truth.

  5. Run controlled misuse cases. Skip, repeat and reorder steps; change values the interface constrains; replay as other roles and tenants; overlap one-time actions in small bursts; let time-bound steps lapse.

  6. Check the final state. Read the order, ledger, quota or audit record after each case. A 200 response proves nothing on its own; a changed balance does.

  7. Report the violated rule. Each finding names the invariant, the role and state, the observed outcome, the specific CWE (not CWE-840, which MITRE prohibits for mapping) and the fix, with request and response evidence.

  8. Retest the same case after the fix, including the alternate routes (API, mobile client, background job) that reach the same decision.

Safe operating limits matter more here than in most testing, because business logic tests can create real orders, refunds and notifications. Agree on test accounts, financial ceilings, burst sizes and a rollback owner before work starts. The business logic penetration testing scope guide covers those rules of engagement and the evidence to ask for in detail.

How do you fix and prevent business logic vulnerabilities?

Most fixes follow one pattern: the server owns the state, enforces the rule at the moment the action takes effect, and does it atomically. The checklist below is Stingrai's guidance drawn from the OWASP sources cited in each line; no single standard sets it out as a list.

  • Document the rules first. ASVS 5.0 requirement 2.1.3 asks that business logic limits be documented "both per-user and globally across the application". A rule nobody wrote down cannot be tested or enforced consistently.

  • Keep authoritative values on the server. Prices, totals, roles, flags and quotas are computed or looked up on the server; the client sends identifiers and quantities only (WSTG-BUSL-03 and -10).

  • Model workflows as state machines. Each transition checks the current state of the record (ASVS 2.3.1) and incomplete flows roll back (WSTG-BUSL-06, ASVS 2.3.3).

  • Make check-then-act atomic. Conditional updates, row locks or optimistic locking, database uniqueness constraints and idempotency keys (WSTG-BUSL-10, ASVS 15.4.2 and 2.3.4).

  • Enforce limits in the database, per user and globally. Single-use codes are consumed in the same operation that reads them (WSTG-BUSL-05 and -10).

  • Check permission on every request, for every tenant. Function, object and tenant checks run server-side on each call (ASVS 8.2.1, 8.2.2, 8.4.1).

  • Require a second person for high-value actions. Large transfers and contract approvals need multi-user approval (ASVS 2.3.5).

  • Protect sensitive flows from automation. Identify them with the business, then add per-account and aggregate limits, hold expiry and non-human pattern detection (API6:2023, ASVS 2.4.1).

  • Write misuse cases as tests. OWASP's A06 guidance asks teams to "write unit and integration tests to validate that all critical flows are resistant to the threat model" and to "compile use-cases and misuse-cases for each tier". Each confirmed finding becomes a regression test.

  • Detect misuse. WSTG-BUSL-07 warns that "the lack of active defenses allows an attacker to hunt for vulnerabilities without any recourse". Alert on impossible states (negative balances, duplicate redemptions, approvals by the requester) as well as on request patterns.

Which standards cover business logic testing?

Business logic has its own chapter in each of the main OWASP references, a CWE grouping and a line in PCI DSS. The map below shows which entry covers each class.

Business logic classes mapped to OWASP WSTG, ASVS 5.0 and CWE

Figure 2: Business logic vulnerability classes mapped to OWASP WSTG tests, OWASP ASVS 5.0 requirements and MITRE CWE entries. Sources: OWASP WSTG v4.2, OWASP ASVS 5.0.0 and MITRE CWE-840.

  • OWASP WSTG v4.2, section 4.10. The stable edition has nine tests: WSTG-BUSL-01 Test Business Logic Data Validation, -02 Test Ability to Forge Requests, -03 Test Integrity Checks, -04 Test for Process Timing, -05 Test Number of Times a Function Can Be Used Limits, -06 Testing for the Circumvention of Work Flows, -07 Test Defenses Against Application Misuse, -08 Test Upload of Unexpected File Types and -09 Test Upload of Malicious Files. The in-development edition, which OWASP says "may frequently change", adds WSTG-BUSL-10 Payment Functionality and WSTG-BUSL-11 Denial of Inventory.

  • OWASP ASVS 5.0.0 (May 2025), chapter V2 Validation and Business Logic. Its control objectives include that "The business logic flow is sequential, processed in order, and cannot be bypassed". Section V2.3 Business Logic Security holds requirements 2.3.1 to 2.3.5; V2.4 covers anti-automation.

  • MITRE CWE-840. A grouping for navigation only; map findings to its members or to the specific root cause.

  • OWASP API Security Top 10 2023, API6. Unrestricted Access to Sensitive Business Flows, the automation and volume side of business logic for APIs.

  • OWASP Top 10:2025, A06 Insecure Design. Business logic flaws sit inside this category, which slid from #4 to #6 in the 2025 edition.

  • PCI DSS v4.0.1. Requirement 6.2.4 asks that software engineering techniques prevent or mitigate "Attacks on business logic, including attempts to abuse or bypass application features and functionalities through the manipulation of APIs, communication protocols and channels, client-side functionality, or other system/application functions and resources", and Requirement 11.4.1 asks for "Application-layer penetration testing to identify, at a minimum, the vulnerabilities listed in Requirement 6.2.4" (PCI DSS v4.0 SAQ D; the PCI SSC states that v4.0.1 added or deleted no requirements). For an in-scope payment application, business logic therefore belongs in the application-layer penetration test.

Why hybrid testing fits business logic

Business logic testing needs two things at once: breadth across every role, state and step, and judgment about which outcomes break a rule. The Hybrid Pentest is built for that combination. Snipe tests the full application, mapping workflows and running repeatable misuse cases across roles, while Stingrai's certified penetration testers test the same application manually alongside it and validate Snipe's findings. The testers bring the rule from the client walkthrough, chain findings and take the cases that need context further; Snipe works through role pairs and step orders systematically. Coverage is wider and deeper than either alone, and it is not a split of test classes. On Stingrai's web application penetration testing page, the business logic scope reads: "Workflow order, state changes and skipped steps", "Limits, quotas, pricing, discounts and approvals", "Race conditions on balances and one-time actions" and "Features abused in ways their design allows".

Option

What you get

Price (stingrai.io/pricing, read 5 December 2026)

Hybrid Pentest, one-time

Snipe and penetration testers on the same application throughout; human-validated report and attestation letter; 12 monthly Snipe scans after the pentest

US$6,800 per assessment, for one web application and associated APIs

Hybrid Pentest, continuous

Monthly Snipe testing, human-verified, plus a quarterly deep dive by Stingrai's penetration testers

US$1,275 per month on a 12-month engagement, for one web application and associated APIs

Why continuous testing matters for this class. Business logic changes every time the product does. A new pricing tier, a referral program, a self-serve refund or a new approver role each adds rules nobody has tested, and OWASP's own guidance says the misuse cases must be built from those requirements. OWASP's A06 entry adds that an insecure design "cannot be fixed by a perfect implementation"; in Stingrai's view, that is why pipeline scans and code review, which check the implementation, rarely see the gap a new feature's design opens. The in-development WSTG also records that techniques now built into common testing tools make many races once dismissed as too small "reliable to reproduce". On a continuous plan, Snipe tests the application every month with human verification, and Stingrai's penetration testers return each quarter for a deep dive. A stable application with an annual audit is well served by the one-time assessment. Either way, every engagement comes with an attestation letter, and Stingrai's testing produces evidence for SOC 2, ISO 27001, PCI DSS and HIPAA programs.

Anything larger than one web application and associated APIs, and enterprise programs with several applications, are scoped through Get a Quote. For how hybrid engagements work end to end, see hybrid penetration testing, and for how providers compare, see web application penetration testing services.

Stingrai is a global CREST-accredited penetration testing services company founded in Toronto, Canada in 2021, trusted by companies from startups to enterprises to meet audit requirements for SOC 2, ISO 27001, CMMC, PCI DSS and HIPAA. OSCE³, OSWE, OSEP, CREST CRT certified penetration testers, who are also world-class security researchers and bug bounty hunters. Choose from fully human-led or hybrid (AI agents plus human penetration testers) engagements across web, API, mobile, AI and LLM, cloud, network, Active Directory and social engineering penetration tests and red team engagements.

Frequently Asked Questions

What is a business logic vulnerability?

A business logic vulnerability is a flaw in how an application enforces its own rules, such as prices, limits, approval steps, ownership or the order of a workflow. Each request looks valid and the application returns success, but the result breaks a rule the business intended, for example a coupon applied twice or an order confirmed without payment. MITRE groups these weaknesses under CWE-840, Business Logic Errors.

What are examples of business logic vulnerabilities?

Common examples are a negative or fractional quantity that lowers a basket total, a hidden field that sets a discount or role, an order confirmed without the payment step, a one-time coupon redeemed twice, two simultaneous gift card redemptions that both succeed, a requester approving their own request, a transfer to the same account that adds value, a script that holds every appointment slot, and a seat hold or price lock that never expires.

Can a vulnerability scanner find business logic vulnerabilities?

No. The OWASP Web Security Testing Guide says this type of vulnerability "cannot be detected by a vulnerability scanner and relies upon the skills and creativity of the penetration tester". Scanners match signatures such as errors and reflected input, and a business logic flaw produces none: the response is a normal success, and only someone who knows the rule and checks the final state can see the problem.

Can AI agents find business logic vulnerabilities?

Partly. In Stingrai's view, agents are good at the mechanical breadth business logic testing needs: replaying every sensitive request across roles, reordering steps, repeating one-time actions and doing it again after each release. They struggle where the rule is specific to the business or the harm shows up in another system. Stingrai's Hybrid Pentest pairs Snipe, its autonomous agent, with certified penetration testers on the same application for that reason.

How do you test for business logic vulnerabilities?

Write down the rule that must always hold for each flow that moves money, grants access or releases data, map every state against every role and tenant, then run controlled misuse cases with test accounts: skip, repeat and reorder steps, change values the interface constrains, replay requests as other users, overlap one-time actions and let time-bound steps lapse. Check the final record or balance after each case, not the HTTP status code.

How do you fix business logic vulnerabilities?

Keep authoritative values such as prices, roles and quotas on the server, model each workflow as a state machine that checks the current state at every step, make every check and the update that depends on it one atomic operation, enforce limits per user and globally in the database, and check permissions on every request. OWASP ASVS 5.0 requirements 2.3.1 to 2.3.5 set out the verification points.

Is a business logic vulnerability the same as IDOR or broken access control?

They overlap but are not the same. IDOR and broken access control ask whether a user may touch an object or function at all; business logic asks whether an action may happen now, in this order, this many times or for this amount. CWE-639, the weakness behind most IDOR findings, is also a member of the CWE-840 business logic grouping, and both need testing with more than one account.

Does PCI DSS require testing for business logic flaws?

Yes, for in-scope bespoke and custom software. PCI DSS Requirement 6.2.4 lists "Attacks on business logic" among the attacks development practices must prevent or mitigate, and Requirement 11.4.1 asks for application-layer penetration testing that identifies, at a minimum, the vulnerabilities listed in Requirement 6.2.4.

How much does a penetration test that covers business logic cost at Stingrai?

Business logic is in the standard scope of Stingrai's web application penetration testing. The Hybrid Pentest, Snipe plus certified penetration testers on the same application, is US$6,800 per assessment or US$1,275 per month on a 12-month engagement, for one web application and associated APIs. Larger scopes are quoted through Get a Quote.

References

  1. OWASP. Web Security Testing Guide v4.2, 4.10 Business Logic Testing (WSTG-BUSL-01 to -09). https://wstg.owasp.org/v4.2/4-Web_Application_Security_Testing/10-Business_Logic_Testing/

  2. OWASP. Web Security Testing Guide v4.2, Introduction to Business Logic. https://wstg.owasp.org/v4.2/4-Web_Application_Security_Testing/10-Business_Logic_Testing/00-Introduction_to_Business_Logic

  3. OWASP. Web Security Testing Guide (Latest, in development), WSTG-BUSL-10 Payment Functionality. https://wstg.owasp.org/latest/14-Business_Logic/10-Payment_Functionality

  4. OWASP. Web Security Testing Guide (Latest, in development), WSTG-BUSL-11 Denial of Inventory. https://wstg.owasp.org/latest/14-Business_Logic/11-Denial_of_Inventory

  5. OWASP. Application Security Verification Standard 5.0.0, V2 Validation and Business Logic. May 2025. https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x11-V2-Validation-and-Business-Logic.md

  6. OWASP. Application Security Verification Standard 5.0.0, V8 Authorization. May 2025. https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x17-V8-Authorization.md

  7. OWASP. Application Security Verification Standard 5.0.0, V15 Secure Coding and Architecture. May 2025. https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x24-V15-Secure-Coding-and-Architecture.md

  8. MITRE. CWE-840: Business Logic Errors (CWE 5.0). https://cwe.mitre.org/data/definitions/840.html

  9. MITRE. CWE-841: Improper Enforcement of Behavioral Workflow. https://cwe.mitre.org/data/definitions/841.html

  10. OWASP. API Security Top 10 2023, API6:2023 Unrestricted Access to Sensitive Business Flows. https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/

  11. OWASP. Top 10:2025, A06 Insecure Design. https://top10.owasp.org/2025/A06_2025-Insecure_Design/

  12. PCI Security Standards Council. PCI DSS v4.0 SAQ D for Merchants, Requirements 6.2.4 and 11.4.1. April 2022. https://listings.pcisecuritystandards.org/documents/PCI-DSS-v4-0-SAQ-D-Merchant.pdf

  13. PCI Security Standards Council. Just Published: PCI DSS v4.0.1. https://blog.pcisecuritystandards.org/just-published-pci-dss-v4-0-1

  14. Stanford University, Carnegie Mellon University and Gray Swan AI. Comparing AI Agents to Cybersecurity Professionals in Real-World Penetration Testing. arXiv:2512.09882, v2 March 2026. https://arxiv.org/abs/2512.09882

Talk to Stingrai

Stingrai's penetration testers and Snipe can test your workflows, limits and approvals across every role in one engagement, one-time or continuous. Get a Quote or book a free discovery call to walk us through the flows that matter most.

0 views

0

X

Related reading

Access Control Vulnerability Statistics 2026: Authorization, IDOR and Privilege CVEs
Web App Security

Access Control Vulnerability Statistics 2026: Authorization, IDOR and Privilege CVEs

Access control vulnerability statistics 2026: 19,319 NVD CVEs to 4 December, 17.6% of all, and 56.0% need only a low-privilege login. Stingrai's count.

14 min read

Android App Penetration Testing (2026): What It Covers, How It Works and What It Finds
Web App Security

Android App Penetration Testing (2026): What It Covers, How It Works and What It Finds

Android app penetration testing for buyers: MASVS and MASTG coverage, the backend API, Keystore, intents, WebViews, Play Integrity, MASA and reporting.

19 min read

iOS App Penetration Testing (2026): What It Covers, How It Works and What It Finds
Web App Security

iOS App Penetration Testing (2026): What It Covers, How It Works and What It Finds

iOS app penetration testing in 2026: what it covers on iPhone and iPad, how testers work, the 88 current MASTG iOS tests, common findings and the report.

21 min read

Contents

X