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

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Alessio Della Libera
2020-09-02 15:22:33 +02:00
committed by GitHub
parent 548cb65a64
commit 785f335ab8

View File

@@ -50,8 +50,11 @@ module LdapInjection {
/**
* An LDAP DN argument for an API call that executes an operation against the LDAP server.
*/
class LdapjsDNArgumentAsSink extends Sink, LdapjsDNArgument {
override DataFlow::InvokeNode getQueryCallSink() {
class LdapjsDNArgumentAsSink extends Sink {
LdapjsDNArgumentAsSink() {
this instanceof LdapjsDNArgument
}
override DataFlow::InvokeNode getQueryCall() {
result = this.(LdapjsDNArgument).getQueryCall()
}
}