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.
concatAndCompareAgainstFullHostRegex
1 parent 8008011 commit 4e261c6Copy full SHA for 4e261c6
python/ql/src/experimental/semmle/python/security/LDAPInsecureAuth.qll
@@ -38,12 +38,8 @@ class LDAPPrivateHost extends StrConst {
38
}
39
40
predicate concatAndCompareAgainstFullHostRegex(LDAPSchema schema, StrConst host) {
41
- schema instanceof LDAPSchema and
42
not host instanceof LDAPPrivateHost and
43
- exists(string full_host |
44
- full_host = schema.(StrConst).getText() + host.(StrConst).getText() and
45
- full_host.regexpMatch(getFullHostRegex())
46
- )
+ (schema.getText() + host.getText()).regexpMatch(getFullHostRegex())
47
48
49
// "ldap://" + "somethingon.theinternet.com"
0 commit comments