Skip to content

Commit 5ff4fcb

Browse files
committed
Replace exists with any
1 parent 57886e1 commit 5ff4fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/Security/CWE/CWE-522/InsecureLdapAuth.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class SslFlowConfig extends DataFlow::Configuration {
205205
from DataFlow::PathNode source, DataFlow::PathNode sink, InsecureUrlFlowConfig config
206206
where
207207
config.hasFlowPath(source, sink) and
208-
exists(BasicAuthFlowConfig bc | bc.hasFlowTo(sink.getNode())) and
209-
not exists(SslFlowConfig sc | sc.hasFlowTo(sink.getNode()))
208+
any(BasicAuthFlowConfig bc).hasFlowTo(sink.getNode()) and
209+
not any(SslFlowConfig sc).hasFlowTo(sink.getNode())
210210
select sink.getNode(), source, sink, "Insecure LDAP authentication from $@.", source.getNode(),
211211
"LDAP connection string"

0 commit comments

Comments
 (0)