Injection
Expression Language Injection
Many Java frameworks evaluate expressions at runtime: OGNL (Struts, Confluence), Spring Expression Language (SpEL), Jakarta/Unified EL (JSP, JSF), MVEL and Groovy. When user input reaches an expression evaluator, the result is usually remote code execution. This category is for evaluator-level injection; for template engines such as Thymeleaf or Freemarker see SSTI/.
- 85 payloads
- 1 file
- README on GitHub
Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.
These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.
Payload files
Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.
expression-language-payloads.txt
85 payloads · 4.3 KBLoading payloads for Expression Language Injection…
Common Attack Vectors#
- Struts parameter names,
Content-Typeheaders and action URLs evaluated as OGNL - Spring annotations, routing functions,
@Value,@PreAuthorizeand Spring Cloud Gateway or Function headers evaluated as SpEL - JSP/JSF EL evaluated on error pages, message bundles and tag attributes
- Validation messages (
ConstraintViolationinterpolation) that evaluate${...} - Error pages and log or message templates that echo input
- Configuration or workflow engines exposing expression fields to users
Testing Approach#
Send arithmetic probes first (${7*7}, #{7*7}, %{7*7}, *{7*7}) and look for 49 in the response, an error, or a timing difference. Try several delimiters because each framework uses different ones. Use a harmless side effect for confirmation: ${T(java.lang.System).getProperty('os.name')} or a DNS callback to a host you control. Prefer reading a property over running commands. Check the framework version and map it to known advisories; many of these probes correspond to published CVEs that should already be patched.
References#
Responsible Use
All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.
- Systems and applications you own
- Authorized penetration testing engagements
- Bug bounty programs with defined scope
- Educational lab environments (DVWA, WebGoat, HackTheBox)