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 installazioni+3 in 7 giorni27 StelleMITsincronizzato 22 ore fa
Installa
Non hai ancora la CLI di NotHoly? Installala prima.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/web-prototype-pollutionScrive in ~/.notholy/skills dopo aver controllato la firma e lo SHA-256.
FirmaFirmato, ed25519
Pacchettoaa011908…f00b8cef
aa011908fa62…239ef00b8cef1 file · 1.4 KBScansioneBassonessuna segnalazione
Sorgentegithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-prototype-pollution@ee0e0c5
Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.
In questa pagina
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.
File di questa versione
- SKILL.md2.4 KB
Permessi
| Permesso | Dichiarato | Trovato dalla scansione |
|---|---|---|
| Legge file | No | No |
| Scrive file | No | No |
| Esegue comandi shell | No | No |
| Usa la rete | No | No |
| Usa i connettori | No | No |
| Controlla un browser | No | No |
Segnalazioni della scansione
Rivisto il 13 nov 2026
La scansione non ha trovato nulla da segnalare in questa versione.
Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.
| Versione | Pubblicata | Commit | SHA-256 | Firma | Cambio di permessi |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 nov 2026 | ee0e0c5 | aa011908 | Firmata | – |
Altro da NoorQureshi
Tutto da questo editoreAltro in Web e bug bounty
Vai alla categoria- 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
Chiedi tutto quello che il tuo perimetro consente.
Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.
- 1/3
Crea l'account
Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.
PrivatoAzienda - 2/3
Aggiungi crediti
Con carta. Paghi a token, senza abbonamento.
$5.00ricarica minima - 3/3
Chiedi
In chat, oppure installa la CLI ed esegui notholy login nel terminale.
$ notholy login