Skip to content

Commit a484e9f

Browse files
committed
Use RemoteFlowSource instead of UserInput
1 parent 98a12ce commit a484e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Security/CWE/CWE-807/ConditionalBypass.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ predicate conditionControlsMethod(MethodAccess m, Expr e) {
3535
class ConditionalBypassFlowConfig extends TaintTracking::Configuration {
3636
ConditionalBypassFlowConfig() { this = "ConditionalBypassFlowConfig" }
3737

38-
override predicate isSource(DataFlow::Node source) { source instanceof UserInput }
38+
override predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
3939

4040
override predicate isSink(DataFlow::Node sink) { conditionControlsMethod(_, sink.asExpr()) }
4141
}

0 commit comments

Comments
 (0)