Update javascript/ql/src/experimental/Security/CWE-090/Ldapjs.qll

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Alessio Della Libera
2020-09-01 21:00:38 +02:00
committed by GitHub
parent b86b9ba510
commit 78ebcee570

View File

@@ -42,9 +42,14 @@ module Ldapjs {
* A filter used in a `search` operation against the LDAP server.
*/
class LdapjsSearchFilter extends DataFlow::Node {
LdapjsSearchFilter() {
this = any(LdapjsSearchOptions options).getAPropertyWrite("filter").getRhs()
}
LdapjsSearchOptions options;
LdapjsSearchFilter() { this = options.getAPropertyWrite("filter").getRhs() }
/**
* Gets the LDAP query call that this filter is used in.
*/
DataFlow::InvokeNode getQueryCall() { result = options.getQueryCall() }
}
/**