mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
9 lines
350 B
Plaintext
9 lines
350 B
Plaintext
import python
|
|
import semmle.python.dataflow.TaintTracking
|
|
import TaintLib
|
|
|
|
from TaintSource src, TaintSink sink, TaintKind srckind, TaintKind sinkkind
|
|
where src.flowsToSink(srckind, sink) and sink.sinks(sinkkind)
|
|
select srckind, src.getLocation().toString(), sink.getLocation().getStartLine(),
|
|
sink.(ControlFlowNode).getNode().toString(), sinkkind
|