pentest-path-traversal

Identify and exploit path traversal and file inclusion vulnerabilities in web applications.

74|10|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/yhy0/ghsa-skill-builder --skill pentest-path-traversal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pentest-path-traversal
Source: https://github.com/yhy0/ghsa-skill-builder/tree/main/vuln-skills/skills/pentest-path-traversal
Command: npx skills add https://github.com/yhy0/ghsa-skill-builder --skill pentest-path-traversal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and exploit path traversal and file inclusion vulnerabilities in web applications, crucial for penetration testing.

Core Features & Use Cases

  • Attack Surface Discovery: Identifies high-risk functionalities like file downloads, template selection, and log viewers.
  • Exploitation Techniques: Provides methods for basic path traversal, encoding bypasses, Windows-specific tricks, and language-specific vulnerabilities (Node.js, Java/Spring, PHP).
  • Use Case: During a penetration test, you suspect a file download endpoint might be vulnerable to path traversal. You would use this Skill to test various payloads like ../../../etc/passwd and its encoded variants to confirm and exploit the vulnerability.

Quick Start

Use the pentest-path-traversal skill to test for path traversal vulnerabilities on the endpoint '/download?file='.

Frequently Asked Questions about pentest-path-traversal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I exploit path traversal vulnerabilities in web applications?

To exploit path traversal vulnerabilities, you test high-risk functionalities like file downloads using payloads such as `../../../etc/passwd` and encoded variants. This Skill guides attack surface discovery and exploitation techniques for web applications.

What is the difference between LFI and RFI vulnerabilities?

Local File Inclusion (LFI) and Remote File Inclusion (RFI) are file inclusion flaws allowing unauthorized file access. LFI targets local files, while RFI includes external files, both identified during attack surface discovery on endpoints like template selectors.

How do I bypass encoding filters during path traversal testing?

You bypass encoding filters using encoding bypasses and language-specific methods. This Skill provides exploitation techniques for bypassing filters in Node.js, Java/Spring, and PHP environments during penetration testing.

Do I need prior web security knowledge to test for file inclusion flaws?

Yes, you need understanding of web application security principles and common vulnerability patterns. This Skill requires prerequisite knowledge to effectively identify and exploit path traversal and file inclusion vulnerabilities.

Can I use this path traversal testing approach for Windows environments?

Yes, this approach covers Windows-specific tricks for path traversal exploitation. It provides targeted methods to bypass filters and access unauthorized files on Windows web applications.

Why does my basic path traversal payload fail on a file download endpoint?

Basic path traversal payloads fail when endpoints employ input filtering or language-specific protections. You must use encoding bypasses and language-specific exploitation techniques to confirm and exploit the vulnerability.