mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
21 lines
604 B
Plaintext
21 lines
604 B
Plaintext
/**
|
|
* @kind path-problem
|
|
*/
|
|
|
|
import csharp
|
|
import DataFlow::PathGraph
|
|
|
|
class MyConfiguration extends TaintTracking::Configuration {
|
|
MyConfiguration() { this = "EntityFramework dataflow" }
|
|
|
|
override predicate isSource(DataFlow::Node node) { node.asExpr().getValue() = "tainted" }
|
|
|
|
override predicate isSink(DataFlow::Node node) {
|
|
node.asExpr() = any(MethodCall c | c.getTarget().hasName("Sink")).getAnArgument()
|
|
}
|
|
}
|
|
|
|
from DataFlow::PathNode source, DataFlow::PathNode sink, MyConfiguration conf
|
|
where conf.hasFlowPath(source, sink)
|
|
select sink, source, sink, "$@", source, source.toString()
|