Vulnerabilities > CVE-2004-0457 - Unspecified vulnerability in Oracle Mysql
Attack vector
LOCAL Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
The mysqlhotcopy script in mysql 4.0.20 and earlier, when using the scp method from the mysql-server package, allows local users to overwrite arbitrary files via a symlink attack on temporary files.
Vulnerable Configurations
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200409-02.NASL 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 last seen 2020-06-01 modified 2020-06-02 plugin id 14649 published 2004-09-03 reporter This script is Copyright (C) 2004-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/14649 title GLSA-200409-02 : MySQL: Insecure temporary file creation in mysqlhotcopy NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_0C4D5973F2AB11D89837000C41E2CDAD.NASL description According to Christian Hammers : [mysqlhotcopy created] temporary files in /tmp which had predictable filenames and such could be used for a tempfile run attack. Jeroen van Wolffelaar is credited with discovering the issue. last seen 2020-06-01 modified 2020-06-02 plugin id 37724 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/37724 title FreeBSD : mysql -- mysqlhotcopy insecure temporary file creation (0c4d5973-f2ab-11d8-9837-000c41e2cdad) NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2004-597.NASL description Updated mysql packages that fix various security issues, as well as a number of bugs, are now available for Red Hat Enterprise Linux 2.1. MySQL is a multi-user, multi-threaded SQL database server. A number security issues that affect the mysql server have been reported : Oleksandr Byelkin discovered that last seen 2020-06-01 modified 2020-06-02 plugin id 15536 published 2004-10-21 reporter This script is Copyright (C) 2004-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/15536 title RHEL 2.1 : mysql (RHSA-2004:597) NASL family Databases NASL id MYSQL_HOTCOPY_TEMPFILE.NASL description You are running a version of MySQL which is older than version 4.0.21. Mysqlhotcopy is reported to contain an insecure temporary file creation vulnerability. The result of this is that temporary files created by the application may use predictable filenames. A local attacker could potentially exploit this vulnerability to execute symbolic link file overwrite attacks. *** Note : this vulnerability is local only last seen 2020-06-01 modified 2020-06-02 plugin id 14343 published 2004-08-23 reporter This script is Copyright (C) 2004-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/14343 title MySQL < 4.0.21 mysqlhotcopy Insecure Temporary File Creation NASL family Debian Local Security Checks NASL id DEBIAN_DSA-540.NASL description Jeroen van Wolffelaar discovered an insecure temporary file vulnerability in the mysqlhotcopy script when using the scp method which is part of the mysql-server package. last seen 2020-06-01 modified 2020-06-02 plugin id 15377 published 2004-09-29 reporter This script is Copyright (C) 2004-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/15377 title Debian DSA-540-1 : mysql - insecure file creation NASL family Red Hat Local Security Checks NASL id REDHAT-RHSA-2004-569.NASL description Updated mysql packages that fix various temporary file security issues, as well as a number of bugs, are now available. MySQL is a multi-user, multi-threaded SQL database server. This update fixes a number of small bugs, including some potential security problems associated with careless handling of temporary files. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the names CVE-2004-0381, CVE-2004-0388, and CVE-2004-0457 to these issues. A number of additional security issues that affect mysql have been corrected in the source package. These include CVE-2004-0835, CVE-2004-0836, CVE-2004-0837, and CVE-2004-0957. Red Hat Enterprise Linux 3 does not ship with the mysql-server package and is therefore not affected by these issues. This update also allows 32-bit and 64-bit libraries to be installed concurrently on the same system. All users of mysql should upgrade to these updated packages, which resolve these issues. last seen 2020-06-01 modified 2020-06-02 plugin id 15534 published 2004-10-21 reporter This script is Copyright (C) 2004-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/15534 title RHEL 3 : mysql (RHSA-2004:569) NASL family Mandriva Local Security Checks NASL id MANDRAKE_MDKSA-2004-119.NASL description A number of problems have been discovered in the MySQL database server : Jeroen van Wolffelaar discovered an insecure temporary file vulnerability in the mysqlhotcopy script when using the scp method (CVE-2004-0457). Oleksandr Byelkin discovered that the last seen 2020-06-01 modified 2020-06-02 plugin id 15599 published 2004-11-02 reporter This script is Copyright (C) 2004-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/15599 title Mandrake Linux Security Advisory : MySQL (MDKSA-2004:119) NASL family Fedora Local Security Checks NASL id FEDORA_2004-530.NASL description - Tue Oct 12 2004 Tom Lane <tgl at redhat.com> 3.23.58-9.1 - fix security issues CVE-2004-0835, CVE-2004-0836, CVE-2004-0837 (bugs #135372, 135375, 135387) - fix privilege escalation on GRANT ALL ON `Foo\_Bar` (CVE-2004-0957) - fix multilib problem with mysqlbug and mysql_config - adjust chkconfig priority per bug #128852 - remove bogus quoting per bug #129409 (MySQL 4.0 has done likewise) - add sleep to mysql.init restart(); may or may not fix bug #133993 - fix low-priority security issues CVE-2004-0388, CVE-2004-0381, CVE-2004-0457 (bugs #119442, 125991, 130347, 130348) - fix bug with dropping databases under recent kernels (bug #124352) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 15930 published 2004-12-09 reporter This script is Copyright (C) 2004-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/15930 title Fedora Core 2 : mysql-3.23.58-9.1 (2004-530) NASL family FreeBSD Local Security Checks NASL id FREEBSD_MYSQL_HOTCOPY.NASL description The following package needs to be updated: mysql-scripts last seen 2016-09-26 modified 2004-08-23 plugin id 14339 published 2004-08-23 reporter Tenable source https://www.tenable.com/plugins/index.php?view=single&id=14339 title FreeBSD : mysql -- mysqlhotcopy insecure temporary file creation (125)
Oval
accepted | 2013-04-29T04:07:48.436-04:00 | ||||||||
class | vulnerability | ||||||||
contributors |
| ||||||||
definition_extensions |
| ||||||||
description | The mysqlhotcopy script in mysql 4.0.20 and earlier, when using the scp method from the mysql-server package, allows local users to overwrite arbitrary files via a symlink attack on temporary files. | ||||||||
family | unix | ||||||||
id | oval:org.mitre.oval:def:10693 | ||||||||
status | accepted | ||||||||
submitted | 2010-07-09T03:56:16-04:00 | ||||||||
title | The mysqlhotcopy script in mysql 4.0.20 and earlier, when using the scp method from the mysql-server package, allows local users to overwrite arbitrary files via a symlink attack on temporary files. | ||||||||
version | 26 |
Redhat
advisories |
| ||||
rpms |
|
References
- http://packages.debian.org/changelogs/pool/main/m/mysql-dfsg/mysql-dfsg_4.0.20-11/changelog
- http://www.ciac.org/ciac/bulletins/p-018.shtml
- http://www.debian.org/security/2004/dsa-540
- http://www.redhat.com/support/errata/RHSA-2004-597.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/17030
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10693