Skip to content
Back to skills

Content Type

ASecurity

Content-type and MIME-handling assessment — missing/incorrect Content-Type, missing X-Content-Type-Options (MIME sniffing), content-type confusion (parser mismatch enabling XSS or filter bypass), and dangerous served types (user HTML/SVG served inline). Tier 1. Use when the app serves user-influenced content or reflects input across content types.

  • 16 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 17, 2026
securitybackend

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill content-type --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Content Type?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Content Type
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-content-type/badge)](https://www.skillsdirectory.com/skills/anandjogawade-content-type)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: content-type
description: Content-type and MIME-handling assessment — missing/incorrect Content-Type, missing X-Content-Type-Options (MIME sniffing), content-type confusion (parser mismatch enabling XSS or filter bypass), and dangerous served types (user HTML/SVG served inline). Tier 1. Use when the app serves user-influenced content or reflects input across content types.
---

# Content-Type / MIME Handling

How the server labels and how browsers sniff content drives XSS and filter-bypass exposure.

## Trigger phrases
`content-type, mime sniffing, x-content-type-options, content type confusion, mime xss`

## Checks
- **Missing `X-Content-Type-Options: nosniff`** + user-controlled content → browser MIME-sniffs to HTML/JS → stored XSS from "non-HTML" uploads/responses.
- **User HTML/SVG served inline** (`text/html`/`image/svg+xml` with `Content-Disposition: inline`) → stored XSS (serve as `text/plain`/attachment instead).
- **Content-type confusion:** endpoint accepts a different content-type than expected (form↔JSON↔XML) → parser mismatch enabling injection / WAF bypass (→ `http-parameter-pollution`, `waf-bypass`).
- **Charset issues:** missing/attacker-settable charset → UTF-7-style/encoding XSS on legacy stacks.
- Incorrect types on downloads (executable served as text), JSON served as `text/html` (→ `xssi`).

## Escalation
MIME-sniff/inline-serve → stored XSS; content-type confusion → injection/WAF bypass.

## Verification (background, before reporting)
Re-check the header/response across multiple endpoints and a clean request to avoid false positives; confirm exploitability (not just absence) before rating. Report true positives only. Backend/Burp: see `zazy-orchestrator`.

## Evidence
The response/upload content-type behavior, the sniffing/confusion proof, and the resulting attack.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.