sc-file-upload

Detect insecure file upload vulnerabilities in server-side upload handlers.

7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/fatihkan/badi --skill sc-file-upload-fatihkan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-file-upload
Source: https://github.com/fatihkan/badi/tree/main/.claude/skills/security-check/sc-file-upload
Command: npx skills add https://github.com/fatihkan/badi --skill sc-file-upload-fatihkan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Insecure file upload detection — unrestricted types, MIME mismatch, polyglot files, and webshell upload

Core Features & Use Cases

  • Detects common upload flaws including unrestricted file types, MIME-type mismatches, double extensions, and uploads to web-accessible directories.
  • Provides remediation guidance such as enforcing server-side validation, sanitizing filenames, and storing uploads outside the web root.
  • Use Case: security engineers scan upload endpoints and generate findings for CI pipelines and threat modeling.

Quick Start

Run the scanner against your upload endpoints to identify misconfigurations and risky patterns.

Frequently Asked Questions about sc-file-upload

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

FAQPage Schema
How do I prevent webshell upload through insecure file upload vulnerabilities?

Prevent insecure file upload vulnerabilities by enforcing server-side validation, restricting MIME types, rejecting double extensions, and storing uploaded files outside the web root with randomized filenames.

What are the common file upload vulnerabilities that lead to remote code execution?

Common file upload vulnerabilities include unrestricted file types, MIME-type mismatches, double extensions, polyglot files, and uploading webshells to web-accessible directories, all of which can enable remote code execution.

How do I detect MIME mismatch and double extension attacks in server-side upload handlers?

Detect MIME mismatch and double extension attacks by scanning server-side upload handlers across languages and frameworks, verifying that file extensions and MIME types align and rejecting suspicious patterns.

Does this insecure file upload scanner work across different languages and frameworks?

Yes, this scanner applies to server-side upload handlers across various languages and frameworks to detect misconfigurations, risky patterns, and unrestricted upload types without requiring specific dependencies.

How do I secure file uploads to generate findings for CI pipelines and threat modeling?

Secure file uploads for CI pipelines by running the scanner against upload endpoints to identify misconfigurations, enforcing filename sanitization, and generating actionable findings for threat modeling.

Why should uploaded files be stored outside the web root with randomized filenames?

Storing uploaded files outside the web root with randomized filenames prevents direct web access to malicious files, mitigating the risk of webshell execution and remote code execution attacks.