MySQL Community Server 5.0 < 5.0.51 RENAME TABLE Symlink System Table Overwrite

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


Synopsis :

The remote database server is susceptible to a local symlink attack.

Description :

The version of MySQL Community Server installed on the remote host
reportedly fails to check whether a file to which a symlink points
exists when using RENAME TABLE against a table with explicit DATA
DIRECTORY and INDEX DIRECTORY options. A local attacker may be able
to leverage this issue to overwrite system table information by
replacing the file to which the symlink points.

See also :

http://dev.mysql.com/doc/refman/5.0/en/news-5-0-51.html
http://forums.mysql.com/read.php?3,186931,186931

Solution :

Upgrade to MySQL Community Server version 5.0.51 or later.

Risk factor :

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

Family: Databases

Nessus Plugin ID: 29251 ()

Bugtraq ID: 26765

CVE ID: CVE-2007-5969