CYBER LIBRARY
Explore the bootcamp
Adversarial thinkingIntermediate

Business logic vulnerabilities

Model allowed workflow states and transaction invariants, then test repeated, reordered, and concurrent actions that remain syntactically valid.

3 min readUpdated 12 Oct 20265 connections
Markdown

What it means

Business logic vulnerabilities let callers misuse a workflow while sending syntactically valid requests. Problems include skipping steps, reusing one-time benefits, or exploiting inconsistent assumptions between services. Detection requires understanding the intended business rules rather than searching only for malformed technical input.

A practical example

A checkout workflow must verify the current price, stock, and payment state before shipping. The team tests reordered and repeated requests to ensure an earlier successful step cannot authorize an unrelated or changed later transaction.

What to check

Model the workflow states and allowed transitions. Verify ownership, prerequisites, limits, concurrency behavior, and the effect of retries. Document which invariants must remain true across services.

A common pitfall

A request can pass input validation and still violate the business process. A vulnerability scanner usually cannot infer all of an organization's intended commercial rules.

Think it through

Can a valid payment callback be reused to authorize a second order?

Answer: The application must bind it to the intended transaction and handle duplicates without granting new benefits.

A workflow contains promises

Imagine a fictional academy issues a certificate only after required assessments are complete. The invariant is a business rule: the learner must satisfy the prerequisites before issuance. Valid JSON and a correctly authenticated account do not establish that condition.

Define the states and transitions explicitly. The service should evaluate the current authoritative state when performing the sensitive action, not rely solely on a browser having displayed the expected sequence.

Repetition and concurrency change the test

Suppose a one-time course credit can be redeemed through two requests arriving together. Each request might pass an individual check before either updates the shared state. The intended rule must hold for the combined result, not only a sequential happy-path test.

Retries create a related question: a repeated confirmation should not create a new entitlement unless the business design allows it. Bind approvals and payment or completion evidence to the intended transaction.

Review the boundary between services

One service may record completion while another issues certificates. Their assumptions about freshness, ownership, and failures must agree. A stale cached state or partial operation can create inconsistent outcomes even without malformed input.

For a safe paper exercise, draw enrollment, assessment, eligibility, and certificate issuance as states. Add skipped, repeated, and concurrent transitions, then state which must be rejected or handled idempotently. Use invented learners and no real payments. Explain what evidence demonstrates the final business effect. This turns an abstract vulnerability category into specific invariants that developers and testers can verify together.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

OWASP: Business Logic Security
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

5 notes · 6 connections
100%
Business logic vulnerabilities · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (5)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.