# hunt-business-logic

hunt-business-logic finds business logic flaws like price tampering, race conditions, and 2FA bypasses. Useful for testing checkout workflows and subscription logic.

- 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/pentest-agents-hunt-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/h-mmer-hunt-business-logic

## What it does

This skill guides security analysis for application-level logic flaws, specifically CWE-840, CWE-841, CWE-639, and financial race conditions under CWE-362. It builds on verified reports from HackerOne, Bugcrowd, Huntr, and GitHub Security Advisories. These vulnerabilities escape standard scanners because they exploit legitimate application workflows rather than missing syntax sanitization.

The workflow targets payment processing, shopping carts, and identity transitions. It checks if handlers accept negative product counts, examines balance deductions under concurrent requests, and probes alternate account flows for missed multi-factor authentication steps.

Without a clear mapping of application endpoints and database transaction boundaries, the agent will produce speculative test cases.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/pentest-agents-hunt-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/pentest-agents-hunt-business-logic
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pentest-agents-hunt-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/pentest-agents-hunt-business-logic/SKILL.md

## When to use it
- detect negative quantity or price tampering in checkout endpoints
- uncover TOCTOU race conditions during balance transfers and coupon redemption
- find multi-factor authentication bypasses in secondary account flows
- spot subscription loopholes that allow resetting free trial periods

## Example prompts
- Review the checkout handler in `/api/cart` for client-controlled price or quantity manipulation
- Test our wallet balance deduction logic for concurrency race conditions
- Analyze the password recovery route to see if it allows skipping the 2FA requirement

## 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
- [business-logic-vuln](https://affpapa.org/en/nevibecode/skills/business-logic-vuln.md) — skill · 4100 installs
- [testing-for-business-logic-vulnerabilities](https://affpapa.org/en/nevibecode/skills/testing-for-business-logic-vulnerabilities.md) — skill · 376 installs
- [hunt-csrf](https://affpapa.org/en/nevibecode/skills/hunt-csrf.md) — skill · ★ 16193 repo stars
- [pentesting-checklist-security-assessment](https://affpapa.org/en/nevibecode/skills/pentesting-checklist-security-assessment.md) — skill · 180 installs

## Other versions with the same name
- [hunt-business-logic · elementalsouls](https://affpapa.org/en/nevibecode/skills/hunt-business-logic.md) — ★ 16193 repo stars

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
