We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b86b9ba commit 78ebceeCopy full SHA for 78ebcee
javascript/ql/src/experimental/Security/CWE-090/Ldapjs.qll
@@ -42,9 +42,14 @@ module Ldapjs {
42
* A filter used in a `search` operation against the LDAP server.
43
*/
44
class LdapjsSearchFilter extends DataFlow::Node {
45
- LdapjsSearchFilter() {
46
- this = any(LdapjsSearchOptions options).getAPropertyWrite("filter").getRhs()
47
- }
+ LdapjsSearchOptions options;
+
+ LdapjsSearchFilter() { this = options.getAPropertyWrite("filter").getRhs() }
48
49
+ /**
50
+ * Gets the LDAP query call that this filter is used in.
51
+ */
52
+ DataFlow::InvokeNode getQueryCall() { result = options.getQueryCall() }
53
}
54
55
/**
0 commit comments