Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42384

caching_sha2_password does not enforce limits of caching_sha2_password_digest_rounds for passwords set via SET PASSWORD

    XMLWordPrintable

Details

    Description

      Logging in with the user created in the following SQL causes MariaDB to spend excessive time computing the iterations of the password.

      -- MariaDB 12.1 or later. Run as a user with the CREATE USER privilege.
      INSTALL SONAME 'auth_mysql_sha2';
      CREATE OR REPLACE USER repro@'%' IDENTIFIED VIA caching_sha2_password USING PASSWORD('pw');
      SET PASSWORD FOR repro = '$A$-01$aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
      

      The configuration setting caching_sha2_password_digest_rounds should limit the iteration count to 0xFFF but the server fails to enforce this for password set via SET PASSWORD.

      Attachments

        Activity

          People

            Unassigned Unassigned
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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