Vulnerabilities > CVE-2004-0457 - Unspecified vulnerability in Oracle Mysql

047910
CVSS 4.6 - MEDIUM
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
local
low complexity
oracle
nessus

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

Part Description Count
Application
Oracle
102

Nessus

  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200409-02.NASL
    descriptionThe 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 seen2020-06-01
    modified2020-06-02
    plugin id14649
    published2004-09-03
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/14649
    titleGLSA-200409-02 : MySQL: Insecure temporary file creation in mysqlhotcopy
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_0C4D5973F2AB11D89837000C41E2CDAD.NASL
    descriptionAccording 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 seen2020-06-01
    modified2020-06-02
    plugin id37724
    published2009-04-23
    reporterThis script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/37724
    titleFreeBSD : mysql -- mysqlhotcopy insecure temporary file creation (0c4d5973-f2ab-11d8-9837-000c41e2cdad)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2004-597.NASL
    descriptionUpdated 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 seen2020-06-01
    modified2020-06-02
    plugin id15536
    published2004-10-21
    reporterThis script is Copyright (C) 2004-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/15536
    titleRHEL 2.1 : mysql (RHSA-2004:597)
  • NASL familyDatabases
    NASL idMYSQL_HOTCOPY_TEMPFILE.NASL
    descriptionYou 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 seen2020-06-01
    modified2020-06-02
    plugin id14343
    published2004-08-23
    reporterThis script is Copyright (C) 2004-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/14343
    titleMySQL < 4.0.21 mysqlhotcopy Insecure Temporary File Creation
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-540.NASL
    descriptionJeroen 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 seen2020-06-01
    modified2020-06-02
    plugin id15377
    published2004-09-29
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/15377
    titleDebian DSA-540-1 : mysql - insecure file creation
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2004-569.NASL
    descriptionUpdated 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 seen2020-06-01
    modified2020-06-02
    plugin id15534
    published2004-10-21
    reporterThis script is Copyright (C) 2004-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/15534
    titleRHEL 3 : mysql (RHSA-2004:569)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2004-119.NASL
    descriptionA 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 seen2020-06-01
    modified2020-06-02
    plugin id15599
    published2004-11-02
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/15599
    titleMandrake Linux Security Advisory : MySQL (MDKSA-2004:119)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_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 seen2020-06-01
    modified2020-06-02
    plugin id15930
    published2004-12-09
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/15930
    titleFedora Core 2 : mysql-3.23.58-9.1 (2004-530)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_MYSQL_HOTCOPY.NASL
    descriptionThe following package needs to be updated: mysql-scripts
    last seen2016-09-26
    modified2004-08-23
    plugin id14339
    published2004-08-23
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=14339
    titleFreeBSD : mysql -- mysqlhotcopy insecure temporary file creation (125)

Oval

accepted2013-04-29T04:07:48.436-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 3
    ovaloval:org.mitre.oval:def:11782
  • commentCentOS Linux 3.x
    ovaloval:org.mitre.oval:def:16651
descriptionThe 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.
familyunix
idoval:org.mitre.oval:def:10693
statusaccepted
submitted2010-07-09T03:56:16-04:00
titleThe 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.
version26

Redhat

advisories
rhsa
idRHSA-2004:597
rpms
  • mysql-0:3.23.58-2.3
  • mysql-bench-0:3.23.58-2.3
  • mysql-debuginfo-0:3.23.58-2.3
  • mysql-devel-0:3.23.58-2.3