Skip to main content
Industries · Retail

Your checkout is a business logic problem

The vulnerabilities that cost retailers money are rarely exotic. A discount that stacks when it should not. A price accepted from the client. A gift card balance that survives a concurrent request. A loyalty account reachable from another customer's session.

None of those has a signature. All of them are found by trying.

A mobile checkout offering card, wallet, UPI and net banking payment, beside a filled basket and a lit shield over the order store, with a fraud attempt blocked, an anomalous pattern detected and a transaction secured.
01

Industry overview

Retail security has an unusual shape: the highest-value attacks target the commercial logic rather than the data.

Card data is still a target, and PCI DSS still governs how it is handled. But the abuse that consistently costs retailers money operates entirely within the rules of the application — discount stacking, price manipulation, gift card enumeration, loyalty point transfer, refund abuse, inventory holding, and automated purchasing on limited-release stock. Nothing is technically "breached." The system does what it was built to do, applied in a way nobody modelled.

The estate is also more distributed than it looks. A storefront, a mobile app, a marketplace integration, in-store point of sale, a loyalty platform, a customer service tool with access to everything, a dozen third-party scripts running in the checkout page, and a payment service provider at the end of it.

Then there is the calendar. Retail concentrates a disproportionate share of annual revenue into a short window, which means a change freeze exactly when the surface is under the most load and the most attention.

02

Security challenges

  1. R01

    Business logic abuse

    Discount stacking, coupon reuse, price parameter tampering, quantity manipulation, currency and rounding exploitation. These are not defects in the usual sense; they are consequences of rules interacting.

  2. R02

    Race conditions in anything with a balance

    Gift cards, store credit, loyalty points and limited stock all involve a check followed by an action. Concurrent requests against that gap are a well-understood and reliably profitable technique.

  3. R03

    Third-party scripts in the payment page

    Analytics, personalisation, tag managers, chat widgets. Every script in a checkout page executes with the page's privileges, and client-side compromise of payment pages has been one of the most consistent retail attack patterns for years.

  4. R04

    Loyalty accounts as a target in their own right

    Stored value, saved payment methods and personal data, protected by weaker authentication than the payment system, and rarely monitored with the same attention.

  5. R05

    Peak-season change freeze

    The period of highest exposure is the period when nothing can be changed, which makes finding issues before the freeze the entire game.

  6. R06

    A wide integration surface

    Marketplaces, fulfilment providers, payment processors, tax services, fraud tools. Each is a trust relationship and a data flow.

03

How AIPTx helps

  1. Stage 1

    Business logic tested as logic

    Business logic is one of the seven vulnerability classes, covered in Standard mode. Deep mode adds race conditions and complex multi-step chains, which is the mode that matters for anything holding a balance.

  2. Stage 2

    Testing follows what the application does rather than a payload list

    A quantity field that accepts a negative value, a price parameter honoured from the client, a discount code that behaves differently when applied twice: these are found by reasoning about intended behaviour and then departing from it.

  3. Stage 3

    Race conditions against balance operations

    Deep mode race condition testing is directly applicable to gift cards, store credit and loyalty points, where the check-then-act gap is the vulnerability.

  4. Stage 4

    Multi-role and cross-account testing

    Configure customer accounts and attempt cross-access. A customer reaching another customer's order history, saved addresses, loyalty balance or stored payment reference is an IDOR, and it is the single most common serious finding in retail applications.

    Web Application Security
  5. Stage 5

    Payment flow assessment with PCI DSS mapping

    Findings map to PCI DSS alongside GDPR, ISO 27001, SOC 2, NIST and CIS, with control assessment and gap analysis in reports.

  6. Stage 6

    Safe against production

    Destructive actions are off by default, the request rate is configurable, and out-of-scope paths are respected. Exploitation demonstrates access rather than causing damage, which matters when the target is a live trading platform.

  7. Stage 7

    Testing before the freeze, and in the pipeline during it

    Deep assessment ahead of peak, then Quick Scans on pull requests through GitHub Actions, GitLab CI or Jenkins for the changes that do go out during the freeze.

    See Continuous Security Validation
  8. Stage 8

    Sensitive data detection in responses

    Card numbers, tokens, personal data and secrets returned where they should not be, with PII detection and verbose error monitoring, the disclosures that are easy to miss when only status codes are examined.

04Features & Solutions

Relevant features and solutions

Business logic testing

Standard mode, covering workflow abuse, state manipulation, price and quantity handling.

Race condition testing

Deep mode. The class that matters for balances and limited stock.

Access control testing

IDOR, horizontal and vertical privilege escalation, cross-account comparison.

Multi-role authenticated testing

customer, service agent, administrator, with bearer, basic, cookie, custom header and OAuth2/OIDC support.

Sensitive data and PII detection in responses, including card numbers and tokens.

Responses are inspected for what they return in passing rather than only for what the endpoint was built to return: an order lookup carrying a full card number, a debug field holding a gateway token, an error page quoting the record it failed to load.

Client-side testing

