File Path Traversal Testing

🌐Community
by davila7 · vlatest · Repository

Tests file path traversal vulnerabilities within a system, identifying potential unauthorized access risks.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add davila7-file-path-traversal-testing npx -- -y @trustedskills/davila7-file-path-traversal-testing
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "davila7-file-path-traversal-testing": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/davila7-file-path-traversal-testing"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to systematically test applications for file path traversal vulnerabilities by generating payloads that attempt to access files outside the intended directory. It helps identify security flaws where an attacker could read sensitive system files or execute unauthorized commands through manipulated input paths.

When to use it

  • During security audits of web applications handling user-uploaded files or dynamic content generation.
  • When validating input sanitization mechanisms in APIs that process file names or directory references.
  • To verify the effectiveness of existing security controls against path manipulation attacks.
  • As part of a penetration testing workflow to assess exposure of server-side include vulnerabilities.

Key capabilities

  • Generates targeted payloads designed to escape directory constraints.
  • Tests common traversal patterns including ../, encoded variants, and null byte injections.
  • Reports findings on potential unauthorized file access risks.

Example prompts

  • "Run a file path traversal test on this API endpoint to check for directory escape vulnerabilities."
  • "Simulate an attack where a user uploads a file with a malicious path like ../../etc/passwd."
  • "Analyze the response from this URL parameter to determine if it's vulnerable to path traversal."

Tips & gotchas

Ensure you have explicit permission before testing any system, as exploiting vulnerabilities may violate legal agreements. Always run tests in isolated environments to prevent accidental data exposure or service disruption.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
davila7
Installs
99

🌐 Community

Passed automated security scans.