Skip to content
Skillpedia
Security6.5k · #13964

path-traversal

What it does

This skill is a short playbook for finding path traversal flaws, where a crafted file name escapes the folder an app should use. It is for developers and reviewers who check code they are allowed to test.

When to use it

  • ✓When a developer asks the agent to check whether user input can reach file download or upload code.
  • ✓When the agent reviews archive extraction code for entries that point outside the target folder.
  • ✓When a team needs to confirm that path checks run before the allowed-folder test.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/path-traversal/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/path-traversal/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you check our authorized app to see whether a file name from the user can reach files outside the uploads folder?”

5 new skills a week. 1 minute to read.

How it works

The agent finds the code that opens or sends files, traces the user input to those calls, and checks whether the path is limited to the intended folder.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.

FAQ

What is path traversal?

It is when a crafted file name uses folder steps to reach files the app was not meant to share.

Why does the skill mention archives?

It says archive entries with folder steps can also escape the target folder when the archive is extracted.

What proves the flaw?

The skill asks for a positive test that reads a file outside the folder and a negative test that is blocked.

Details

Original description by the author

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

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#13964
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills