Skip to content

Commit 17b261a

Browse files
committed
C++/AuthenticationBypass
1 parent 0ed27f4 commit 17b261a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/ql/src/Security/CWE/CWE-290/AuthenticationBypass.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ module Config implements DataFlow::ConfigSig {
7676
predicate observeDiffInformedIncrementalMode() { any() }
7777

7878
Location getASelectedSinkLocation(DataFlow::Node sink) {
79-
exists(Expr condition | result = condition.getLocation() | isSink(sink, condition))
79+
exists(Expr condition | result = [condition.getLocation(), sink.getLocation()] |
80+
isSink(sink, condition)
81+
)
8082
}
8183
}
8284

0 commit comments

Comments
 (0)