web-prototype-pollution
JavaScript prototype pollution (client & server) → XSS, auth bypass, RCE via gadgets. Load on Node.js/JS apps that merge user objects: query/JSON parsing, `Object.assign`/deep-merge, lodash/jQuery.extend, config merges. Signals: __proto__, constructor.prototype in params, Node backend, client-side s
v2026.10.14-ee0e0c53 installs+3 in 7 days27 StarsMITsynced 22 hours ago
Install
No NotHoly CLI yet? Install it first.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/web-prototype-pollutionWrites to ~/.notholy/skills after checking the signature and the SHA-256.
SignatureSigned, ed25519
Packageaa011908…f00b8cef
aa011908fa62…239ef00b8cef1 file · 1.4 KBScanLowno findings
Sourcegithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-prototype-pollution@ee0e0c5
On this page
When it applies
A JS app merges attacker-controlled keys into an object without blocking __proto__ /
constructor / prototype. Client-side or Node server-side. Impact needs a "gadget" — code
that later reads a polluted property.
Why it works
In JS, every object shares Object.prototype. Writing __proto__.x via a vulnerable merge sets
x on every object. A later read of obj.x (that the dev assumed was undefined) now returns
your value — turning a config default, an HTML attribute, or a command option to your advantage.
Method
- Find the sink: params/JSON merged via deep-merge/
Object.assign/lodashmerge/set,$.extend(true,...), query parsers. Test?__proto__[test]=xor{"__proto__":{"test":"x"}}. - Confirm pollution: check
Object.prototype.testin console (client) or a reflected default (server). - Chain to a gadget:
- Client: pollute a property a library reads to inject HTML/script → DOM XSS (e.g. sanitizer options, template defaults).
- Server (Node): pollute options later used by
child_process(shell,NODE_OPTIONS,argv0), template engines, orejs/lodash.template→ RCE; or flip anisAdmin/auth default → authz bypass.
- Automate discovery with
ppmap/DOM Invader prototype-pollution mode.
Gotchas
- Pollution with no reachable gadget is low-impact — find the read to prove real effect.
Object.freeze(Object.prototype)/Object.create(null)/ Map usage kills it.- Server-side needs the polluted key to survive to a dangerous consumer — trace it.
Verify success
A polluted prototype property produces concrete impact — XSS firing, an auth default flipped, or command execution via a known gadget.
References
PortSwigger prototype-pollution labs; "Server-side prototype pollution" (PortSwigger); HackTricks.
Files in this version
- SKILL.md2.4 KB
Permissions
| Permission | Declared | Found by the scan |
|---|---|---|
| Reads files | No | No |
| Writes files | No | No |
| Runs shell commands | No | No |
| Uses the network | No | No |
| Uses connectors | No | No |
| Drives a browser | No | No |
Scan findings
Reviewed on Nov 13, 2026
The scan found nothing to flag in this version.
A clean scan lowers the risk but does not prove a package is safe. Read what you install.
| Version | Published | Commit | SHA-256 | Signature | Permission change |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | Nov 13, 2026 | ee0e0c5 | aa011908 | Signed | – |
More from NoorQureshi
All from this publisherMore in Web and bug bounty
See the category- src-hunterzhaoxuya520/src-hunter5
- owasp-top10-analysissecurityskills/owasp-top10-analysis5
- testing-for-xml-injection-vulnerabilitiesmukul975/testing-for-xml-injection-vulnerabilities5
- offensive-xsssnailsploit/offensive-xss5
- offensive-rcesnailsploit/offensive-rce5
- source-review-techniqueaeondave/source-review-technique5
Ask anything your scope allows.
Create an account, add credits and ask the first question in the chat or the terminal.
- 1/3
Create the account
Individual or company. You can switch to a company later without losing balance or keys.
IndividualCompany - 2/3
Add credits
By card. Pay per token, no subscription.
$5.00minimum deposit - 3/3
Ask
In the chat, or install the CLI and run notholy login in your terminal.
$ notholy login