Skip to content
yaklang avatar

Prototype Pollution

Expert prototype pollution playbook for JavaScript merge sinks, parser behavior, and gadget chains in Node and browsers.

CCM score
66 of 100
skills.sh installs
4K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers __proto__ and constructor.prototype probes for client-side fragments and server-side JSON or form bodies
  • Includes detection tables mapping Express and qs-style payloads (parameterLimit, allowDots, json spaces) to observable follow-up-request effects
  • Documents exploitation gadgets for EJS, a historical Timelion expression chain (CVE-2019-7609), and child_process option pollution
  • Designed for authorized security testing where user input is merged into objects by query parsers, JSON bodies, or deep-assign routines

Install

$ npx -y skills add yaklang/hack-skills --skill prototype-pollution -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SKILL: Prototype Pollution — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert prototype pollution for client and server JS. Covers __proto__ vs constructor.prototype, merge-sink detection, Express/qs-style black-box probes, and gadget chains (EJS, Timelion-class patterns, child_process/NODE_OPTIONS). Assumes you know object spread and prototype inheritance — focus is on parser behavior and post-pollution sinks.

Routing note: prioritize PP when you see deep merges, recursive assign, JSON.parse followed by Object.assign, or URL queries converted to nested objects.

0. QUICK START

Client-side first probes

#__proto__[polluted]=1
#__proto__[polluted]=polluted
#constructor[prototype][polluted]=1

When input can reflect into DOM or framework routing, pair with alert(1) / console checks to observe whether global object properties were polluted.

#__proto__[xxx]=alert(1)

Server-side first probes(JSON / form)

{"__proto__":{"polluted":true}}
{"constructor":{"prototype":{"polluted":true}}}

Details

Repository
github.com/yaklang/hack-skills
Categories
Security, Web3 & Crypto
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Similar to Prototype Pollution

More Security