Skip to content
Back to skills

Code Injection

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added November 17, 2026
securitypythonjavarubyphpshellnodeexpressbackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill code-injection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Injection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Injection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-code-injection/badge)](https://www.skillsdirectory.com/skills/anandjogawade-code-injection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.