[MDEV-9042] CREATE USER passwords being written to bin log in clear text Created: 2015-10-30 Updated: 2023-11-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Admin statements |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | Mark Punak | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | security, upstream-fixed | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Issuing a CREATE USER command on a MariaDB 10.0 database setup for row based replication using GTID causes the statement to be written to the binlog in clear text, a security risk. – From the binlog:
###################################### relevant settings from my.cnf.d/server.cnf
|
| Comments |
| Comment by Elena Stepanova [ 2015-10-30 ] |
|
It was fixed in MySQL 5.6, but in MariaDB it is still the case. |
| Comment by Sergei Golubchik [ 2016-03-15 ] |
|
It cannot |
| Comment by Sergei Golubchik [ 2018-10-11 ] |
|
Why is it a security risk? What is a use case? |
| Comment by Yogesh [ 2023-08-31 ] |
|
This is a security risk because if an attacker gets access to the disk containing the binlogs then they can access the database using these plaintext credentials. What's the plan to fix this in Mariadb? |
| Comment by Sergei Golubchik [ 2023-09-01 ] |
|
If the attacker gets access to the disk containing the binlogs then they will see all the data in binlog anyway, and most likely all the data in the datadir too. The solution to this should be to encrypt binlogs (and possibly datadir) using https://mariadb.com/kb/en/encryption-data-at-rest-encryption/ |