Skip to content

Commit 2e685e7

Browse files
committed
Allow MaD sanitizers for java/ldap-injection
1 parent 12eb979 commit 2e685e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/ql/lib/semmle/code/java/security/LdapInjection.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ private class DefaultLdapInjectionSink extends LdapInjectionSink {
3838
/** A sanitizer that clears the taint on (boxed) primitive types. */
3939
private class DefaultLdapSanitizer extends LdapInjectionSanitizer instanceof SimpleTypeSanitizer { }
4040

41+
private class ExternalLdapInjectionSanitizer extends LdapInjectionSanitizer {
42+
ExternalLdapInjectionSanitizer() { barrierNode(this, "ldap-injection") }
43+
}
44+
4145
/**
4246
* Holds if `n1` to `n2` is a dataflow step that converts between `String` and `LdapName`,
4347
* i.e. `new LdapName(tainted)`.

0 commit comments

Comments
 (0)