401-403-bypass-techniq…
401/403 bypass playbook. Use when encountering access-denied responses on admin panels, API endpoints, or restricted paths.…
Business logic vulnerability playbook. Use when reasoning about workflows, race conditions, price manipulation, coupon abuse, state machines, and multi-step authorization gaps.
Claude Code
$ npx -y skills add yaklang/hack-skills --skill business-logic-vulnerabilities --agent claude-code
Codex
$ npx skills add yaklang/hack-skills --skill business-logic-vulnerabilities -a codex -y
Cursor
$ npx skills add yaklang/hack-skills --skill business-logic-vulnerabilities -a cursor -y
Gemini CLI
$ npx skills add yaklang/hack-skills --skill business-logic-vulnerabilities -a gemini-cli -y
GitHub Copilot
$ npx skills add yaklang/hack-skills --skill business-logic-vulnerabilities -a github-copilot -y
OpenCode
$ npx skills add yaklang/hack-skills --skill business-logic-vulnerabilities -a opencode -y
Windsurf
$ npx skills add yaklang/hack-skills --skill business-logic-vulnerabilities -a windsurf -y
name: business-logic-vulnerabilities description: >- Business logic vulnerability playbook. Use when reasoning about workflows, race conditions, price manipulation, coupon abuse, state machines, and multi-step authorization gaps.
> **AI LOAD INSTRUCTION**: Business logic flaws are scanner-invisible and high-reward on bug bounty. This skill covers race conditions, price manipulation, workflow bypass, coupon/referral abuse, negative values, and state machine attacks. These require human reasoning, not automation. For specific exploitation techniques (payment precision/overflow, captcha bypass, password reset flaws, user enumeration), load the companion [SCENARIOS.md](./SCENARIOS.md). For the workflow approach itself (modeling → state machine → attack-surface matrix → human judgement) load [METHODOLOGY.md](./METHODOLOGY.md). For the per-module check items load [CHECKLIST.md](./CHECKLIST.md).
| File | When to load | |---|---| | [METHODOLOGY.md](./METHODOLOGY.md) | Need the 5-phase workflow, attack-surface 5×N matrix, human-judgement decision tree | | [CHECKLIST.md](./CHECKLIST.md) | Going through a target module-by-module (login / register / payment / IDOR / privacy) and want every line item with why+verify | | [SCENARIOS.md](./SCENARIOS.md) | Drilling deeper into payment precision/overflow, captcha bypass, password reset, enumeration, frontend bypass |
Also load [SCENARIOS.md](./SCENARIOS.md) when you need:
---
Many applications validate "amount > 0" but not for currency:
Add to cart with quantity: -1
Update quantity to: -100
{
"quantity": -5,
"price": -99.99 ← may be accepted
}**Impact**: Receive credit to account, items for free, bank transfers in reverse.
Real instructor-led case: an e-commerce app accepted **fractional `quantity`** because backend trusted client float values:
// Cart item:
{"id": 114016, "skuQty": 0.02}
// Original price ¥500 → final price ¥10
// Variant on a food delivery app:
// FoodNum=0.01 → 68元 商品 实付 0.68元Why it works: server multiplies `unit_price * quantity` without enforcing `quantity ∈ Z+`, so a 2% sliver order pays 2% price but ships the full item. Reproduce by intercepting the cart submit → setting `skuQty` / `FoodNum` to `0.02` → finishing checkout.
Sport activity registration: when paid prizes are involved server returns `"payType": "paid"`; if the client request is **edited to omit `prizeIdList` entirely**, the server falls back to `"payType": "free"` and creates a successful registration that should have cost money.
// Original
{"prizeIdList": ["6264e6948fe587000113e2d9"], ...}
// Modified — array removed entirely
{"prizeIdList": [], ...}
// Server response:
{"ok": true, "payType": "free"}This is a parameter-existence trust bug — backend treats "field absent" as "no paid item to enforce", so fix is to require the field and validate its content server-side.
quantity: 2147483648 ← INT_MAX + 1 overflows to negative in 32-bit price: 9999999999999 ← exceeds float precision → rounds to 0
Real case: setting `amount=999999999` triggered an overflow path where the system stored `0` as final payable. **Always coordinate before triggering overflow tests** — they sometimes crash payment services.
Item price: $0.001 Order 1000 items → each rounds down → total = $0.00
Real "half-price recharge" bug: input `¥0.019` to top-up. The pay gateway charges only `¥0.01` (rounded down to the cent), but the wallet credits `¥0.02` (rounded up). Net gain per cycle is `¥0.01`, repeat for free balance growth.
1. Deposit using currency A at rate X 2. Rate changes 3. Withdraw using currency A at new rate → profit from rate difference
Test combining discount codes, referral credits, welcome bonuses:
Apply promo: FREE50 → 50% off Apply promo: REFER10 → additional 10% Apply loyalty points → additional discount Total: -$5 (free + credit)
---
**Concept**: Two operations run simultaneously before the first completes its check-update cycle.
# Send same request simultaneously (~millisecond apart): # Use Burp Repeater "Send to Group" or Race Conditions tool: POST /api/use-coupon ← send 20 parallel requests POST /api/redeem-gift ← same coupon code, parallel POST /api/withdraw-funds ← same balance, parallel # If check and update are non-atomic: # Thread 1: check(balance >= 100) → TRUE # Thread 2: check(balance >= 100) → TRUE (before Thread 1 deducted) # Thread 1: balance -= 100 # Thread 2: balance -= 100 → BOTH succeed → double-spend
1. Capture request 2. Send to Repeater → duplicate 20+ times
Master Entry → Category Entries → Deep Topic Skills One master entry, six category entries, and 102 deep topic skills across 14 security domains.
401/403 bypass playbook. Use when encountering access-denied responses on admin panels, API endpoints, or restricted paths.…
Active Directory ACL abuse playbook. Use when exploiting misconfigured AD permissions including GenericAll, WriteDACL, DCSync…
AD Certificate Services attack playbook. Use when targeting misconfigured AD CS for privilege escalation via ESC1-ESC13 template…
Kerberos attack playbook for Active Directory. Use when targeting AD authentication via AS-REP roasting, Kerberoasting,…
AI/ML security playbook. Use when assessing model supply chain attacks (pickle RCE, poisoned weights), adversarial examples,…
Android pentesting playbook. Use when testing Android applications for SSL pinning bypass, exported component abuse, WebView…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…