/appsec:file-uploadfrom appsec
Audits file upload handlers for security vulnerabilities: missing validation, path traversal, zip slip, content-type bypass, and upload-to-webroot RCE.
Ships in appsec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze source code for file upload vulnerabilities including client-only validation, missing content-type verification, no magic byte checking, path traversal in filenames, upload to webroot with execution, and zip slip (archive extraction path traversal). Insecure file uploads can lead to remote code execution, denial of service, and data exfiltration.
Read ../../shared/schemas/flags.md for the full flag specification. This skill
supports all cross-cutting flags. Key flags for this skill:
--scope determines which files to analyze (default: changed)--depth standard reads code and checks upload handlers--depth deep traces file paths from upload through storage to serving--severity filters output (upload issues are often critical or high)Key CWEs in scope:
Read references/detection-patterns.md for the full catalog of code patterns,
search heuristics, language-specific examples, and false positive guidance.
Parse flags and resolve the file list per ../../shared/schemas/flags.md.
Filter to files likely to contain upload logic:
**/upload/**, **/uploads/**, **/attachments/**)**/files/**, **/media/**, **/storage/**)**/middleware/**, **/controllers/**)**/extract/**, **/unzip/**, **/import/**)**/components/**, **/views/**)Detect scanners per ../../shared/schemas/scanners.md:
semgrep -- primary scanner for upload patternsbandit -- Python file handling issuesbrakeman -- Rails file upload vulnerabilitiesRecord which scanners are available and which are missing.
If semgrep is available, run with rules targeting upload security:
semgrep scan --config auto --json --quiet <target>
Filter results to rules matching file upload, path traversal, and content-type patterns. Normalize output to the findings schema.
Regardless of scanner availability, perform manual code analysis:
accept
attribute, JavaScript validation) without corresponding server-side checks.When --depth deep, additionally trace:
Format output per ../../shared/schemas/findings.md using the UPLD prefix
(e.g., UPLD-001, UPLD-002).
Include for each finding:
These are the high-signal patterns specific to file upload security. Each
maps to a detection pattern in references/detection-patterns.md.
Client-only file type validation -- HTML accept attribute or JavaScript
checks without server-side enforcement.
Missing content-type verification -- Upload handler accepts any file type or trusts the client-provided Content-Type header.
No magic byte validation -- File type determined solely by extension or Content-Type, not by reading the file header bytes.
Path traversal in filename -- Original filename used in path construction
(e.g., ../../../etc/passwd) without sanitization.
Upload to executable directory -- Files stored in webroot where a server
could execute uploaded scripts (.php, .jsp, .py).
Zip slip vulnerability -- Archive extraction writes files outside the
intended directory via ../ entries in archive member paths.
Missing file size limit -- No server-side limit on upload size, enabling denial of service via large files.
Dangerous file types allowed -- No blocklist for executable file types
(.exe, .sh, .php, .jsp, .py).
| Scanner | Coverage | Command |
|---|---|---|
| semgrep | Path traversal, unrestricted upload, zip slip | semgrep scan --config auto --json --quiet <target> |
| bandit | Python file handling, path traversal | bandit -r <target> -f json -q |
| brakeman | Rails file upload, content type | brakeman -q -f json -o /dev/stdout |
Fallback (no scanner): Use Grep with patterns from references/detection-patterns.md
to find upload handlers, filename usage, archive extraction, and content-type
checks. Report findings with confidence: medium.
Use the findings schema from ../../shared/schemas/findings.md.
UPLD (e.g., UPLD-001)file-uploadspecializedUPLDCWE-434, CWE-22A04:2021 (Insecure Design)T (Tampering) or E (Elevation of Privilege)Severity guidance for this category:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub florianbuetow/claude-code --plugin appsec62 skills in this plugin
/access-controlThis skill should be used when the user asks to "check for access control issues", "analyze authorization", "find IDOR vulnerabilities", "audit CORS configuration", "check for privilege escalation", or mentions "access control", "authorization", "IDOR", "CORS", "JWT tampering", or "directory traversal" in a security context. Maps to OWASP Top 10 2021 A01: Broken Access Control.
/apiThis skill should be used when the user asks to "check API security", "audit REST API", "find BOLA vulnerabilities", "check for mass assignment", "analyze API rate limiting", "detect excessive data exposure", or mentions "API security", "BOLA", "IDOR", "mass assignment", "rate limiting", "broken function-level authorization", "excessive data exposure", or "OWASP API Top 10" in a security context.
/attack-surfaceThis skill should be used when the user asks to "map attack surface", "list entry points", "inventory API endpoints", "find all inputs", "enumerate routes", "discover exposed endpoints", or "map external interfaces". Also triggers when the user asks about exposed APIs, form handlers, file upload endpoints, WebSocket handlers, CLI argument parsers, or wants to understand where external data enters the system.
/authThis skill should be used when the user asks to "check for authentication issues", "analyze auth", "find credential vulnerabilities", "review login security", "check session management", or mentions "authentication", "passwords", "MFA", "sessions", or "brute force" in a security context. Maps to OWASP Top 10 2021 A07: Identification and Authentication Failures.
/business-logicThis skill should be used when the user asks to "check business logic security", "find logic flaws", "audit workflow security", "check for coupon abuse", "detect negative amount exploits", "analyze state machine security", or mentions "business logic", "workflow bypass", "negative amount", "coupon abuse", "self-referral", "state manipulation", or "time-based exploit" in a security context.
/configThis skill should be used when the user asks to "configure security", "appsec settings", "security preferences", or invokes /appsec:config. Manages security tool preferences and thresholds.
Other plugins' skills for the same job