Authorized · Deep Logic Sprint
Business logic testing for SaaS
Business logic testing examines whether your product enforces the rules you intend: who can buy, upgrade, or cancel; when a plan actually becomes active; how seats and usage quotas are consumed; and whether those steps can be skipped, reordered, replayed, or run in parallel.
These failures often occur in applications that already reject obvious injection and that serve ordinary pages over HTTPS. The workflow is the vulnerability. BreachSweep performs authorized business logic testing for SaaS as part of a Deep Logic Sprint: ownership-verified, with reproducible PoCs and drop-in fixes, and a report delivered in 24 hours.
What business logic testing covers
A useful assessment treats each valuable workflow as a state machine. We map the intended sequence and the server-side checks, then try to reach a valuable outcome without satisfying those checks.
Typical SaaS flows in scope include:
- Checkout, plan selection, upgrades, downgrades, trials, and cancellations
- Seat, credit, and usage quotas, including AI or API consumption limits
- Invitation, approval, and verification steps
- Webhook-driven provisioning, especially when a payment or billing event is supposed to gate access
- One-time actions that must be idempotent, such as applying a coupon or granting a seat
The test looks at what the server finally stores, not only at what the UI displays after a click. A 200 OK that says “success” is not the same thing as a consistent, authorized state.
This work sits alongside tenant isolation testing and API security testing in a SaaS penetration test. A public free SaaS security scan will not see these paths.
Checkout and entitlements
A recurring class of checkout flaws is a desync between payment state and product state. The application might promote a user to a paid plan when a checkout session is created, rather than when a verified event shows the session is paid. Abandoning the payment then leaves the entitlement in place.
Other checks we exercise, within the scope you authorize:
- Whether plan or price identifiers in the client request can be altered to a higher tier at a lower posted amount
- Whether trial, coupon, or “internal” flags can be set from the client
- Whether a failed, delayed, or only-partially-completed payment still grants access
- Whether entitlements are revoked when a payment is later marked failed or refunded, if that behavior is part of your intended design
We do not place charges on real customer payment methods, and we do not treat a payment provider’s correct configuration as proof that your application applied the event correctly. For a technical walkthrough of webhook and checkout desyncs, see Stripe webhook desyncs.
Quotas, seats, and race conditions
Many SaaS products check a seat or usage limit in application code, then write a new seat or consume a credit in a second step. Two or more requests that pass the check before either write lands can exceed the limit. That Time-of-Check to Time-of-Use (TOCTOU) gap is a logic issue, not a missing security header.
In an authorized test we may send concurrent, in-scope requests against quotas you define — for example seating limits or API credits on a test account — and then read the resulting state. The point is to see whether the constraint is enforced atomically, typically in the database, rather than only in a single-threaded request handler.
We stay inside agreed limits. This is not a denial-of-service test against your shared platform. For a deeper explanation of the pattern, see TOCTOU in SaaS quotas.
Webhooks and state desyncs
Billing and provisioning often complete on a webhook, not in the browser. If the handler trusts a body it has not authenticated, applies the same event twice, or updates entitlements without checking payment status, the product state drifts from what was actually paid.
Relevant checks, when webhooks are in scope:
- Signature verification on the raw request body, before a parser mutates it
- Rejection of stale or replayed events, within a sensible timestamp tolerance
- Idempotency so that retries do not provision duplicate seats or credits
- Correct branching on event type and payment status, not only on “we received a callback”
The same ideas apply to non-billing callbacks: repository syncs, email-provider events, or partner APIs that change customer state.
How a Deep Logic Sprint works
- You choose a plan and define the target and the workflows that matter (checkout, quotas, invitations, and so on).
- Ownership is verified before testing starts.
- We exercise the agreed flows, including out-of-order steps, replays, and concurrent requests where that is in scope and safe.
- Reported findings include a reproducible proof, typically a cURL or scripted sequence, and a drop-in fix aimed at the rule that should have been enforced on the server.
- A reported finding that you fix can be retested at no extra charge within 30 days.
Delivery for a Deep Logic Sprint is 24 hours ($349). If you only need a public-surface review, Recon Sweep — $149 delivers in 4 hours and does not replace business logic testing. Watchdog — $99/month re-scans the public surface weekly.
The work is directed by researchers with authorized red-team experience for large enterprises, including DAX companies, financial institutions, and Fortune 500 platforms. A sample report shows the format with demo data.
Related Security Research
All research articles- Concurrency & Business LogicRead research →
TOCTOU in SaaS Quotas: How Concurrency Exploits Break Usage Limits & AI Billing
When SaaS platforms check seat limits or AI token quotas in application code before writing to the database, concurrent requests slip through the gap. How Time-of-Check to Time-of-Use flaws lead to runaway cloud costs and tier bypasses.
- Billing & Logic SecurityRead research →
The Silent Upgrade Exploit: How Stripe Webhook Race Conditions Grant Free Enterprise SaaS Access
Most SaaS payment flows blindly trust incoming webhook event ordering or fail to enforce database transactions during checkout completion. Here is how concurrent webhook retries lead to free lifetime subscriptions—and how to fix it.
- Billing & State MachinesRead research →
Stripe Webhook Desyncs: How Race Conditions & Raw Body Mutation Break SaaS Billing
SaaS checkout flows can contain subtle logic desyncs between Stripe webhooks and local database state. Here is how state manipulation happens, why JSON parsers break signature verification, and the drop-in TypeScript remediation.
FAQ
What is business logic testing, in practical terms?+
It is authorized testing of your intended rules and workflows — checkout, entitlements, quotas, approvals — including attempts to skip, reorder, replay, or parallelize steps. The result that matters is the server-side state, not the UI message.
Can an unauthenticated scanner find these issues?+
Generally no. These paths require a session, a checkout, or a webhook. A public surface scan is a different, narrower check.
Will you place unexpected charges on my payment account?+
Tests stay inside the scope and test tenants you authorize. We do not use real customer payment methods. Agree in onboarding how payment-provider test modes and fixtures should be used.
Do you need production access?+
We can work on a production or staging host that you authorize and that you own. Fragile environments, rate limits, and out-of-scope systems should be declared during onboarding. Ownership verification is required either way.
How long does it take, and what does it cost?+
A Deep Logic Sprint is $349 and is delivered in 24 hours. It includes this class of testing plus tenant scoping and the Recon public-surface coverage.
Do you retest after we fix a finding?+
Yes. A reported finding that you fix can be retested at no extra charge within 30 days.