hunt-file-upload

Identify and validate file upload vulnerabilities using common bypass techniques.

13|2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/pdparchitect/rook --skill hunt-file-upload-pdparchitect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-file-upload
Source: https://github.com/pdparchitect/rook/tree/main/skills/hunt-file-upload
Command: npx skills add https://github.com/pdparchitect/rook --skill hunt-file-upload-pdparchitect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the high-risk security flaws associated with file upload features, where improper validation allows attackers to execute arbitrary code or compromise system integrity.

Core Features & Use Cases

  • Bypass Techniques: Automates testing against 10 common bypass methods including extension manipulation, magic byte spoofing, and null byte injection.
  • Vulnerability Detection: Identifies insecure endpoints like /upload, /avatar, and /import that are susceptible to RCE, XSS, or SSRF.
  • Use Case: When auditing a web application, use this skill to verify if an avatar upload feature can be coerced into accepting a malicious PHP shell or an SVG containing an XSS payload.

Quick Start

Use the hunt-file-upload skill to audit the file upload endpoint at the target URL for RCE and XSS vulnerabilities.

Frequently Asked Questions about hunt-file-upload

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

FAQPage Schema
How do I test file upload vulnerabilities for RCE and XSS?

To test file upload vulnerabilities for RCE and XSS, audit insecure endpoints like /upload or /avatar by systematically applying bypass techniques such as extension manipulation, magic byte spoofing, and null byte injection to verify server-side execution handling.

What are common file upload bypass techniques used in pentesting?

Common file upload bypass techniques in pentesting include extension manipulation, magic byte spoofing, and null byte injection. These methods test whether endpoints improperly validate file types, allowing malicious payloads like PHP shells or XSS SVGs to execute.

Can I use automated testing to detect SSRF through file upload features?

Yes, you can detect SSRF through file upload features by systematically validating endpoints like /import or /upload. Testing verifies if server-side document processing can be coerced into triggering Server-Side Request Forgery via malicious file payloads.

Does magic byte spoofing work to bypass web application upload restrictions?

Magic byte spoofing works to bypass web application upload restrictions when servers rely solely on file header inspection. By injecting valid magic bytes into a malicious file, attackers can disguise payloads to evade inadequate validation filters.

What is the best way to audit an avatar upload feature for security flaws?

The best way to audit an avatar upload feature for security flaws is to systematically test the endpoint against multiple bypass methods. Verify whether the application accepts malicious PHP shells or SVG files containing XSS payloads through extension manipulation.

Why does null byte injection bypass file extension validation?

Null byte injection bypasses file extension validation by exploiting string termination handling in server-side code. Injecting a null character truncates the filename, tricking the server into processing a benign extension while executing the malicious actual extension.