mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
19 lines
487 B
Plaintext
19 lines
487 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.TaintTracking
|
|
|
|
class Conf extends TaintTracking::Configuration {
|
|
Conf() { this = "qltest:lambdaFlow" }
|
|
|
|
override predicate isSource(DataFlow::Node n) {
|
|
n.asExpr().(MethodAccess).getMethod().hasName("taint")
|
|
}
|
|
|
|
override predicate isSink(DataFlow::Node n) {
|
|
n.asExpr().(Argument).getCall().getCallee().hasName("sink")
|
|
}
|
|
}
|
|
|
|
from DataFlow::Node src, DataFlow::Node sink, Conf conf
|
|
where conf.hasFlow(src, sink)
|
|
select src, sink
|