mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Polish LDAP3Query
This commit is contained in:
@@ -60,10 +60,6 @@ private module LDAP {
|
||||
}
|
||||
|
||||
private module LDAP3 {
|
||||
private class LDAP3QueryMethods extends string {
|
||||
LDAP3QueryMethods() { this in ["search"] }
|
||||
}
|
||||
|
||||
private class LDAP3Query extends DataFlow::CallCfgNode, LDAPQuery::Range {
|
||||
DataFlow::Node ldapNode;
|
||||
|
||||
@@ -72,7 +68,7 @@ private module LDAP {
|
||||
this.getFunction() = searchMethod and
|
||||
API::moduleImport("ldap3").getMember("Connection").getACall() =
|
||||
searchMethod.getObject().getALocalSource() and
|
||||
searchMethod.getAttributeName() instanceof LDAP3QueryMethods and
|
||||
searchMethod.getAttributeName() = "search" and
|
||||
(
|
||||
ldapNode = this.getArg(0) or
|
||||
ldapNode = this.getArg(1)
|
||||
|
||||
Reference in New Issue
Block a user