sast-pathtraversal

Trace user-controlled path inputs through file operations and report path traversal vulnerabilities.

1.3k|61|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/utkusen/sast-skills --skill sast-pathtraversal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sast-pathtraversal
Source: https://github.com/utkusen/sast-skills/tree/main/sast-files/.agents/skills/sast-pathtraversal
Command: npx skills add https://github.com/utkusen/sast-skills --skill sast-pathtraversal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Path traversal vulnerabilities occur when user-controlled input influences filesystem paths used for reading, writing, or serving files, potentially exposing sensitive data or code. This skill helps teams detect such patterns by tracing dynamic path usage across common sinks and archival operations in codebases.

Core Features & Use Cases

  • Three-phase approach (recon, batched verify, merge) to locate, validate, and consolidate traversal findings across languages and frameworks.
  • Outputs to sast/pathtraversal-results.md providing a structured report with actionable remediation guidance.
  • Prerequisites: sast/architecture.md must exist; run the analysis skill first to supply the architectural context.

Quick Start

Run the path traversal assessment on your codebase to produce a consolidated findings report at sast/pathtraversal-results.md

Frequently Asked Questions about sast-pathtraversal

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

FAQPage Schema
How do I detect path traversal vulnerabilities in my codebase?

Detect path traversal vulnerabilities by tracing user-controlled path inputs through file operations and archive extraction. The analysis identifies dynamic file path usage across Python, Node.js, PHP, Java, and Go stacks, validating findings against safe mitigation patterns.

What is a path traversal vulnerability in archive extraction?

A path traversal vulnerability in archive extraction occurs when user-controlled input influences filesystem paths used for reading, writing, or serving files. This happens when archival operations unpack user-supplied content without verifying dynamic path boundaries.

How do I check if my file path construction uses safe mitigation patterns?

Check file path construction mitigation by verifying the use of realpath with prefix checks, basename filtering, and safe framework helpers. The analysis confirms whether your code conforms to these robust patterns and reports deviations.

Do I need an architectural analysis before running a path traversal assessment?

Yes, you need an architectural analysis before running a path traversal assessment. The sast/architecture.md file must exist to supply the necessary architectural context for locating and validating traversal findings across your codebase.

Does path traversal static analysis work with PHP and Go applications?

Path traversal static analysis works with PHP and Go applications, along with Python, Node.js, and Java. It traces user-controlled path inputs across these stacks to locate dynamic file usage and archival operations.

What format do path traversal vulnerability scan results output to?

Path traversal vulnerability scan results output to sast/pathtraversal-results.md. This structured report provides actionable remediation guidance by consolidating findings from the locate, validate, and merge analysis phases.