Client-side prototype pollution — polluting Object.prototype via URL query/hash or JSON merge/clone sinks, then chaining to a gadget for DOM XSS or logic bypass (library and browser-builtin gadgets). Tier 1. Payloads: payloads/client-side.md. Use for apps that parse URL params/JSON into objects client-side.
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 Prototype Pollution?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-prototype-pollution)
---
name: prototype-pollution
description: "Client-side prototype pollution — polluting Object.prototype via URL query/hash or JSON merge/clone sinks, then chaining to a gadget for DOM XSS or logic bypass (library and browser-builtin gadgets). Tier 1. Payloads: payloads/client-side.md. Use for apps that parse URL params/JSON into objects client-side."
---
# Client-Side Prototype Pollution
Pollute `Object.prototype`, then find a gadget that turns it into XSS or a security-control bypass.
## Trigger phrases
`prototype pollution, __proto__, constructor prototype, client side prototype pollution, pp gadget`
## Method
1. **Pollute:** `?__proto__[zq]=polluted`, `?constructor[prototype][zq]=polluted`, hash variants, and JSON-merge sinks `{"__proto__":{"zq":"x"}}`. Verify `Object.prototype.zq` in the console.
2. **Find a gadget:** a property the app reads that reaches a sink — `innerHTML`, script `src`, config flags, `srcdoc`, template options, sanitizer config. Known gadgets in jQuery, Lodash, and browser builtins (DOMPurify config, script-src).
3. **Chain:** pollution + gadget → DOM XSS (→ `dom-xss`) or auth/logic bypass; DOMPurify-config gadgets can disable sanitization.
## Escalation
DOM XSS, bypass of client-side security flags, or CSP/sanitizer weakening.
## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.
## Evidence
The pollution vector, the gadget, and the resulting XSS/bypass (console + execution proof).