add calls to parseDN as sinks for ldap-injection

This commit is contained in:
Erik Krogh Kristensen
2021-09-30 14:04:39 +02:00
parent d4de5e3248
commit 2062afc868
3 changed files with 12 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ module SqlInjection {
or
// A search options object, which contains a filter and a baseDN.
this = any(LDAPjs::SearchOptions opt).getARhs()
or
// A call to "parseDN", which parses a DN from a string.
this = LDAPjs::ldapjs().getMember("parseDN").getACall().getArgument(0)
}
}