Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The driver does not gate cleartext-password authentication plugins on transport encryption. A hostile or man-in-the-middle MariaDB server can issue an AuthSwitchRequest naming mysql_clear_password or dialog over a plain-TCP (unencrypted) connection, and the driver replies with the user's password in cleartext bytes on the wire.
The AuthenticationPlugin interface declares no capability to require secure connection like JDBC connector does.
report by fg0x0 in https://hackerone.com/reports/3784556