Skip to content
Back to skills

Prototype Pollution

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitybackendsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill prototype-pollution --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prototype Pollution?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prototype Pollution
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-prototype-pollution/badge)](https://www.skillsdirectory.com/skills/anandjogawade-prototype-pollution)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.