diff --git a/javascript/ql/src/Security/CWE-078/CommandInjection.ql b/javascript/ql/src/Security/CWE-078/CommandInjection.ql index 7bb57bfa6da..dd9ebce6b72 100644 --- a/javascript/ql/src/Security/CWE-078/CommandInjection.ql +++ b/javascript/ql/src/Security/CWE-078/CommandInjection.ql @@ -28,5 +28,5 @@ where else highlight = sink.getNode() ) and sourceNode = source.getNode() -select highlight, source, sink, "This command depends on $@.", sourceNode, +select highlight, source, sink, "$@ flows to here and is used in a command.", source.getNode(), sourceNode.getSourceType() diff --git a/python/ql/src/Security/CWE-078/CommandInjection.ql b/python/ql/src/Security/CWE-078/CommandInjection.ql index d0f9214e937..f9c4f6d8ccc 100755 --- a/python/ql/src/Security/CWE-078/CommandInjection.ql +++ b/python/ql/src/Security/CWE-078/CommandInjection.ql @@ -20,5 +20,5 @@ import DataFlow::PathGraph from Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink where config.hasFlowPath(source, sink) -select sink.getNode(), source, sink, "This command depends on $@.", source.getNode(), - "a user-provided value" +select sink.getNode(), source, sink, "$@ flows to here and is used in a command.", source.getNode(), + "User-provided value"