# business-logic

Guides coding assistants in auditing business logic flaws like price tampering, coupon race conditions, and MFA bypasses. Designed to prove impact for bug bounties.

- skill · `type=skill` · Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1298 repo stars
- Author: H-mmer
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/cursor/.cursor/skills/agent-business-logic/SKILL.md
- Updated: 2026-06-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/business-logic

## What it does

This skill targets application workflow flaws across nine primary attack surfaces. It focuses on cart price tampering with negative values, coupon reuse through time-of-check gaps, quota evasion on trials, workflow step skips, and SSO account hijacking.

The instructions mandate loading the methodology file `SKILL.md` and querying exploitation techniques via search tools before taking action. Without the companion files from the `pentest-agents` repository, the agent will miss specific exploit templates and historical vulnerability references.

Testing race conditions requires rigorous verification. The skill instructs the agent to run single-packet HTTP/2 bursts with Turbo Intruder or curl, verify repeatability across multiple attempts, and quantify the monetary exposure instead of reporting an isolated informational bug.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill business-logic -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/agent-business-logic/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/agent-business-logic/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill business-logic -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/agent-business-logic/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill business-logic -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/agent-business-logic/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install H-mmer/pentest-agents providers/cursor/.cursor/skills/agent-business-logic
```

2. **Manually: put the files in place**
- File: `.github/skills/agent-business-logic/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill business-logic -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/H-mmer/pentest-agents --path providers/cursor/.cursor/skills/agent-business-logic
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agent-business-logic/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/cursor/.cursor/skills/agent-business-logic/SKILL.md

## When to use it
- test checkout endpoints against negative pricing and currency rounding flaws
- find race condition gaps in wallet debits and coupon applications
- check password reset workflows for multi-factor authentication bypasses
- assess trial subscription systems for email alias and fingerprint reuse

## Example prompts
- Audit the cart checkout flow for negative quantity inputs and server-side price validation
- Test this wallet withdrawal endpoint for double-spend race conditions using HTTP/2 batching
- Examine our SSO registration flow for pre-account takeover vulnerabilities

## Similar
- [business-logic-vulnerabilities](https://affpapa.org/en/nevibecode/skills/business-logic-vulnerabilities.md) — skill · 4300 installs
- [hunt-race-condition](https://affpapa.org/en/nevibecode/skills/hunt-race-condition.md) — skill · ★ 16193 repo stars
- [hunt-business-logic](https://affpapa.org/en/nevibecode/skills/hunt-business-logic.md) — skill · ★ 16193 repo stars
- [race-condition](https://affpapa.org/en/nevibecode/skills/race-condition.md) — skill · 4000 installs
- [pentesting-checklist-security-assessment](https://affpapa.org/en/nevibecode/skills/pentesting-checklist-security-assessment.md) — skill · 180 installs
- [pentest-agents-bug-bounty-framework](https://affpapa.org/en/nevibecode/skills/pentest-agents-bug-bounty-framework.md) — skill · 1300 installs

From the same set: [h-mmer/pentest-agents](https://affpapa.org/en/nevibecode/by/h-mmer/pentest-agents.md) — 43 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
