mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
9 lines
292 B
Plaintext
9 lines
292 B
Plaintext
import javascript
|
|
|
|
from DataFlow::SourceNode arg, DataFlow::CallNode call
|
|
where
|
|
arg = DataFlow::globalVarRef("process").getAPropertyRead("argv").getAPropertyReference() and
|
|
call = DataFlow::moduleMember("fs", "readFile").getACall() and
|
|
arg.flowsTo(call.getArgument(0))
|
|
select arg, call
|