We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20fc5db commit 2392be0Copy full SHA for 2392be0
python/ql/src/experimental/semmle/python/security/LDAPImproperAuth.qll
@@ -8,8 +8,15 @@ class LDAPImproperAuthSink extends DataFlow::Node {
8
LDAPImproperAuthSink() {
9
exists(LDAPBind ldapBind |
10
(
11
- DataFlow::localFlow(DataFlow::exprNode(any(None noneName)), ldapBind.getPasswordNode()) or
12
- not exists(ldapBind.getPasswordNode())
+ (
+ DataFlow::localFlow(DataFlow::exprNode(any(None noneName)), ldapBind.getPasswordNode()) or
13
+ not exists(ldapBind.getPasswordNode())
14
+ )
15
+ or
16
+ exists(StrConst emptyString |
17
+ emptyString.getText() = "" and
18
+ DataFlow::localFlow(DataFlow::exprNode(emptyString), ldapBind.getPasswordNode())
19
20
) and
21
this = ldapBind.getQueryNode()
22
)
0 commit comments