mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JS: update a js/code-injection test
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import javascript
|
||||
import semmle.javascript.heuristics.AdditionalSources
|
||||
import semmle.javascript.security.dataflow.CodeInjection::CodeInjection
|
||||
import DataFlow::PathGraph
|
||||
|
||||
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
|
||||
where cfg.hasFlowPath(source, sink) and source.getNode() instanceof HeuristicSource
|
||||
select sink.getNode(), source, sink, "$@ flows to here and is interpreted as code.",
|
||||
source.getNode(), "User-provided value"
|
||||
Reference in New Issue
Block a user