Find Expression Language injection vectors
ProprietaryFinds 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. FindExpressionLanguageInjectionmod run . --recipe= org. openrewrite. java. security. search. FindExpressionLanguageInjectionInstall 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.
- Find method usages
javax.el.ELProcessor eval(String) - Find method usages
javax.el.ExpressionFactory createValueExpression(javax.el.ELContext, String, ..) - Find method usages
javax.el.ExpressionFactory createMethodExpression(javax.el.ELContext, String, ..) - Find method usages
jakarta.el.ELProcessor eval(String) - Find method usages
jakarta.el.ExpressionFactory createValueExpression(jakarta.el.ELContext, String, ..) - Find method usages
jakarta.el.ExpressionFactory createMethodExpression(jakarta.el.ELContext, String, ..)