New advertisers: 50% off your first month with code FIRSTMONTHSee slots
yaklang avatar

Expression Language Injection

Expert Expression Language injection playbook covering SpEL, OGNL, and Java EL exploitation in Spring, Struts2, and Confluence.

skills.sh installs
3.9K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers detection probes and a disambiguation table to tell SpEL, OGNL, and Java EL apart from response behavior
  • Includes RCE payloads per engine, plus sandbox bypasses for _memberAccess, excludedClasses, and SimpleEvaluationContext
  • Walks through named CVEs, including CVE-2022-22947 (Spring Cloud Gateway), CVE-2017-5638 (Struts2), and CVE-2021-26084 (Confluence)
  • Designed for offensive security testing of Java applications, and routes template-engine cases to the SSTI skill

Install

$ npx -y skills add yaklang/hack-skills --skill expression-language-injection -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SKILL: Expression Language Injection — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert EL injection techniques covering SpEL (Spring), OGNL (Struts2), and Java EL (JSP/JSF). Distinct from SSTI — EL injection targets expression evaluators in Java frameworks, not template engines. Covers sandbox bypass, _memberAccess manipulation, actuator abuse, and real-world CVE chains.

0. RELATED ROUTING

Key distinction: SSTI targets template rendering engines; EL injection targets expression evaluators embedded in Java frameworks. They share detection probes (${7*7}) but diverge in exploitation.


1. DETECTION — POLYGLOT PROBES

${7*7}              → 49 = SpEL, OGNL, or Java EL
#{7*7}              → 49 = SpEL (alternative syntax) or JSF EL
%{7*7}              → 49 = OGNL (Struts2)
${T(java.lang.Math).random()}  → random float = SpEL confirmed
%{#context}         → object dump = OGNL confirmed

Details

Repository
github.com/yaklang/hack-skills
Categories
Security, Java & JVM
First seen
May 16, 2026

More from yaklang/hack-skills

All 102

Similar to Expression Language Injection

More Security