Skip to content

CRAM-MD5 authentication mishandles non-ASCII secret bytes #756

Description

@OskarEichler

Problem

CRAM-MD5 authentication combines protocol challenges and credentials using their external Ruby encodings. Valid non-ASCII credential bytes can raise encoding errors or produce a digest over transcoded rather than exact protocol bytes.

Prepared atomic commit 2feb08051400a55ba11d74d0023f53ed688d6e5f performs HMAC input/key handling on binary views while preserving caller strings. Dual-Ruby vectors cover ASCII, UTF-8 and arbitrary byte keys/challenges and pass with the full suite. No repository tests were modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions