Skip to content

Commit abe696d

Browse files
committed
Go/PamAuthBypass: disable due to secondary flow
1 parent 2da99db commit abe696d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

go/ql/src/experimental/CWE-285/PamAuthBypass.ql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ module PamStartToAcctMgmtConfig implements DataFlow::ConfigSig {
4343
exists(PamAcctMgmt p | p.getACall().getReceiver() = sink)
4444
}
4545

46-
predicate observeDiffInformedIncrementalMode() { any() }
47-
48-
Location getASelectedSinkLocation(DataFlow::Node sink) { none() }
46+
predicate observeDiffInformedIncrementalMode() {
47+
none() // used as secondary flow
48+
}
4949
}
5050

5151
module PamStartToAcctMgmtFlow = TaintTracking::Global<PamStartToAcctMgmtConfig>;
@@ -60,9 +60,9 @@ module PamStartToAuthenticateConfig implements DataFlow::ConfigSig {
6060
exists(PamAuthenticate p | p.getACall().getReceiver() = sink)
6161
}
6262

63-
predicate observeDiffInformedIncrementalMode() { any() }
64-
65-
Location getASelectedSinkLocation(DataFlow::Node sink) { none() }
63+
predicate observeDiffInformedIncrementalMode() {
64+
none() // uses secondary flow
65+
}
6666
}
6767

6868
module PamStartToAuthenticateFlow = TaintTracking::Global<PamStartToAuthenticateConfig>;

0 commit comments

Comments
 (0)