Files
codeql/ruby/ql/test/library-tests/frameworks/stdlib/CommandExecution.ql
2024-03-05 10:19:22 +00:00

13 lines
355 B
Plaintext

import codeql.ruby.Frameworks
import codeql.ruby.Concepts
import codeql.ruby.DataFlow
query predicate commandExecutions(
SystemCommandExecution execution, DataFlow::Node arg, boolean isShellInterpreted
) {
arg = execution.getAnArgument() and
if execution.isShellInterpreted(arg)
then isShellInterpreted = true
else isShellInterpreted = false
}