mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Extract Ldap injection sanitizers to importable lib
This includes a new abstract class that represents all the Ldap injection santizers and can be used to add additional santizers through extension.
This commit is contained in:
@@ -13,9 +13,7 @@ class LdapInjectionFlowConfig extends TaintTracking::Configuration {
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) { sink instanceof LdapInjectionSink }
|
||||
|
||||
override predicate isSanitizer(DataFlow::Node node) {
|
||||
node.getType() instanceof PrimitiveType or node.getType() instanceof BoxedType
|
||||
}
|
||||
override predicate isSanitizer(DataFlow::Node node) { node instanceof LdapInjectionSanitizer }
|
||||
|
||||
override predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) {
|
||||
ldapNameStep(node1, node2) or
|
||||
|
||||
Reference in New Issue
Block a user