Find Expression Language injection vectors

Proprietary

Finds calls to Expression Language (EL) evaluation methods which, when the expression is built from user input, can allow arbitrary code execution. Use parameterized expressions or input validation instead.

org.openrewrite.java.security.search.FindExpressionLanguageInjection
mod run . --recipe=org.openrewrite.java.security.search.FindExpressionLanguageInjection

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find method usages javax.el.ELProcessor eval(String)
  2. Find method usages javax.el.ExpressionFactory createValueExpression(javax.el.ELContext, String, ..)
  3. Find method usages javax.el.ExpressionFactory createMethodExpression(javax.el.ELContext, String, ..)
  4. Find method usages jakarta.el.ELProcessor eval(String)
  5. Find method usages jakarta.el.ExpressionFactory createValueExpression(jakarta.el.ELContext, String, ..)
  6. Find method usages jakarta.el.ExpressionFactory createMethodExpression(jakarta.el.ELContext, String, ..)