Business-flow / automation abuse of value-bearing API flows (OWASP API6) — script value-generating flows (purchase, referral/credit, free-trial, inventory) to check for anti-automation controls and race conditions. Tier 1. Use when an API flow has financial/business value if automated at scale.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Api Abuse?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-api-abuse)
---
name: api-abuse
description: Business-flow / automation abuse of value-bearing API flows (OWASP API6) — script value-generating flows (purchase, referral/credit, free-trial, inventory) to check for anti-automation controls and race conditions. Tier 1. Use when an API flow has financial/business value if automated at scale.
---
# API Business-Flow Abuse (API6)
Some flows are fine once but harmful automated at scale — scalping, fraud, farming. Test whether the business logic resists automation, not just whether each request is "authorized".
## Trigger phrases
`business logic abuse, api6, automation abuse, scalping, referral abuse, free trial farming, coupon abuse, race condition, inventory hoarding`
## Method
1. **Identify value-bearing flows** — ticket/sneaker/limited-stock purchase, referral/credit/cashback, coupon/discount redemption, free-trial/account creation, review/comment posting, inventory reservation, points/loyalty, withdrawals/transfers.
2. **Model the flow** — capture the full request sequence (add-to-cart → reserve → pay; or invite → signup → credit). Note tokens/state tied to each step.
3. **Script it repeatedly** — replay the flow at volume (Burp/ffuf/custom script) and check for anti-automation: CAPTCHA, device fingerprint, velocity/business-logic rate limits, per-user caps.
4. **Constraint bypass** — reuse/share single-use coupons; self-referral loops; recreate "one-per-user" rewards via new/throwaway accounts or tweaked identifiers; skip or reorder steps (pay before price-lock).
5. **Race conditions** — fire concurrent requests at a check-then-act flow (redeem-once coupon, balance withdrawal, stock decrement) to double-spend. Use Burp Turbo Intruder **single-packet attack** (HTTP/2) to land requests simultaneously.
## Bypass / evasion
Rotate identity/IP/device headers to defeat per-identity caps (`api-resource-consumption`); alias/batch (`graphql`, `api-json-rpc`) to amplify; parameter tweaks to appear as distinct users. See `${CLAUDE_PLUGIN_ROOT}/payloads/waf-bypass.md`.
## Modern / rare techniques
- **[RARE] Race-condition double-spend** — single-packet concurrent requests bypass "check then decrement" (coupon/balance/stock).
- **[RARE] Step-skip / reorder** — jump straight to a privileged/final step without the gating ones (price set, payment, verification).
- **[RARE] Reward/limit farming** — "one per user/device" enforced weakly → mass-generate via throwaways or identifier tweaks.
## Escalation / chaining
Financial loss, scalping/hoarding, fraud, reputational harm. Amplified by missing rate limits (`api-resource-consumption`), self-elevation (`api-bopla`), and trusted-channel poisoning (`api-unsafe-consumption`).
## Backend & tooling
Preferred Kali path (WSL+Kali / Kali-MCP / HexStrike): Burp Turbo Intruder (single-packet) for races, scripted flow replay; multiple test accounts. Keep volumes bounded and within RoE. See `zazy-orchestrator`.
## Verification (background, before reporting)
Reproduce the abuse end-to-end (e.g., coupon redeemed N times, N trial credits from one identity, double-spend confirmed) with a clean repro; show the control is absent/bypassable, not just slow. True positives only; avoid real financial harm — prove with minimal value.
## Evidence
The scripted flow + evidence of the business impact (duplicate redemptions, extra credits, over-reserved stock, successful race), with the missing/bypassed control named. Impact + remediation (bot detection, business-logic/velocity limits, human-interaction challenges, atomic check-and-act / idempotency).