GLSA-200409-02 : MySQL: Insecure temporary file creation in mysqlhotcopy

medium Nessus Plugin ID 14649

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200409-02 (MySQL: Insecure temporary file creation in mysqlhotcopy)

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.

Solution

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'

See Also

https://security.gentoo.org/glsa/200409-02

Plugin Details

Severity: Medium

ID: 14649

File Name: gentoo_GLSA-200409-02.nasl

Version: 1.17

Type: local

Published: 9/3/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.3

CVSS v2

Risk Factor: Medium

Base Score: 4.6

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:mysql, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 9/1/2004

Vulnerability Publication Date: 8/19/2004

Reference Information

CVE: CVE-2004-0457

GLSA: 200409-02