offensive-file-upload

offensive-file-upload is a skill for Claude Code, Codex from Miosa-osa/OSA. It costs 59 tokens per session (8,026 once invoked), scanned B, a copy of offensive-file-upload, Apache-2.0.

A checklist for testing file-upload features for security weaknesses. It covers checks involving file types, extensions, file signatures, filenames, uploaded SVG or HTML, server-side processing, and timing races.

In plain words
What is it for?
Use it to assess upload endpoints in web-application penetration tests and bug-bounty programmes.
Why use it?
File-upload fields can let attackers bypass restrictions or make a server process unsafe content. The checklist helps testers examine the different validation and processing layers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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

Good fit Use it to assess upload endpoints in web-application penetration tests and bug-bounty programmes.

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/Miosa-osa/OSA
agentmods
npx agentmods add skills/miosa-osa/osa/offensive-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 offensive-file-upload

README.md
[![agentmods](https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-file-upload/github.svg)](https://agentmods.dev/skills/miosa-osa/osa/offensive-file-upload)
Your own site
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-file-upload"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-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 offensive-file-upload

Your own site · 80×15
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-file-upload"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-file-upload.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod 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.00059 $0.08026
Opus 5.5 $0.00024 $0.03210
Sonnet 5.5 $0.00012 $0.01605
Haiku 4.5 $0.00006 $0.00803

Measured 1mo ago against content hash 2a3858496e46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

offensive-file-upload scanned grade B with 2 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 1mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Tar Permissions Abuse**: Create tar with restrictive parent dir permissions (`chmod 300`) but permissive subdir (`chmod 700`) containing symlinks.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.post(target_url, data=multipart_data, headers=headers)
Origin

This is a copy

91% identical to offensive-file-upload — 53 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

priv/skills/offensive-file-upload/SKILL.md · 854 lines

How it starts

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

SKILL: File Upload Vulnerabilities

Metadata

Description

File upload vulnerability checklist: MIME type bypass, extension bypass, magic byte manipulation, path traversal in filenames, stored XSS via SVG/HTML upload, server-side processing attacks, and race conditions. Use for assessing file upload endpoints in web app pentests or bug bounty.

Trigger Phrases

Use this skill when the conversation involves any of: file upload, MIME bypass, extension bypass, magic byte, path traversal upload, SVG XSS, polyglot, upload bypass, malicious upload, web shell upload

Full Methodology

File Upload Vulnerabilities

Mechanisms

flowchart TD
    A[File Upload Vulnerabilities] --> B[Insufficient File Type Validation]
    A --> C[Improper Extension Handling]
    A --> D[Inadequate File Content Analysis]
    A --> E[Unsafe File Storage]
    A --> F[File Operation Mishandling]
    A --> G[Directory Traversal]
    A --> H[Race Conditions]

    B --> I[Remote Code Execution]
    C --> I
    D --> J[Client-Side Attacks]
    E --> I
    F --> K[Denial of Service]
    G --> L[Arbitrary File Access]
    H --> I

File upload vulnerabilities occur when web applications allow users to upload files without implementing proper validation, filtering, and handling mechanisms. These vulnerabilities can lead to various attacks, ranging from simple web defacement to complete server compromise through remote code execution.

The core technical issues behind file upload vulnerabilities include:

  • Insufficient File Type Validation: Failure to properly validate the actual content/type of uploaded files
  • Improper Extension Handling: Not restricting dangerous file extensions or allowing easy bypasses
  • Inadequate File Content Analysis: Not checking the actual file content versus relying only on extension or content-type
  • Unsafe File Storage: Storing files in executable directories or with dangerous permissions
  • File Operation Mishandling: Not securely handling file operations during the upload process
  • Directory Traversal Vulnerabilities: Allowing manipulation of upload paths
  • Race Conditions: Timing issues during validation and moving of uploaded files
  • Archive Extraction Flaws: Insecure handling of archive formats like ZIP or TAR (e.g., Symlink abuse, Zip Slip)

Read the full file on GitHub · 854 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. 1mo ago First seen · 854 lines · 59 tokens per session scan B 2a3858496e46

Subscribe to this mod's changes

offensive-file-upload is a skill published in the GitHub repository Miosa-osa/OSA (78 stars, last pushed 11d ago), licensed Apache-2.0. It adds 59 tokens to every session and 8,026 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). It is 91% identical to offensive-file-upload, differing in 53 lines, and is treated as a copy.

Related

Other skills, from other repositories

n8n-mcp-workflows

MCP-first patterns for designing, validating, and operating n8n automations with explicit retries, failure paths, and audit trails.

MRWillisT/PullNexus · 35 tokens

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

status

Show whether Mem0 memory is working in this repository, covering configuration, capture state, pending flushes, and whether the Mem0 API key is valid. Use when the user asks whether memory is on, why a memory is missing, or anything looks broken.

mem0ai/mem0 · 54 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

stripe-docs

Use when the user or agent needs to read, search, or look up Stripe documentation or API reference. Prefer this over curl or WebFetch for any docs.stripe.com content. Use to fetch gated documentation.

stripe/ai · 46 tokens