file-upload-bypass

Bypass file upload restrictions to achieve code execution on web applications.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill file-upload-bypass
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-upload-bypass
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/web/file-upload-bypass
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill file-upload-bypass

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires exiftool, ffuf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps penetration testers bypass file upload restrictions on web applications to achieve code execution or other impacts on the target server.

Core Features & Use Cases

  • Bypass Various Validations: Circumvents extension checks, content-type validation, magic byte inspection, and server-side processing.
  • Exploit Server Configurations: Leverages .htaccess, web.config, and other server-specific files to enable malicious file execution.
  • Archive Exploitation: Utilizes ZIP path traversal and null byte filename truncation to plant webshells.
  • Use Case: You've identified a file upload endpoint on a target web server. Use this Skill to test and exploit various bypass techniques to upload a webshell and gain command execution.

Quick Start

Use the file-upload-bypass skill to attempt bypassing file upload restrictions on the target URL 'http://example.com/upload'.

Frequently Asked Questions about file-upload-bypass

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

FAQPage Schema
How do I bypass file upload restrictions to achieve remote code execution?

Bypass file upload restrictions for remote code execution by circumventing extension checks, content-type validation, and magic byte inspection. You can also exploit server configurations like .htaccess or web.config to enable malicious webshell execution on the target server.

How can I use exiftool to bypass magic byte validation during a webshell upload?

Use exiftool to manipulate file metadata and inject malicious payloads, allowing your webshell to bypass magic byte inspection. This technique helps disguise the file so that server-side validation routines accept the upload without detecting the embedded code.

Can I exploit .htaccess or web.config files to execute an uploaded webshell?

Yes, exploit .htaccess or web.config files to alter server configurations and enable webshell execution. By uploading these server-specific configuration files, you can bypass extension restrictions and map custom file types to executable handlers.

Does exploiting ZIP archives work for bypassing file upload validation?

Exploiting ZIP archives works for bypassing file upload validation through path traversal and null byte filename truncation techniques. This approach allows you to plant webshells by manipulating archive extraction logic on the target web server.

Why does my file upload bypass fail against server-side processing validation?

File upload bypass attempts fail against server-side processing validation when the server inspects internal file structures rather than just extensions or headers. Exploiting vulnerabilities in server-side processors like ImageMagick can help circumvent these strict validation checks.

What is the best way to test file upload vulnerabilities on a target web application?

The best way to test file upload vulnerabilities is to intercept upload requests using Burp Suite and analyze file structures with exiftool. This combination allows you to systematically test extension, content-type, and magic byte bypass techniques to achieve code execution.