sickn33/antigravity-awesome-skills/file-path-traversal
- community
Checking that the SKILL.md file is still in the repository.
Identify and exploit file path traversal (directory traversal) vulnerabilities that allow attackers to read arbitrary files on the server, potentially including sensitive configuration files, credentials, and source code.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/file-path-traversalSKILL.md
⚠️ AUTHORIZED USE ONLYThis skill is for educational purposes or authorized security assessments only.You must have explicit, written permission from the system owner before using this tool.Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gateBefore any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target, ask for the exact target URL, IP, account, or resource and confirmation of written authorization and permitted scope.Show the exact command(s), explain their expected effect, and wait for explicit confirmation in the current conversation.Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
File Path Traversal Testing
Purpose
Identify and exploit file path traversal (directory traversal) vulnerabilities that allow attackers to read arbitrary files on the server, potentially including sensitive configuration files, credentials, and source code. This vulnerability occurs when user-controllable input is passed to filesystem APIs without proper validation.
Prerequisites
Required Tools
- Web browser with developer tools
- Burp Suite or OWASP ZAP
- cURL for testing payloads
- Wordlists for automation
- ffuf or wfuzz for fuzzing
Required Knowledge
- HTTP request/response structure
- Linux and Windows filesystem layout
- Web application architecture
- Basic understanding of file APIs
Outputs and Deliverables
- Vulnerability Report - Identified traversal points and severity
- Exploitation Proof - Extracted file contents
- Impact Assessment - Accessible files and data exposure
- Remediation Guidance - Secure coding recommendations
Core Workflow
Phase 1: Understanding Path Traversal
Path traversal occurs when applications use user input to construct file paths:
Attack principle:
../sequence moves up one directory- Chain multiple sequences to reach root
- Access files outside intended directory
Impact:
- Confidentiality - Read sensitive files
- Integrity - Write/modify files (in some cases)
- Availability - Delete files (in some cases)
- Code Execution - If combined with file upload or log poisoning
Phase 2: Identifying Traversal Points
Map application for potential file operations:
Common vulnerable functionality:
- Image loading:
/image?filename=23.jpg - Template selection:
?template=blue.php - File downloads:
/download?file=report.pdf - Document viewers:
/view?doc=manual.pdf - Include mechanisms:
?page=about
Phase 3: Basic Exploitation Techniques
Simple Path Traversal
Absolute Path Injection
Phase 4: Bypass Techniques
Bypass Stripped Traversal Sequences
Bypass Extension Validation
Historical/parser-specific examples only: extra extensions do not by themselves make an existing file readable, and modern runtimes reject null-byte/invalid encoding tricks. Validate against the exact version; do not claim a bypass from a payload string alone.
Bypass Base Directory Validation
Bypass Blacklist Filters
Phase 5: Linux Target Files
High-value files to target:
Phase 6: Windows Target Files
Windows-specific targets:
Phase 7: Automated Testing
Using Burp Suite
Using ffuf
Using wfuzz
Phase 8: LFI to RCE Escalation
Requires separately authorized code-execution scope in a disposable lab. Reading an arbitrary file does not imply PHP inclusion; wrappers depend on runtime configuration/extensions. Modern environments often do not expose request headers in /proc/self/environ. Stop once the authorized proof is sufficient rather than escalating by default.
Log Poisoning
Proc/self/environ
PHP Wrapper Exploitation
Phase 9: Testing Methodology
Structured testing approach:
Phase 10: Prevention Measures
Secure coding practices:
Prefer server-side opaque IDs mapped to known readable documents. Do not use include to return user-selected files: it can execute PHP. A basename filter or string-prefix check alone is not sufficient; sibling directories such as files-backup share the files prefix. Apply object-level authorization as well as containment.
Resolution followed by open can race if an attacker can modify directories or symlinks. This sketch requires a trusted immutable directory tree; for hostile mutable filesystems, use platform-specific descriptor-relative, no-follow traversal/open semantics or isolate storage. Test sibling-prefix, absolute-path, encoded traversal, symlink and race boundaries in a disposable fixture.
Quick Reference
Common Payloads
| Payload | Target | |
|---|---|---|
../../../etc/passwd | Linux password file | |
..\..\..\..\windows\win.ini | Windows INI file | |
....//....//....//etc/passwd | Bypass simple filter | |
/etc/passwd | Absolute path | |
php://filter/convert.base64-encode/resource=config.php | Source code |
Target Files
| OS | File | Purpose | |
|---|---|---|---|
| Linux | /etc/passwd | User accounts | |
| Linux | /etc/shadow | Password hashes | |
| Linux | /proc/self/environ | Environment vars | |
| Windows | C:\windows\win.ini | System config | |
| Windows | C:\boot.ini | Boot config | |
| Web | wp-config.php | WordPress DB creds |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 33 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/file-path-traversal/SKILL.md
Popularity
- Repository stars
- 27,109
- Repository forks
- 4,585
- Repository npm downloads, 7 days
- 9,936
- 7-day trend score
- 73
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 24 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/file-path-traversal)