snailsploit/claude-red/offensive-business-logic
Claude Code and agent skill by snailsploit/claude-red
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Business logic vulnerability testing for web/mobile/API engagements. Covers workflow bypass, state machine violations, multi-step process abuse, price/quantity/discount manipulation, currency confusion, coupon stacking, refund/chargeback abuse, race conditions on logic boundaries, parameter tampering for hidden flows, role/tenant boundary violations, time-of-check vs use, anti-automation defeat, fraud-detection evasion, and subscription/quota abuse. Use when scoping an application after surface-level OWASP Top 10 has been covered, or when the asset is a transactional/marketplace/fintech/e-commerce/SaaS app where logic flaws produce direct financial impact.
Install
npx vskill@latest install snailsploit/claude-red/offensive-business-logicSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as snailsploit/claude-red/offensive-business-logic.
Business Logic — Offensive Testing Methodology
Business logic flaws are the highest-paying class of vulnerability for bug bounty and the hardest for scanners to detect. They live in the gap between what the developer specified and what an attacker can convince the system to accept.
Quick Workflow
- Map every multi-step flow as a state machine (states + allowed transitions + side effects)
- For each transition, ask: who can call it, in what state, with what inputs, how many times
- Probe each axis (state, identity, input, frequency) for assumptions
- Combine flaws — single-axis flaws are usually low severity; chains are critical
- Quantify financial impact per finding (loss-per-attack × scale)
Reconnaissance — Mapping the Logic
Build the State Machine
For each user flow, draw:
- States: cart, pending payment, paid, shipped, refunded, cancelled
- Transitions: which API/UI action, which role, which preconditions
- Side effects: balance change, inventory change, email, webhook
Look for transitions that:
- Skip intermediate states (
cart→shippedwithoutpaid) - Are reversible when they shouldn't be (
shipped→cart) - Trigger side effects more than once
- Allow cross-role invocation
Hidden / Internal Endpoints
Workflow / State-Machine Bypass
Skip a Required Step
Replay a One-Time Action
State Downgrade
Move a finalized object back to an editable state where mutations have effect:
Direct Endpoint Invocation
Many admin/backend transitions are reachable from any authenticated user if route-level RBAC is missing while the UI hides them.
Price / Quantity / Currency Manipulation
Negative / Zero / Float Quantities
Hidden Price Fields
If the server trusts client-supplied price, you set the price. Test every numeric field — price, total, discount, tax, shipping, subtotal, currency.
Currency Confusion
Look for: missing currency normalization, sloppy FX rate caching, currency lookup by user input.
Coupon / Discount Logic
Cart Tampering
Refund / Chargeback / Payout Abuse
Refund More Than You Paid
Refund After Returning Less
Order ships 5 items, you return 1, request refund for full order. Logic should compute refund per returned item; if it computes per order, free items.
Convert Refund to Different Method
Payout Account Race
Identity / Tenant / Role Boundary
Role Confusion via Multipart / Parameter Pollution
Tenant ID Substitution in Hidden Field
Mass Assignment / Field Whitelist
Test every field that exists on the model, not just those the form exposes.
Indirect Privilege via Object Linking
Race Conditions on Logic Boundaries
Logic checks that read state, then act on state, are TOCTOU-vulnerable. (Also see: offensive-toctou, offensive-race-condition.)
Single-Packet Multi-Request
Common Logic Races
| Flow | Race | |
|---|---|---|
| Coupon redemption | N parallel apply-coupon calls each see "unused" | |
| 2FA verification | Submit code N times in parallel before lockout counter increments | |
| Withdrawal | Parallel withdraws each see full balance | |
| Vote / Like / Reaction | "One per user" check raced | |
| Invitation acceptance | Multiple accepts → multiple seats granted | |
| Free-trial signup | Parallel signups → multiple trials per email | |
| Gift-card redeem | Parallel redeems → multi-spend a single card | |
| Inventory reservation | Parallel buys of last item → oversell, supplier covers difference |
Amplification
Anti-Automation / Fraud Defeat
Captcha / Rate Limit Bypass
| Bypass | Mechanic | |
|---|---|---|
| Token reuse | One captcha solve, replay token across many requests | |
| Endpoint mirror | /api/v1/login rate-limited, /api/v2/login not | |
| Header rotation | X-Forwarded-For: <random> resets per-IP counter | |
| HTTP/2 stream multiplexing | Each stream counted as same conn → window only | |
| Method/case variation | POST /Login vs POST /login keyed differently in cache |
Device Fingerprint / Velocity
- New device → require step-up auth. Replay captured device cookies / FingerprintJS hash.
- Velocity counters (5 logins/hour) often per
(userid, ip)not peruserid. - Risk score thresholds: small purchases skip review. Test the boundary ($99.99 vs $100).
Free Trial / Sign-Up Abuse
Referral / Reward Loops
Subscription / Quota / Tier Abuse
Tier Downgrade Retains Premium Features
Mid-Cycle Quota Reset
Add-On Stacking
Time-Based Logic
Time Travel via Headers
Promotion Window
Set client-side date to inside the window, server validates X-Promo-Time parameter. Stale promo cache means yesterday's prices apply today.
Token / Session Expiry
Refresh token endpoint that doesn't check the original token's expiry → indefinite session extension.
Combining Flaws — Where the Crits Live
Single-axis findings are interesting; chains are payouts.
Example chain (real, paid bounty):
- Coupon stacking allows
100% off× 2 → negative total - Negative total → store credit issued (refund of "overpayment")
- Store credit transferable to gift card
- Gift card race condition → multiplied
- Gift card redeemable on partner site for cash equivalents
Chain template:
- Find a thing the system gives you (credit, points, slot, seat)
- Find a way to multiply it (race, replay, stacking)
- Find a way to convert it to value (transfer, refund, payout)
Engagement Approach
Document each finding as: pre-conditions → exact request sequence → state delta → financial impact per execution → scaling factor.
Reporting Hooks
Business-logic findings often get downgraded by triagers who don't understand the chain. Always include:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkills/web/offensive-business-logic/SKILL.md
Popularity
- Repository stars
- 1,296
- Repository forks
- 220
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 May 2026, 6 months ago.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/snailsploit/claude-red/offensive-business-logic)