mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Rename LdapjsDN to LdapjsDNArgument and add it as Sink
This commit is contained in:
@@ -34,7 +34,10 @@ module LdapInjection {
|
||||
* An LDAP filter for an API call that executes an operation against the LDAP server.
|
||||
*/
|
||||
class LdapjsSink extends Sink {
|
||||
LdapjsSink() { this instanceof LdapjsSearchFilter }
|
||||
LdapjsSink() {
|
||||
this instanceof LdapjsSearchFilter or
|
||||
this instanceof LdapjsDNArgument
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,8 +46,7 @@ module Ldapjs {
|
||||
*/
|
||||
class LdapjsSearchFilter extends DataFlow::Node {
|
||||
LdapjsSearchFilter() {
|
||||
this =
|
||||
any(LdapjsSearchOptions options).getAPropertyWrite("filter").getRhs()
|
||||
this = any(LdapjsSearchOptions options).getAPropertyWrite("filter").getRhs()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,8 +62,8 @@ module Ldapjs {
|
||||
/**
|
||||
* A distinguished name (DN) used in a Client API call against the LDAP server.
|
||||
*/
|
||||
class LdapjsDN extends DataFlow::Node {
|
||||
LdapjsDN() { this = any(LdapjsClientAPICall clientAPIcall).getArgument(0) }
|
||||
class LdapjsDNArgument extends DataFlow::Node {
|
||||
LdapjsDNArgument() { this = any(LdapjsClientAPICall clientAPIcall).getArgument(0) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user