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.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Content Type?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-content-type)
---
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.