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:58:00 UTC

[jira] [Created] (DIRAPI-458) FilterEncoder passes attacker hex escapes through unencoded

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

             Summary: FilterEncoder passes attacker hex escapes through unencoded
                 Key: DIRAPI-458
                 URL: https://issues.apache.org/jira/browse/DIRAPI-458
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 2.1.8
            Reporter: Emmanuel Lécharny
             Fix For: 2.1.9


A web app blocks the username '_admin_' at input validation, then builds "_(uid={0})_" via _FilterEncoder.format_.
The attacker submits '_\61dmin_' — the blocklist sees no forbidden substring, the encoder emits _(uid=\61dmin)_, the directory decodes the assertion to '_admin_', and the lookup proceeds against the fenced-off entry. 
The same trick defeats per-username lockout/rate-limit counters keyed on the literal input.




--
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