Uploaded image for project: 'MariaDB Connector/R2DBC'
  1. MariaDB Connector/R2DBC
  2. R2DBC-121

caching_sha2_password/sha256_password login fails with passwords ≥ 20 characters

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.4.1
    • other
    • None

    Description

      During RSA full authentication (non-TLS), the password is XOR-ed with the server's 20-byte scramble before encryption. When the scramble arrived via an AuthSwitchRequest it carried a trailing null, and the connector cycled the XOR over 21 bytes instead of 20, corrupting every password byte from index 20 on, so longer passwords were rejected.

      Reported by 4UjwXc (GH #84).

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.