Files
codeql/java/ql/test/library-tests/dataflow/taint-ioutils/dataFlow.ql
Anders Schack-Mulligen 2b1723dd88 Java: Move some taint tests.
2020-02-04 13:21:31 +01:00

16 lines
512 B
Plaintext

import semmle.code.java.dataflow.DataFlow
import semmle.code.java.dataflow.TaintTracking
import semmle.code.java.dataflow.FlowSources
class Conf extends TaintTracking::Configuration {
Conf() { this = "qltest:dataflow:ioutils" }
override predicate isSource(DataFlow::Node source) { source instanceof UserInput }
override predicate isSink(DataFlow::Node sink) { any() }
}
from UserInput u, DataFlow::Node e, Conf config
where config.hasFlow(u, e) and e.getEnclosingCallable().hasName("ioutils")
select e