vetkit.csharp.ldap-injection.tainted-filter
Request input is placed into an LDAP search filter without escaping. Characters such as *, ( and ) let an attacker rewrite the filter (LDAP injection).
Last updated:
Suite: Security
csharp
Request input is placed into an LDAP search filter without escaping. Characters such as *, ( and ) let an attacker rewrite the filter (LDAP injection).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Escape filter values per RFC 4515 (\2a, \28, \29, \5c, \00) before building the filter, and validate user names against an allow-list pattern.
References
Source: packages/engine/rules/sast/csharp.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.