hunt-business-logic
它能做什么
这项技能检查购物、支付和验证流程中的业务逻辑,依据是公开漏洞报告中的常见模式。它适用于对电商和订阅功能进行的经授权测试。
适用场景
- ✓当结账、优惠券或订阅功能在安全测试范围内时。
- ✓当应用信任从浏览器发来的价格或金额时。
- ✓当验证或身份检查可能通过异常步骤被绕过时。
技能链接
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-business-logic/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们经授权的测试中,请帮我检查结账是否接受负数数量,或者是否允许同一张优惠券叠加使用两次。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会改变正常流程中的步骤和数值,例如操作顺序或金额,并检查应用是否接受结果。它会报告已确认的问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Crown Jewel Targets
Business logic vulnerabilities pay highest in platforms where financial transactions, identity verification, and access controls intersect with real-world consequences. The richest targets are:
- E-commerce & payment platforms (Valve/Steam, Shopify) — payment flow manipulation, free goods, price tampering
- Marketplace & gig economy apps (Airbnb, Uber) — identity/verification bypass enabling fraud or unsafe interactions
- SaaS with tiered access (Mozilla Monitor) — bypassing verification to unlock monitoring features without entitlement
- High-traffic consumer apps (Snapchat, Yelp) — rate-limit bypass enabling spam, enumeration, or abuse at scale
Asset types that pay: checkout flows, subscription endpoints, callback/verification systems, webhook handlers, employee/internal portals exposed to the internet, and any endpoint that trusts client-supplied data to make authorization decisions.
Attack Surface Signals
URL patterns to watch:
/checkout,/order,/subscribe,/payment,/verify,/confirm,/callback/internal,/employee,/summit,/staff,/admin— internal pages accidentally public/api/v*/payment,/api/v*/notify,/webhook— payment provider callbacks- Endpoints accepting
X-Forwarded-For,X-Real-IP,CF-Connecting-IPheaders
Response/header signals:
Set-Cookiewith unvalidated session state tied to cart or order data- Payment provider names in responses:
Smart2Pay,Stripe,PayPal,Braintree - Redirect chains through third-party payment pages (in-flight data opportunity)
200 OKon subscription/verification endpoints with no CAPTCHA or token
JS patterns:
- Hardcoded internal URLs in frontend bundles (
/employee/,/staff/,/internal/) - Client-side price calculation before server submission
- Verification logic that only checks on the frontend (
if (verified) { ... }) fetch('/api/subscribe', { method: 'POST', body: ... })with no anti-CSRF token or rate-limit token
Tech stack signals:
- Shopify storefronts with draft/unpublished channel pages
- Apps using IP-based rate limiting without session/account binding
- Payment webhooks with no HMAC signature validation
- SMS/phone callback flows that don't verify ownership before enabling features
Step-by-Step Hunting Methodology
Map all authentication boundaries. Spider the target. Identify pages/endpoints that serve authenticated content (employee portals, premium features, order pages) and test each unauthenticated. Look for internal pages indexed in JS bundles or linked from robots.txt/sitemap.xml.
Identify every verification flow. Enumerate: email verification, phone/SMS verification, payment verification, CAPTCHA, age gates. For each, test: what happens if you skip the verification step entirely? What happens if you replay a valid token on a different account?
Test rate-limiting controls on every form. For every POST endpoint (subscribe, login, OTP, search), send 50+ rapid requests. Vary: remove cookies, rotate
X-Forwarded-For/X-Real-IPheaders, changeUser-Agent. Check if the server uses IP from headers rather than connection IP.Intercept and tamper with payment flows. Use Burp Suite to intercept every request between your browser, the application, and the payment provider. Identify where price, currency, order ID, or status fields are set. Attempt to modify amounts to $0.01 or currency to a low-value currency. Look for POST-back/webhook endpoints that accept payment confirmation — test if they validate HMAC/signature.
Test phone/callback number verification. Whenever a platform accepts a callback number, test: can you set it to a number you don't own? Does the platform call/text that number and grant trust based solely on submission? Try setting it to a victim's number.
Check for unprotected employee/internal surfaces. Search Shodan, GitHub, JS bundles, and Wayback Machine for internal subdomain/path references. Test access without authentication. Check if these surfaces allow order placement, data access, or privilege escalation.
Validate business impact. For each finding, determine: does this result in financial loss, unauthorized access, or data exposure? Document the end-to-end chain.
Payload & Detection Patterns
Rate limit bypass via header rotation:
# Rotate X-Forwarded-For to bypass IP rate limiting
for i in $(seq 1 100); do
curl
常见问题
什么是优惠券竞态条件?
指同一张优惠券在系统更新其状态之前被同时使用多次。
它涵盖客户端价格信任问题吗?
涵盖。技能涵盖结账金额从浏览器端获取并被信任的情况。
它只适用于购物网站吗?
不是。它也涵盖市场、SaaS 套餐,以及依赖客户端输入的内部门户。
详情
作者的原始描述
Hunting skill for business logic vulnerabilities. Built from 12 public bug bounty reports. Covers coupon-race-stacking (Instacart, Stripe, Reverb), negative-quantity-in-cart price tampering (Upserve, Eternal/Zomato), decimal/fraction price-field overflow (Shipt), client-side checkout amount trust on PayPal redirect (WordPress.org), price-per-unit mass-assignment (Krisp), and archived-price swap / cart-TOCTOU (Stripe). Use when hunting business logic — heavy emphasis on financial-impact-demonstrated cases.
热度
- GitHub 星标
- 5.4k
- 排名
- #14897
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
apk-redteam-pipeline
5.4k帮你的智能体测试 Android 应用的安全弱点,从找到 APK 文件、反编译,到检查是否暴露了敏感信息。
bugcrowd-reporting
5.4k帮你的智能体撰写更好的 Bugcrowd 漏洞报告,选择正确的类别,并回应“超出范围”的异议。
cloud-iam-deep
5.4k帮你的智能体在经授权的安全测试中,检查找到的云凭据在 AWS、Azure 或 Google Cloud 上能访问哪些内容。
enterprise-vpn-attack
5.4k帮你的智能体在经授权的测试中,检查 Cisco、Fortinet、Citrix 等厂商 VPN 和远程访问设备是否存在已知弱点。