mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
18 lines
507 B
Plaintext
18 lines
507 B
Plaintext
import csharp
|
|
|
|
class DataflowConfiguration extends DataFlow::Configuration {
|
|
DataflowConfiguration() { this = "data flow configuration" }
|
|
|
|
override predicate isSource(DataFlow::Node source) {
|
|
source.asExpr().(Expr).getValue() = "tainted"
|
|
}
|
|
|
|
override predicate isSink(DataFlow::Node sink) {
|
|
exists(LocalVariable v | sink.asExpr() = v.getInitializer())
|
|
}
|
|
}
|
|
|
|
from DataflowConfiguration config, DataFlow::Node source, DataFlow::Node sink
|
|
where config.hasFlow(source, sink)
|
|
select source, sink
|