You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2026/09/28 14:14:00 UTC

[jira] [Created] (DIRAPI-451) Encoder recurses once per filter sibling and per control, stack overflow

Emmanuel Lécharny created DIRAPI-451:
----------------------------------------

             Summary:  Encoder recurses once per filter sibling and per control, stack overflow
                 Key: DIRAPI-451
                 URL: https://issues.apache.org/jira/browse/DIRAPI-451
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 2.1.8
            Reporter: Emmanuel Lécharny
             Fix For: 2.1.9


A directory-integrated web app accepts a user-provided filter expression, parses it with _FilterParser_ and issues it via _LdapNetworkConnection.search()_.
The attacker submits _(|(cn=a0)(cn=a1)...)_ with 100,000 terms.
Parsing succeeds, then _encodeFilters_ recurses 100,000 frames and throws _StackOverflowError_ inside the connection's write path



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org