mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Use RemoteFlowSource instead of UserInput
This commit is contained in:
@@ -35,7 +35,7 @@ predicate conditionControlsMethod(MethodAccess m, Expr e) {
|
|||||||
class ConditionalBypassFlowConfig extends TaintTracking::Configuration {
|
class ConditionalBypassFlowConfig extends TaintTracking::Configuration {
|
||||||
ConditionalBypassFlowConfig() { this = "ConditionalBypassFlowConfig" }
|
ConditionalBypassFlowConfig() { this = "ConditionalBypassFlowConfig" }
|
||||||
|
|
||||||
override predicate isSource(DataFlow::Node source) { source instanceof UserInput }
|
override predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
|
||||||
|
|
||||||
override predicate isSink(DataFlow::Node sink) { conditionControlsMethod(_, sink.asExpr()) }
|
override predicate isSink(DataFlow::Node sink) { conditionControlsMethod(_, sink.asExpr()) }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user