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/29 07:23:00 UTC

[jira] [Commented] (DIRAPI-464) Stored-credential bcrypt work factor drives unbounded CPU cost at bind

    [ https://issues.apache.org/jira/browse/DIRAPI-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120611#comment-18120611 ] 

Emmanuel Lécharny commented on DIRAPI-464:
------------------------------------------

Found by Claude

> Stored-credential bcrypt work factor drives unbounded CPU cost at bind
> ----------------------------------------------------------------------
>
>                 Key: DIRAPI-464
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-464
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: Emmanuel Lécharny
>            Priority: Major
>             Fix For: 2.1.9
>
>
> An authenticated low-privilege user sets their own _userPassword_ to '_\{CRYPT\}$2a$30$<22-char salt>..._' (a syntactically valid _bcrypt_ hash with cost 30), then fires 16 concurrent binds to their own *DN* with garbage passwords; each forces the authenticator through 2^30-round _bcrypt_, pinning 16 cores for hours and starving all directory operations.



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