[MDEV-32809] Weak Default Configuration with default blank password Created: 2023-11-15 Updated: 2023-11-17 Resolved: 2023-11-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Minor |
| Reporter: | roy chen | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Per https://mariadb.com/kb/en/mariadb-secure-installation/, If you've just installed MariaDB, and you haven't set the root password, the default password will be blank. It is able to skip the password setting during the "mariadb-secure-installation". In the meantime, the password is still blank. |
| Comments |
| Comment by Daniel Black [ 2023-11-15 ] | ||||||||||||||||||||||||
|
The header at the top of the page applies. What exactly do you want to happen? What do you think the state is? Have you verified this? | ||||||||||||||||||||||||
| Comment by Daniel Black [ 2023-11-16 ] | ||||||||||||||||||||||||
|
RPM, Deb and Docker Official Images all do not have a blank root password. If you manually installed with a tarball you might depending on the mariadb-install-db options provided. | ||||||||||||||||||||||||
| Comment by roy chen [ 2023-11-16 ] | ||||||||||||||||||||||||
|
This is my testing result on my Debian 10 Linux. Debian10:~$ apt-get install mariadb-server
Debian10:~$ mysql -u root -e "SELECT Host,User,Password FROM mysql.user;"
You could see that the default root password is blank after query database. Note: the version information.
| ||||||||||||||||||||||||
| Comment by Daniel Black [ 2023-11-16 ] | ||||||||||||||||||||||||
|
MariaDB-10.3 is unmaintained. https://mariadb.org/about/#maintenance-policy Also:
As this isn't accessible with a blank password, so there is no blank password. It is accessible to the unix root user, not because the password is blank, its because its unix socket authenticated | ||||||||||||||||||||||||
| Comment by roy chen [ 2023-11-17 ] | ||||||||||||||||||||||||
|
Thanks for the response. One more question, in my another Linux Server Debian 11, it is using MariaDB 10.5. Is MariaDB 10.5 also unmaintained ? it should be: | ||||||||||||||||||||||||
| Comment by Daniel Black [ 2023-11-17 ] | ||||||||||||||||||||||||
|
10.5 is maintained by us until Jun 2025. Most likely Debian will continue to package updates, or failing that, the MariaDB distributed Debian packages are almost identical. There's a knowledge base article on differences, https://mariadb.com/kb/en/differences-in-mariadb-in-debian-and-ubuntu/. MariaDB 10.4+ are capable of a unix_plugin + a password (default undefined rather than "empty"). password fields in mysql.user, particular in 10.4+ are a pseudo compatibility interface, with multiple plugins there's only auth data per plugin, which is why is a mysql.global_privs based view. If in doubt, like above, test the functionality. You shouldn't need mysql_secure_installation on Debian, and its got a long list of bugs that need to be fixed. |