MySQL < 5.0.51 RENAME TABLE Symlink System Table Overwrite

low Log Correlation Engine Plugin ID 801146

Synopsis

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

Description

The version of MySQL 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.

Solution

Upgrade to version 5.0.51 or higher.

See Also

dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-51.html

forums.mysql.com/read.php?3,186931,186931

bugs.mysql.com/bug.php?id=32111

Plugin Details

Severity: Low

ID: 801146

Family: Database

Nessus ID: 29251

Risk Information

CVSS v2

Risk Factor: Low

Base Score: 2.6

Temporal Score: 2.1

Vector: CVSS2#AV:L/AC:H/Au:N/C:N/I:P/A:P

Reference Information

CVE: CVE-2007-5969

BID: 26765