Find OS command injection vectors
ProprietaryFinds calls to Runtime.exec(String) which passes the command through a shell interpreter, enabling command injection via metacharacters like ;, |, and &&. Use the String[] overload instead to avoid shell interpretation.
org. openrewrite. java. security. search. FindCommandInjectionmod run . --recipe= org. openrewrite. java. security. search. FindCommandInjectionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.