escape_filter_chars

python · ldap.filter
sanitizerDerived from model facts
RoleSanitizer
WeaknessCWE-90
WatchesArgument[0] -> ReturnValue
Kindldap-injection
Confidencehigh
Corroboration2

Sanitizer boundary: Input reaches LDAP query grammar and can alter the directory search.

Argument map · what each slot does

The pack does not provide a callable signature for this record; the watched access path is shown directly.

ArgAccess pathPurposeWatched
Argument[0]Argument[0]The access path Atropos marks for this model.▲ sanitizer
The weakness
CWE-90
LDAP Injection

External input changes the structure or meaning of an LDAP query.

What goes wrong
Attacker's-eye view · ldap-injection

Special LDAP characters change the filter or distinguished name and broaden or redirect the query.

// modeled boundary: Argument[0] -> ReturnValue escape_filter_chars(attacker_influenced_value);
To decide if this call is a bug, check
1Use the library's escaping or parameter API.
2Keep filter structure fixed.
3Validate identifiers for their expected domain.
These checks require the surrounding codebase. The model names the boundary; it does not decide reachability or prove that a guard dominates every path.
Is this a bug in your code?Atropos stops here — by design

Atropos identifies Argument[0] -> ReturnValue as a ldap-injection sanitizer. It cannot see whether untrusted data reaches this call in your repository.

Lachesis is the codebase-level step: it traces reachability and guards for this symbol.

Check this symbol in Lachesis
The family · ldap-injection
Model facts · verbatim from the pack
RoleKindAccess pathModel IDConfidence
sanitizerldap-injectionArgument[0] -> ReturnValuepython.ldap.filter.escapefilterchars.a0-rethigh · corrob. 2