Skip to content

Commit 9395f15

Browse files
committed
update {js/py}/command-line-injection to match csharp/java
1 parent 684a987 commit 9395f15

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

javascript/ql/src/Security/CWE-078/CommandInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ where
2828
else highlight = sink.getNode()
2929
) and
3030
sourceNode = source.getNode()
31-
select highlight, source, sink, "This command depends on $@.", sourceNode,
31+
select highlight, source, sink, "$@ flows to here and is used in a command.", source.getNode(),
3232
sourceNode.getSourceType()

python/ql/src/Security/CWE-078/CommandInjection.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ import DataFlow::PathGraph
2020

2121
from Configuration config, DataFlow::PathNode source, DataFlow::PathNode sink
2222
where config.hasFlowPath(source, sink)
23-
select sink.getNode(), source, sink, "This command depends on $@.", source.getNode(),
24-
"a user-provided value"
23+
select sink.getNode(), source, sink, "$@ flows to here and is used in a command.", source.getNode(),
24+
"User-provided value"

0 commit comments

Comments
 (0)