ersinkoc/security-check/sc-file-upload
Claude Code and agent skill by ersinkoc/security-check
- community
Checking that the SKILL.md file is still in the repository.
Insecure file upload detection — unrestricted types, MIME mismatch, polyglot files, and webshell upload
Install
npx vskill@latest install ersinkoc/security-check/sc-file-uploadSKILL.md
The same SKILL.md was published earlier as ersinkoc/security-check/sc-file-upload.
SC: Insecure File Upload
Purpose
Detects insecure file upload vulnerabilities including unrestricted file type uploads, MIME type vs extension mismatches, double extension bypasses, executable uploads to web-accessible directories, missing file size limits, and archive extraction attacks. Focuses on upload endpoints that could lead to remote code execution or stored XSS.
Activation
Called by sc-orchestrator during Phase 2 when file upload functionality is detected.
Phase 1: Discovery
Keyword Patterns to Search
Vulnerability Patterns
1. No File Type Validation:
2. Upload to Webroot:
Checks
- Is file type validated server-side (not just client-side)?
- Are files stored outside the web root?
- Are filenames sanitized and randomized?
- Is file size limited?
- Are magic bytes checked (not just extension/MIME)?
- Is the upload directory configured to not execute scripts?
Severity Classification
- Critical: Unrestricted upload to webroot enabling RCE (PHP, JSP, ASPX)
- High: Upload allowing XSS (SVG, HTML) or bypassing type checks
- Medium: Missing file size limits (DoS), client-side-only validation
- Low: Upload configuration weaknesses without clear exploitation path
Output Format
Finding: UPLOAD-{NNN}
- Title: Insecure File Upload in {endpoint}
- Severity: Critical | High | Medium | Low
- Confidence: 0-100
- File: file/path:line
- Vulnerability Type: CWE-434 (Unrestricted Upload of File with Dangerous Type)
- Description: File upload at {endpoint} lacks {validation type}.
- Impact: Remote code execution, stored XSS, denial of service.
- Remediation: Validate file type server-side, store outside webroot, randomize filenames, set size limits.
- References: https://cwe.mitre.org/data/definitions/434.html
Common False Positives
- Cloud storage uploads — files uploaded to S3/GCS are not directly executable
- Image processing pipelines — files processed through ImageMagick/Sharp before storage
- API payload uploads — JSON/XML payloads parsed as data, not stored as files
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sc-file-upload/SKILL.md
Popularity
- Repository stars
- 46
- Repository forks
- 5
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ersinkoc/security-check/sc-file-upload)