AGENT SKILL

path-traversal

Hunt directory traversal and archive traversal (ZipSlip/TarSlip) from user input to filesystem operations.

License 许可
Apache-2.0
所属仓库
Akapi895/raptix
最近更新
2026-11-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
path-traversal
metadata
{ "subdomain": "web-exploitation", "when_to_use": "path directory traversal zipslip tarslip archive filesystem cwe-22 dot dot slash", "mitre_attack": "T1005, T1083" }
description
Hunt directory traversal and archive traversal (ZipSlip/TarSlip) from user input to filesystem operations.

03 SKILL.md 正文

Path Traversal Playbook

Find sinks

  • open(user_path), send_file(user_path), file download endpoints, archive extraction APIs.

Probe payload classes

  • Relative traversal: ../../../../etc/passwd
  • Encoded traversal: %2e%2e%2f
  • Mixed separators: ..\\..\\windows\\win.ini
  • Archive traversal: entries like ../../app/config.py

Verify controls

  • Canonicalization done before allowlist check.
  • Path confinement to intended root.

Validation

Confirm unauthorized file read/write outside allowed directory with positive and negative controls.

04 同仓库更多 Skills