Lucene search

K
gentooGentoo FoundationGLSA-200409-02
HistorySep 01, 2004 - 12:00 a.m.

MySQL: Insecure temporary file creation in mysqlhotcopy

2004-09-0100:00:00
Gentoo Foundation
security.gentoo.org
10

4.6 Medium

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:P/I:P/A:P

0.001 Low

EPSS

Percentile

27.8%

Background

MySQL is a popular open-source multi-threaded, multi-user SQL database server.

Description

Jeroen van Wolffelaar discovered that the MySQL database hot copy utility (mysqlhotcopy.sh), when using the scp method, uses temporary files with predictable names. A malicious local user with write access to the /tmp directory could create a symbolic link pointing to a file, which may then be overwritten. In cases where mysqlhotcopy is run as root, a malicious user could create a symlink to a critical file such as /etc/passwd and cause it to be overwritten.

Impact

A local attacker could use this vulnerability to destroy other users’ data or corrupt and destroy system files, possibly leading to a denial of service condition.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

 # emerge sync

 # emerge -pv ">=dev-db/mysql-4.0.20-r1"
 # emerge ">=dev-db/mysql-4.0.20-r1"
OSVersionArchitecturePackageVersionFilename
Gentooanyalldev-db/mysql<= 4.0.20UNKNOWN

4.6 Medium

CVSS2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:P/I:P/A:P

0.001 Low

EPSS

Percentile

27.8%