Skip to content

Detect user passwords in password and authentication_string mixed environments #234

@pes-soft

Description

@pes-soft

Hi,

Mysqltuner produces "user with no password set" false positives in Security Recommendations section, if it is run in an environment, where MySQL version is not 5.7, there are users, which have mysql_native_password plugin specified and user passwords are stored in "authentication_string" column.

Currently mysqltuner selects a name of password column based on specific database version ( for 5.7 it uses "authentication_string", for the rest the default "password" ), but there are already more versions supporting "authentication_string" is greater.

Also, it is possible to have a mixed environment, where there are users, which have no plugin set and password is in "password" column and other users, which have "mysql_native_password" plugin set and password is in "authentication_string" column.

Would it be possible for mysqltuner to detect passwords in both alternatives?

Tested with: MySQLTuner 1.6.15, MySQL version 10.1.16-MariaDB, [!!] User 'root@localhost' has no password set, (but actually password is set).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions