Hunting Content Type And Parser Confusion

Hunt content-type sniffing and parser confusion where untrusted content is served or consumed with an ambiguous or attacker-influenced type, so a browser sniffs a response as HTML, a backend picks a different interpretation than the sender intended, or two parsers on one path disagree. Use when user content is echoed with a missing, wrong, or user-controlled content type, when uploads are typed by extension or by the client, or when a request body can be parsed more than one way. Covers response sniffing, upload-filter bypass, polyglot files, charset-driven scripting, and multipart differentials. The ambiguously typed content is the source, the sniffer or parser that resolves the type is the sink, and the interpretation the attacker forces is the bug.

UnboundCompute Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/hunting-content-type-and-parser-confusion commit 40863dc871

Frequently asked questions

npx skillmds@latest add unboundcompute/hunting-content-type-and-parser-confusion