mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
update {js/py}/command-line-injection to match csharp/java
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user