Описание
libmariadb allowed cleartext password leakage on TLS hostname verification failure
Impact
In the Zero-Configuration SSL protocol, the MariaDB client must refuse sending clear-text password over unverified TLS connection. Because of a programming mistake, MariaDB Connector/C (libmariadb) could have switched to a clear-text password plugin if the TLS certificate was valid, but did not belong to the connecting host. This allowed an active man-in-the-middle attacker to replace the certificate to another valid certificate and request the client to switch to the clear-text password plugin. Only MariaDB Connector/C is affected, other MariaDB connectors are safe.
Workarounds
Any of the below can be used as mitigation
- install properly signed certificates on the server
- configure the client to accept only specific certificate fingerprints
- delete
mysql_clear_password.soanddialog.sofiles - use
restricted-authoption to restrict authentication to safe subset of plugins
References
https://jira.mariadb.org/browse/CONC-846
Credits
Aisle Research RedHat
Пакеты
mariadb
>=3.4.1, <=3.4.9
3.4.10
Связанные уязвимости
MariaDB Connector/C is a C and C++ client library for connecting applications to MariaDB and MySQL databases. From 3.4.1 until 3.4.10, the MariaDB Connector/C libmariadb Zero-Configuration SSL authentication-switch logic checked certificate trust failure but did not reject a TLS hostname verification mismatch before selecting a non-hashing authentication plugin. An active man-in-the-middle attacker with a valid certificate for another hostname could request mysql_clear_password and obtain the database password inside the attacker-controlled TLS connection. Other MariaDB connectors are not affected. This issue is fixed in version 3.4.10.
MariaDB Connector/C is a C and C++ client library for connecting applications to MariaDB and MySQL databases. From 3.4.1 until 3.4.10, the MariaDB Connector/C libmariadb Zero-Configuration SSL authentication-switch logic checked certificate trust failure but did not reject a TLS hostname verification mismatch before selecting a non-hashing authentication plugin. An active man-in-the-middle attacker with a valid certificate for another hostname could request mysql_clear_password and obtain the database password inside the attacker-controlled TLS connection. Other MariaDB connectors are not affected. This issue is fixed in version 3.4.10.
MariaDB Connector/C is a C and C++ client library for connecting appli ...