Prototype Pollution
Detects JavaScript prototype pollution vulnerabilities where attacker-controlled keys can modify Object.prototype.
от zakirkun★ 40 звёзд на GitHub
Установить Prototype Pollution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Prototype Pollution
Overview
Prototype pollution occurs when JavaScript code recursively merges or assigns properties from user-controlled objects without filtering dangerous keys like __proto__, constructor, or prototype. Modifying Object.prototype affects all JavaScript objects in the application, enabling:
- Authentication bypass (
isAdmininjected into base object) - Denial of Service
- Remote Code Execution (in some Node.js contexts)
Detection Strategy
- Recursive merge/assign functions without
__proto__key filtering - Direct
obj[key] = valuewherekeycomes from user input - Libraries known to be vulnerable (lodash < 4.17.13, merge < 2.1.1)
Remediation
- Validate and reject
__proto__,constructor,prototypeas keys - Use
Object.create(null)for pure hash maps - Use
JSON.parse()with schema validation before merging - Update vulnerable dependencies
Vulnerable:
function merge(target, src) {
for (const key of Object.keys(src)) {
target[key] = src[key]; // key could be __proto__
}
}
Safe:
const FORBIDDEN_KEYS = new Set(['__proto__', 'constructor', 'prototype']);
function merge(target, src) {
for (const key of Object.keys(src)) {
if (!FORBIDDEN_KEYS.has(key)) target[key] = src[key];
}
}
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл Prototype Pollution?
Detects JavaScript prototype pollution vulnerabilities where attacker-controlled keys can modify Object.prototype.
Как установить скилл Prototype Pollution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Prototype Pollution запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…