prototype-pollution
Test for JavaScript prototype pollution leading to XSS, RCE, or denial of service
by VigilOSS★ 35 GitHub stars
Install prototype-pollution in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Prototype Pollution Testing
When to Activate
- JavaScript apps (Node back-ends, SPAs) that deep-merge, clone or path-assign user-controlled objects: JSON bodies, nested query strings, URL hashes, config imports.
--technique PROTOTYPE-POLLUTION; send via vigil assess kali exec --technique PROTOTYPE-POLLUTION --intent "<purpose>" --probe-kind payload --phase consume-test --timeout 30 -- curl …, and render client-side checks with vigil assess kali browser. Detection probes, merge
sinks, filter bypasses, and XSS/RCE/DoS gadgets (EJS, Pug, Handlebars, child_process via
argv0/NODE_OPTIONS): agent/references/payloads/prototype-pollution-payloads.md.
Method
- Server-side pollution is process-wide and lasts until restart, so it affects every user.
Detect with a benign property whose effect shows up in later responses (Express
json spaceschanging indentation, a pollutedstatuson an error path), via__proto__,constructor.prototypeand nested forms. Do not probe withisAdmin,shellor similar on a shared target: properties that change authorization or execution, and DoS gadgets, need operator approval (agent/shared-constraints.md§1). Note the benign pollution in your handoff. - Client-side:
?__proto__[x]=y,?constructor[prototype][x]=yand hash variants, then check({}).xin the rendered page; find the merge sink in the bundle (lodash, jQueryextend(true), deep-extend and others) and look for a script gadget. - Escalate through a gadget in the code that runs after pollution: a template engine (EJS,
Pug, Handlebars),
child_processspawning node, an authorization check reading a default property, or a NoSQL query object inheriting an operator key (agent/skills/nosql-injection/SKILL.md). Framework entry points worth trying: Express body-parser and Koa bodyparser nesting, Fastify schema pass-through, Next.js/Nuxt API routes andgetServerSideProps.
What to Record
Vector (body, query, hash), the payload, the observable proof of pollution, the gadget and the
outcome it reaches (agent/rules/hunting.md §2: script execution in another user's browser, id
output, an authorization check flipped), the library and version, and any process-wide state left
behind. Pollution with no reachable gadget is a chain component
(agent/references/finding-fp-and-severity-gate.md). Format:
agent/references/runtime-guides/web-finding-recording.md.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the prototype-pollution skill do?
Test for JavaScript prototype pollution leading to XSS, RCE, or denial of service
How do I install the prototype-pollution skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the prototype-pollution skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…