Back to skills
SKILL.md
Code Injection
ASecurityServer-side code/expression injection — input reaching eval/exec/interpreter sinks in PHP, Python, Ruby, Perl, Node or Java. Detection via evaluation probes, language-specific RCE gadgets, and escalation. Tier 1 (intrusive RCE honors the authorization gate). Payloads: payloads/command-exec.md. Use when input is evaluated as application-language code.
- 16 stars
- 0 votes
- 0 copies
- 6 views
- Added November 17, 2026
Works with
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill code-injection --agent claude-codeAre you the author of Code Injection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-code-injection)---
name: code-injection
description: "Server-side code/expression injection — input reaching eval/exec/interpreter sinks in PHP, Python, Ruby, Perl, Node or Java. Detection via evaluation probes, language-specific RCE gadgets, and escalation. Tier 1 (intrusive RCE honors the authorization gate). Payloads: payloads/command-exec.md. Use when input is evaluated as application-language code."
---
# Code / Expression Injection
Input is evaluated as application code. Confirm evaluation, then drive the language-specific sink to RCE.
## Trigger phrases
`code injection, eval injection, rce via eval, dynamic code execution, assert injection`
## Method
1. **Probe:** inject `7*7` → `49` where output shows; language-specific probes (`${7*7}`, `#{7*7}`).
2. **Sinks by language** (${CLAUDE_PLUGIN_ROOT}/payloads/command-exec.md):
- PHP: `eval`/`assert`/`preg_replace /e`/`create_function` → `system()`.
- Python: `eval`/`exec`/format-string `{0.__class__...}` → `__import__('os').system()`.
- Ruby: `eval`/`send`/ERB → ``id``. Perl: `eval`/backticks/`open`.
- Node: `eval`/`Function`/`vm` → `child_process` (→ `server-side-js-injection`).
- Java: scripting engines + EL/OGNL/SpEL (→ `el-injection`, `web-ssti`).
3. **Blind:** OAST/time callback. **Escalate:** RCE → shell/secret read/pivot.
## 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`/eval proof, the sink, and execution proof (OAST or benign command).
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.