Missing or Incorrect Content-Type Validation
Detects API endpoints that do not validate or enforce Content-Type headers, enabling MIME-type confusion and CSRF attacks.
от zakirkun★ 40 звёзд на GitHub
Установить Missing or Incorrect Content-Type Validation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Missing Content-Type Validation
Overview
APIs that accept requests without validating Content-Type are vulnerable to:
- CSRF: Browser forms submit as
application/x-www-form-urlencodedwhich HTML forms can send cross-origin - Content confusion: Unexpected parsing if body is mismatched with Content-Type
- Polyglot attacks: Content that is valid as multiple types
Modern CSRF protection relies on the browser's cross-origin restriction on JSON Content-Type.
Remediation
- Validate Content-Type for all POST/PUT/PATCH endpoints
- Reject requests with unexpected Content-Type
- Use CSRF tokens even for JSON APIs as defense-in-depth
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл Missing or Incorrect Content-Type Validation?
Detects API endpoints that do not validate or enforce Content-Type headers, enabling MIME-type confusion and CSRF attacks.
Как установить скилл Missing or Incorrect Content-Type Validation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Missing or Incorrect Content-Type Validation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…