mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
14 lines
461 B
Plaintext
14 lines
461 B
Plaintext
import python
|
|
import semmle.python.security.TaintTracking
|
|
import Taint
|
|
|
|
|
|
from TaintedNode n, TaintedNode s
|
|
where n.getLocation().getFile().getName().matches("%test.py") and
|
|
s.getLocation().getFile().getName().matches("%test.py") and
|
|
s = n.getASuccessor()
|
|
select
|
|
"Taint " + n.getTaintKind(), n.getLocation().toString(), n.getAstNode(), n.getContext(),
|
|
" --> ",
|
|
"Taint " + s.getTaintKind(), s.getLocation().toString(), s.getAstNode(), s.getContext()
|