vuln-file-path

Detect file upload and path traversal vulnerabilities in codebases.

Updated Jun 23, 2024
One-click install
npx skills add https://github.com/n4igme/randscript --skill vuln-file-path
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vuln-file-path
Source: https://github.com/n4igme/randscript/tree/main/llm/skills/scode/vuln-file-path
Command: npx skills add https://github.com/n4igme/randscript --skill vuln-file-path

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scans codebases to identify unsafe file handling that enables unrestricted file uploads and directory traversal, helping teams prioritize remediation.

Core Features & Use Cases

  • Detects Unrestricted File Upload, Path Traversal, and Arbitrary Write vulnerabilities in web apps.
  • Generates standardized vulnerability entries and appends them to vulnerabilities.md for traceability.
  • Use Case: A security engineer runs this Skill to surface critical flaws in an app's upload endpoints and path handling.

Quick Start

Run vuln-file-path against the target repository to begin the vulnerability scan.

Frequently Asked Questions about vuln-file-path

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

FAQPage Schema
How do I scan my codebase for file upload and path traversal vulnerabilities?

To scan for file upload and path traversal vulnerabilities, run this tool against your target repository to detect unsafe file handling, dynamic file serving, and user-supplied path patterns.

What is an unrestricted file upload vulnerability in web applications?

An unrestricted file upload vulnerability occurs when web applications lack validation on file handlers, allowing attackers to upload malicious files that can lead to arbitrary code execution or system compromise.

How do I find directory traversal flaws in dynamic file serving code?

Finding directory traversal flaws requires analyzing dynamic file serving code to detect unsafe patterns where user-supplied paths allow unauthorized access to files outside the intended web root directory.

Can I use this security scan for bug bounty preparation?

Yes, you can use this security scan for bug bounty preparation to surface critical flaws in application upload endpoints and path handling before submitting vulnerability reports.

Do I need threat-model.md and recon.md to run a vulnerability analysis?

Yes, this vulnerability analysis reads priority targets from threat-model.md and recon.md to focus the codebase scan, appending structured findings to the vulnerabilities.md file for traceability.

What are the limitations of automated path traversal detection tools?

Automated path traversal detection tools are limited to identifying known unsafe patterns in code, meaning they may miss complex logic flaws requiring manual code review to uncover arbitrary write vulnerabilities.