MySQL Mysqlhotcopy Script Insecure Temporary File Creation Vulnerability
BID:10969
Info
MySQL Mysqlhotcopy Script Insecure Temporary File Creation Vulnerability
| Bugtraq ID: | 10969 |
| Class: | Design Error |
| CVE: |
CVE-2004-0457 |
| Remote: | No |
| Local: | Yes |
| Published: | Aug 18 2004 12:00AM |
| Updated: | Jul 12 2009 06:16AM |
| Credit: | Discovery is credited to Jeroen van Wolffelaar <[email protected]>. |
| Vulnerable: |
SuSE Linux 8.1 SuSE Linux 8.0 S.u.S.E. Linux Personal 9.2 S.u.S.E. Linux Personal 9.1 S.u.S.E. Linux Personal 9.0 x86_64 S.u.S.E. Linux Personal 9.0 S.u.S.E. Linux Personal 8.2 Redhat Linux 9.0 i386 Redhat Linux 7.3 i386 Redhat Fedora Core1 Redhat Enterprise Linux WS 3 Redhat Enterprise Linux ES 3 Redhat Enterprise Linux AS 3 Redhat Desktop 3.0 MySQL AB MySQL 4.0.20 MySQL AB MySQL 3.23.49 Mandriva Linux Mandrake 10.1 x86_64 Mandriva Linux Mandrake 10.1 Mandriva Linux Mandrake 10.0 AMD64 Mandriva Linux Mandrake 10.0 Mandriva Linux Mandrake 9.2 amd64 Mandriva Linux Mandrake 9.2 MandrakeSoft Corporate Server 2.1 x86_64 MandrakeSoft Corporate Server 2.1 Gentoo Linux 1.4 _rc3 Gentoo Linux 1.4 _rc2 Gentoo Linux 1.4 _rc1 Gentoo Linux 1.4 Gentoo Linux 1.2 Gentoo Linux 1.1 a Gentoo Linux 0.7 Gentoo Linux 0.5 |
| Not Vulnerable: | |
Discussion
MySQL Mysqlhotcopy Script Insecure Temporary File Creation Vulnerability
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. This issue presents itself when the 'scp' method is used with the script.
A local attacker may also possibly exploit this vulnerability to execute symbolic link file overwrite attacks.
It was confirmed that this issue exists in mysqlhotcopy shipped with MySQL 3.23.49 and 4.0.20. Other versions of MySQL are likely to be affected as well. This BID will be updated as more information becomes available.
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. This issue presents itself when the 'scp' method is used with the script.
A local attacker may also possibly exploit this vulnerability to execute symbolic link file overwrite attacks.
It was confirmed that this issue exists in mysqlhotcopy shipped with MySQL 3.23.49 and 4.0.20. Other versions of MySQL are likely to be affected as well. This BID will be updated as more information becomes available.
Exploit / POC
MySQL Mysqlhotcopy Script Insecure Temporary File Creation Vulnerability
No exploit is required.
No exploit is required.
Solution / Fix
MySQL Mysqlhotcopy Script Insecure Temporary File Creation Vulnerability
Solution:
Red Hat has released advisory RHSA-2004:569-16 and fixes to address this and other issues on Red Hat Linux Enterprise platforms. Customers who are affected by this issue are advised to apply the appropriate updates. Customers subscribed to the Red Hat Network may apply the appropriate fixes using the Red Hat Update Agent (up2date). Please see referenced advisory for additional information.
SuSE has released advisory (SUSE-SA:2004:030), in the addendum of this advisory it is announced that a mysql fix to address this vulnerability is available on the SuSE updates FTP server:
ftp://ftp.suse.com
Gentoo has released an advisory (GLSA 200409-02) and an updated eBuild to address this issue on Gentoo Linux systems. Users are recommended to run the following sequence of commands as a superuser to apply this update:
emerge sync
emerge -pv ">=dev-db/mysql-4.0.20-r1"
emerge ">=dev-db/mysql-4.0.20-r1"
Debian has released an advisory (DSA 540-1) to address this issue. Please see the referenced advisory for more information.
OpenBSD has applied fixes to the ports tree of OpenBSD-current, and the patch branches of 3.4 and 3.5. These patches are in CVS as of 23 Aug 2004.
Mandrake Linux has released advisory MDKSA-2004:119 along with fixes dealing with this and other issues. Please see the referenced advisory for more information.
SuSE has released a security summary report (SUSE-SR:2004:001) to address this and other issues. The report indicates that a fix for this issue is available on the SuSE FTP server and also through the YaST Online Update utility. Customers are advised to peruse the referenced advisory for further details regarding obtaining and applying appropriate fixes.
RedHat Fedora has made an advisory available (FEDORA-2004-530) dealing with this and other issues. Please see the referenced advisory for more information.
TurboLinux has released Security Announcement 17/Feb/2005 dealing with this and other issues; please see the reference section for more information.
A Fedora Legacy advisory FLSA:2129 is available to address this issue in Red Hat Linux 7.3, Red Hat Linux 9, and Fedora Core 1 for the i386 architecture. Please see the referenced advisory for more information.
MySQL AB MySQL 3.23.49
MySQL AB MySQL 4.0.20
S.u.S.E. Linux Personal 9.0 x86_64
S.u.S.E. Linux Personal 9.0
S.u.S.E. Linux Personal 9.1
Solution:
Red Hat has released advisory RHSA-2004:569-16 and fixes to address this and other issues on Red Hat Linux Enterprise platforms. Customers who are affected by this issue are advised to apply the appropriate updates. Customers subscribed to the Red Hat Network may apply the appropriate fixes using the Red Hat Update Agent (up2date). Please see referenced advisory for additional information.
SuSE has released advisory (SUSE-SA:2004:030), in the addendum of this advisory it is announced that a mysql fix to address this vulnerability is available on the SuSE updates FTP server:
ftp://ftp.suse.com
Gentoo has released an advisory (GLSA 200409-02) and an updated eBuild to address this issue on Gentoo Linux systems. Users are recommended to run the following sequence of commands as a superuser to apply this update:
emerge sync
emerge -pv ">=dev-db/mysql-4.0.20-r1"
emerge ">=dev-db/mysql-4.0.20-r1"
Debian has released an advisory (DSA 540-1) to address this issue. Please see the referenced advisory for more information.
OpenBSD has applied fixes to the ports tree of OpenBSD-current, and the patch branches of 3.4 and 3.5. These patches are in CVS as of 23 Aug 2004.
Mandrake Linux has released advisory MDKSA-2004:119 along with fixes dealing with this and other issues. Please see the referenced advisory for more information.
SuSE has released a security summary report (SUSE-SR:2004:001) to address this and other issues. The report indicates that a fix for this issue is available on the SuSE FTP server and also through the YaST Online Update utility. Customers are advised to peruse the referenced advisory for further details regarding obtaining and applying appropriate fixes.
RedHat Fedora has made an advisory available (FEDORA-2004-530) dealing with this and other issues. Please see the referenced advisory for more information.
TurboLinux has released Security Announcement 17/Feb/2005 dealing with this and other issues; please see the reference section for more information.
A Fedora Legacy advisory FLSA:2129 is available to address this issue in Red Hat Linux 7.3, Red Hat Linux 9, and Fedora Core 1 for the i386 architecture. Please see the referenced advisory for more information.
MySQL AB MySQL 3.23.49
-
Debian libmysqlclient10-dev_3.23.49-8.7_alpha.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_alpha.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_arm.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_arm.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_hppa.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_hppa.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_i386.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_i386.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_ia64.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_ia64.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_m68k.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_m68k.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_mips.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_mips.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_mipsel.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_mipsel.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_powerpc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_powerpc.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_s390.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_s390.deb -
Debian libmysqlclient10-dev_3.23.49-8.7_sparc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10- dev_3.23.49-8.7_sparc.deb -
Debian libmysqlclient10_3.23.49-8.7_alpha.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_alpha.deb -
Debian libmysqlclient10_3.23.49-8.7_arm.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_arm.deb -
Debian libmysqlclient10_3.23.49-8.7_hppa.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_hppa.deb -
Debian libmysqlclient10_3.23.49-8.7_i386.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_i386.deb -
Debian libmysqlclient10_3.23.49-8.7_ia64.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_ia64.deb -
Debian libmysqlclient10_3.23.49-8.7_m68k.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_m68k.deb -
Debian libmysqlclient10_3.23.49-8.7_mips.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_mips.deb -
Debian libmysqlclient10_3.23.49-8.7_mipsel.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_mipsel.deb -
Debian libmysqlclient10_3.23.49-8.7_powerpc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_powerpc.deb -
Debian libmysqlclient10_3.23.49-8.7_s390.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_s390.deb -
Debian libmysqlclient10_3.23.49-8.7_sparc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/libmysqlclient10_ 3.23.49-8.7_sparc.deb -
Debian mysql-client_3.23.49-8.7_alpha.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_alpha.deb -
Debian mysql-client_3.23.49-8.7_arm.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_arm.deb -
Debian mysql-client_3.23.49-8.7_hppa.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_hppa.deb -
Debian mysql-client_3.23.49-8.7_i386.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_i386.deb -
Debian mysql-client_3.23.49-8.7_ia64.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_ia64.deb -
Debian mysql-client_3.23.49-8.7_m68k.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_m68k.deb -
Debian mysql-client_3.23.49-8.7_mips.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_mips.deb -
Debian mysql-client_3.23.49-8.7_mipsel.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_mipsel.deb -
Debian mysql-client_3.23.49-8.7_powerpc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_powerpc.deb -
Debian mysql-client_3.23.49-8.7_s390.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_s390.deb -
Debian mysql-client_3.23.49-8.7_sparc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-client_3.23 .49-8.7_sparc.deb -
Debian mysql-common_3.23.49-8.7_all.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-common_3.23 .49-8.7_all.deb -
Debian mysql-doc_3.23.49-8.5_all.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-doc_3.23.49 -8.5_all.deb -
Debian mysql-server_3.23.49-8.7_alpha.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_alpha.deb -
Debian mysql-server_3.23.49-8.7_arm.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_arm.deb -
Debian mysql-server_3.23.49-8.7_i386.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_i386.deb -
Debian mysql-server_3.23.49-8.7_ia64.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_ia64.deb -
Debian mysql-server_3.23.49-8.7_m68k.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_m68k.deb -
Debian mysql-server_3.23.49-8.7_mips.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_mips.deb -
Debian mysql-server_3.23.49-8.7_mipsel.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_mipsel.deb -
Debian mysql-server_3.23.49-8.7_powerpc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_powerpc.deb -
Debian mysql-server_3.23.49-8.7_s390.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_s390.deb -
Debian mysql-server_3.23.49-8.7_sparc.deb
Debian GNU/Linux 3.0 alias woody
http://security.debian.org/pool/updates/main/m/mysql/mysql-server_3.23 .49-8.7_sparc.deb -
RedHat mysql-3.23.58-1.73.5.legacy.i386.rpm
RedHat Linux 7.3
http://download.fedoralegacy.org/redhat/7.3/updates/i386/mysql-3.23.58 -1.73.5.legacy.i386.rpm -
RedHat mysql-devel-3.23.58-1.73.5.legacy.i386.rpm
RedHat Linux 7.3
http://download.fedoralegacy.org/redhat/7.3/updates/i386/mysql-devel-3 .23.58-1.73.5.legacy.i386.rpm -
RedHat mysql-server-3.23.58-1.73.5.legacy.i386.rpm
RedHat Linux 7.3
http://download.fedoralegacy.org/redhat/7.3/updates/i386/mysql-server- 3.23.58-1.73.5.legacy.i386.rpm
MySQL AB MySQL 4.0.20
-
Mandrake lib64mysql12-4.0.20-3.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake lib64mysql12-devel-4.0.20-3.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libmysql12-4.0.20-3.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake libmysql12-devel-4.0.20-3.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-4.0.20-3.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-4.0.20-3.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-bench-4.0.20-3.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-bench-4.0.20-3.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-client-4.0.20-3.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-client-4.0.20-3.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-common-4.0.20-3.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-common-4.0.20-3.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-Max-4.0.20-3.1.101mdk.i586.rpm
Mandrake Linux 10.1
http://www.mandrakesecure.net/en/ftp.php -
Mandrake MySQL-Max-4.0.20-3.1.101mdk.x86_64.rpm
Mandrake Linux 10.1/x86_64
http://www.mandrakesecure.net/en/ftp.php
S.u.S.E. Linux Personal 9.0 x86_64
-
SuSE mysql-51589
SuSE Linux 9.0, 9.1 & 9.0x86_64
http://ftp.suse.com/pub/suse/x86_64/update/9.0/patches/mysql-51589
S.u.S.E. Linux Personal 9.0
-
SuSE mysql-51589
SuSE Linux 9.0, 9.1 & 9.0x86_64
http://ftp.suse.com/pub/suse/x86_64/update/9.0/patches/mysql-51589
S.u.S.E. Linux Personal 9.1
-
SuSE mysql-51589
SuSE Linux 9.0, 9.1 & 9.0x86_64
http://ftp.suse.com/pub/suse/x86_64/update/9.0/patches/mysql-51589
References
MySQL Mysqlhotcopy Script Insecure Temporary File Creation Vulnerability
References:
References: