Find script engine code injection vectors

Proprietary

Finds calls to ScriptEngine.eval() which can execute arbitrary code if the script string is influenced by user input. Consider sandboxing or removing dynamic script evaluation.

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

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.script.ScriptEngine eval(String, ..)