Web business logic

From NoorQureshi/security-skills · View interactive version

Web business logic is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Find business-logic flaws — abusing intended functionality in unintended ways. Load on workflows with money/quantity/state/limits: checkout, coupons, refunds, transfers, quotas, multi-step flows, role/tenant boundaries. Signals: price/qty params, discount codes, step skipping, negative/overflow valu

How to use this skill

Skill file

Business-logic flaws

When it applies

The app works "correctly" per code but the rules can be gamed: paying less, getting more,

skipping a required step, or crossing a boundary the designers assumed users would respect.

Why it works

Scanners can't find these — they require understanding intent. Servers trust client-supplied

economics/state and assume the happy path; deviate from it and constraints (price, quantity,

sequence, ownership) aren't re-enforced.

Method

  1. Model the intended flow and its invariants (what must stay true: price ≥ 0, step order,

one coupon, my-cart-only).

  1. Break each invariant:
  1. Quantify impact in business terms (free goods, money, privilege) for the report.

Gotchas

Verify success

A completed abuse of the workflow with concrete gain (paid less/nothing, exceeded a limit,

accessed disallowed state) reproduced step-by-step.

References

PortSwigger business-logic labs; OWASP WSTG business-logic testing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.