MySQL sql_acl.cc get_salt_from_password Function Password Handling Remote Overflow

This script is Copyright (C) 2003-2014 Tenable Network Security, Inc.


Synopsis :

The remote database server is susceptible to a buffer overflow attack.

Description :

According to its banner, the version of MySQL installed on the remote
host fails to validate the length of a user-supplied password in the
'User' table in the 'get_salt_from_password()' function. Using a
specially crafted value for a new password, an authenticated attacker
with the 'ALTER DATABASE' privilege may be able to leverage this issue
to trigger a buffer overflow and execute arbitrary code subject to the
privileges under which the database service runs.

See also :

http://archives.neohapsis.com/archives/fulldisclosure/2003-q3/3652.html
http://lists.mysql.com/announce/168
http://lists.mysql.com/announce/169

Solution :

Upgrade to MySQL 3.23.58 / 4.0.15 or later.

Risk factor :

High / CVSS Base Score : 9.0
(CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C)
CVSS Temporal Score : 7.4
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: Databases

Nessus Plugin ID: 11842 ()

Bugtraq ID: 8590

CVE ID: CVE-2003-0780