XSS, CSRF, clickjacking and DOM-based flaws, relevant to checkout pages carrying third-party scripts.

API testing

REST, GraphQL and gRPC, for mobile apps, marketplace and fulfilment integrations.

API Security

Pipeline integration

GitHub Actions, GitLab CI and Jenkins, with severity-threshold gating for the freeze period.

PCI DSS control mapping, plus GDPR, ISO 27001, SOC 2, NIST and CIS, with gap analysis.

Every finding carries its control references, and the gap analysis names what is not covered as plainly as what is. Exports run to PDF, HTML, JSON, CSV and SARIF, so the same evidence serves the assessor and the backlog.

05

Benefits

The abuse paths that cost money get found
Discount, refund, gift card and loyalty logic, tested as logic rather than scanned for signatures.
Peak season entered with evidence
Deep assessment before the freeze, with findings confirmed and fixed rather than suspected.
Safe changes during the freeze
Pipeline gating means the small number of changes that must ship are tested without a manual review cycle.
PCI evidence generated per assessment
Control mapping and gap analysis come out of the run.
Cross-account exposure found before a customer finds it
IDOR on order history or loyalty balance is both a security incident and a public one.
One engine across storefront, mobile and integrations
Rather than separate tools and separate reports for each surface.
06

Use cases

Pre-peak assessment

Deep run against the storefront and checkout in September, with race condition and business logic coverage, findings closed before the freeze.

Checkout logic review after a pricing change

Promotional mechanics changed; testing that the new rules cannot be stacked or reversed.

Loyalty platform assessment

Multi-account testing against balance transfer, point accrual and redemption logic.

Mobile backend testing

The API behind the app, tested with the same authenticated depth as the web storefront.

Marketplace integration review

Assessing the surface exposed to a fulfilment or marketplace partner.

PCI DSS evidence cycle

Scheduled assessment with control mapping and retest history for the annual validation.

Vulnerability Assessment

FAQs

Can we test against production?

Yes. Destructive actions are off by default, the request rate is configurable, and out-of-scope paths are respected, so testing does not itself become a load event on a trading platform. Many retailers assess a production-equivalent staging environment for logic testing and run perimeter-limited checks against production.

Will it find discount and coupon abuse?

Business logic testing covers workflow abuse and state manipulation, which is the class those belong to. Deep mode adds race conditions, which is what catches concurrent redemption against a balance. Coverage depends on how the logic is exposed. Worth a scoping conversation for unusual promotional mechanics.

Does this help with PCI DSS?

Findings map to PCI DSS controls with control assessment and gap analysis in reports, which supports the technical testing requirements of a PCI programme. PCI compliance is broader than application testing and no tool delivers it alone.

What about scripts in our checkout page?

Client-side vulnerability classes (XSS, CSRF, clickjacking, DOM-based flaws) are covered.

Can we run it during our change freeze?

Yes, and the freeze is a good argument for pipeline testing. Quick Scans run 15–30 minutes on a pull request, so the limited changes that ship during the freeze get tested without a manual review cycle.

Does it cover our mobile app?

The API behind the app is tested with the same authenticated depth as a web application, including token handling. Testing of the compiled client application itself is a separate discipline and not a documented capability.

Find the abuse paths before your customers do

Business logic, race conditions and payment flow testing, with evidence on every finding and PCI DSS mapping in the report.

Destructive actions off by default · Configurable request rate

Security testing for other sectors

Same engine, different threat model, different auditor. Each page covers the systems, regulations and attack paths that sector actually lives with.

Financial Services

Payment flows, lending decisions, account servicing, open banking APIs — the logic that handles money is the logic attackers study hardest. It is also the logic no signature database describes.

Explore

Healthcare

Patient portals, scheduling systems, clinical APIs, payer integrations: all of it holds data that carries a lifetime of consequence if it leaks, and much of it runs on systems that cannot be taken offline for a test.

Explore

Government

Benefits portals, licensing systems, tax filing, records access — services that must be open to everyone by design, running on estates that were often built decades apart and connected later.

Explore

Manufacturing

Almost nobody breaks into a plant by attacking a controller. They arrive through a corporate account, a supplier portal, an ERP integration or an exposed remote access service, and then walk into a network that was designed for reliability, not for containment.

Explore

SaaS

Every enterprise deal arrives with a questionnaire, a SOC 2 request and someone technical asking when you last tested. Meanwhile you ship on Tuesday and again on Thursday, and the last pentest describes a product that has since changed twice.

Explore

Telecom

A single authorisation flaw in a subscriber portal is not one exposed account. At operator scale it is a data set — and the same flaw in a provisioning API is an operational one.

Explore

Education

A department stood up a project site in 2019. A research group runs its own server. A faculty subdomain points at infrastructure that was decommissioned two years ago. None of it went through central IT, and all of it is reachable.

Explore

Legal

Clients do not retain a firm because of its document management system. They retain it on the assumption that what they share stays privileged — and increasingly they audit that assumption before instructing.

Explore