insecure-file-upload

Detect and exploit insecure file upload vulnerabilities in web applications.

6|1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/securityfortech/hacking-skills --skill insecure-file-upload
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: insecure-file-upload
Source: https://github.com/securityfortech/hacking-skills/tree/main/skills/web/logic/insecure-file-upload
Command: npx skills add https://github.com/securityfortech/hacking-skills --skill insecure-file-upload

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical security vulnerability of insecure file uploads, preventing attackers from uploading malicious files that could lead to remote code execution, cross-site scripting, or other severe compromises.

Core Features & Use Cases

  • Vulnerability Detection: Identifies common insecure file upload flaws like extension bypass, MIME type confusion, magic byte spoofing, and path traversal.
  • Attack Scenario Testing: Provides methodologies to test for SVG XSS, XXE via Office documents, and ZIP slip vulnerabilities.
  • Use Case: When testing a web application feature that allows users to upload profile pictures or documents, use this Skill to ensure that only legitimate files can be uploaded and that no malicious code can be embedded or executed.

Quick Start

Test the file upload endpoint at '/upload' for insecure file upload vulnerabilities.

Frequently Asked Questions about insecure-file-upload

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

FAQPage Schema
How do I test file upload endpoints for remote code execution vulnerabilities?

Testing file upload endpoints for remote code execution involves uploading files with spoofed magic bytes, bypassed extensions, and path traversal payloads to analyze multipart/form-data mechanisms for unauthorized code execution flaws.

What is magic byte spoofing and how does it bypass MIME type validation?

Magic byte spoofing is manipulating file headers to match expected file types, bypassing MIME type validation by passing content-type sniffing checks while delivering malicious executable content to the server.

How do I prevent SVG XSS and XXE attacks via uploaded Office documents?

Preventing SVG XSS and XXE via Office documents requires testing document import features for embedded malicious scripts and XML external entity payloads to validate that user-supplied file storage neutralizes active content.

Can I detect ZIP slip and path traversal vulnerabilities in file upload mechanisms?

Detecting ZIP slip and path traversal in file upload mechanisms involves analyzing archive extraction and file storage processes to identify if uploaded file names can escape target directories and overwrite system files.

What are polyglot files and how are they used in vulnerability testing?

Polyglot files are crafted payloads valid as multiple file formats simultaneously, used in vulnerability testing to bypass restrictive file type validation and execute embedded malicious code through insecure upload parsers.

Does unrestricted file upload testing work on profile picture and document import features?

Unrestricted file upload testing works on profile picture and document import features by analyzing user-supplied file storage to ensure only legitimate files are accepted and malicious content is neutralized.