Skip to content

Commit 548cb65

Browse files
Update javascript/ql/src/experimental/Security/CWE-090/LdapInjectionCustomizations.qll
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
1 parent 26046a4 commit 548cb65

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

javascript/ql/src/experimental/Security/CWE-090/LdapInjectionCustomizations.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ module LdapInjection {
3838
/**
3939
* An LDAP filter for an API call that executes an operation against the LDAP server.
4040
*/
41-
class LdapjsSearchFilterAsSink extends Sink, LdapjsSearchFilter {
42-
override DataFlow::InvokeNode getQueryCallSink() {
41+
class LdapjsSearchFilterAsSink extends Sink {
42+
LdapjsSearchFilterAsSink() {
43+
this instanceof LdapjsSearchFilter
44+
}
45+
override DataFlow::InvokeNode getQueryCall() {
4346
result = this.(LdapjsSearchFilter).getQueryCall()
4447
}
4548
}

0 commit comments

Comments
 (0)