Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Finds insecure file upload vulnerabilities via discovery and batched subagent verification, saving results to sast/fileupload-results.md.
Use this skill ↓68% 64%−5 ptsof test cases passed
Passed 14 of 22 test cases with the skill, and 15 of 22 without it.
3 of 3 safety checks passed
You are performing a focused security assessment to find insecure file upload vulnerabilities in a codebase. This skill uses a three-phase approach with subagents: discovery (find all places where uploaded files are received and stored), batched verify (check bypass vectors in parallel batches of up to 3 upload sites each), and merge (consolidate batch reports into one results file).
Prerequisites: sast/architecture.md must exist. Run the analysis skill first if it doesn't.
Insecure file upload occurs when an application accepts files from users without properly validating or restricting what can be uploaded, allowing an attacker to upload executable or malicious files. The most critical outcome is Remote Code Execution (RCE): an attacker uploads a web shell (e.g., a .php file) and the server executes it when accessed via a direct URL.
The core pattern: a user-supplied file reaches a storage location without adequate extension validation, and the stored file is accessible or executable.
file.save(upload_path) with no validationContent-Type: image/png without verifying the actual extension or file content — trivially bypassed by setting the header manually.php is blocked but .php3, .php4, .php5, .phtml, .phar, .shtml are not.php but allowing .PHP, .Php, .pHpshell.php.jpg — code extracts the last .jpg and considers it safe, but the server (Apache) serves it as PHP../../webroot/shell.php stored via an unsanitized filename../ but not encoded variants %2e%2e%2fDo not flag these as file upload vulnerabilities:
<script> that is reflected back — that's XSS, not an upload execution issueContent-Disposition: attachment, or stored in an object storage bucket with no public execution capabilityWhen you see these patterns together, the code is likely not vulnerable:
1. Allowlist of safe extensions (most important)
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.