mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
14 lines
436 B
Plaintext
14 lines
436 B
Plaintext
import javascript
|
|
private import semmle.javascript.heuristics.AdditionalSources
|
|
import testUtilities.ConsistencyChecking
|
|
|
|
class Taint extends TaintTracking::Configuration {
|
|
Taint() { this = "Taint" }
|
|
|
|
override predicate isSource(DataFlow::Node node) { node instanceof HeuristicSource }
|
|
|
|
override predicate isSink(DataFlow::Node node) {
|
|
node = any(DataFlow::CallNode call | call.getCalleeName() = "sink").getAnArgument()
|
|
}
|
|
}
|