Skip to content

Commit 785f335

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

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
@@ -50,8 +50,11 @@ module LdapInjection {
5050
/**
5151
* An LDAP DN argument for an API call that executes an operation against the LDAP server.
5252
*/
53-
class LdapjsDNArgumentAsSink extends Sink, LdapjsDNArgument {
54-
override DataFlow::InvokeNode getQueryCallSink() {
53+
class LdapjsDNArgumentAsSink extends Sink {
54+
LdapjsDNArgumentAsSink() {
55+
this instanceof LdapjsDNArgument
56+
}
57+
override DataFlow::InvokeNode getQueryCall() {
5558
result = this.(LdapjsDNArgument).getQueryCall()
5659
}
5760
}

0 commit comments

Comments
 (0)