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

[jira] [Commented] (DIRAPI-477) SASL layer length field lacks negative and short-read handling

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

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

Found by Claude

> SASL layer length field lacks negative and short-read handling
> --------------------------------------------------------------
>
>                 Key: DIRAPI-477
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-477
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: Emmanuel Lécharny
>            Priority: Minor
>             Fix For: 2.1.9
>
>
> After a client completes a *SASL* bind with _auth-int_ *QoP*, a *MITM* rewrites one *TCP* segment so the 4-byte *SASL* length prefix reads _0xFFFFFFFF_; the client's _SaslFilter_ throws _NegativeArraySizeException_ in the *MINA* chain and the connection dies with a generic error rather than an integrity alarm; the peer itself can send the same bytes for a one-packet session kill.



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