mirror of
https://github.com/github/codeql.git
synced 2026-01-04 10:10:20 +01:00
19 lines
504 B
Plaintext
19 lines
504 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.TaintTracking
|
|
import semmle.code.java.dataflow.FlowSources
|
|
import TestUtilities.InlineFlowTest
|
|
|
|
module Config implements DataFlow::ConfigSig {
|
|
predicate isSource(DataFlow::Node n) {
|
|
n.asExpr().(MethodAccess).getMethod().hasName("taint")
|
|
or
|
|
n instanceof RemoteFlowSource
|
|
}
|
|
|
|
predicate isSink(DataFlow::Node n) {
|
|
exists(MethodAccess ma | ma.getMethod().hasName("sink") | n.asExpr() = ma.getAnArgument())
|
|
}
|
|
}
|
|
|
|
import TaintFlowTest<Config>
|