MySQL ALTER TABLE RENAME bypass restriction
| mysql-alter-restriction-bypass (17666) |
Description:
MySQL could allow a remote attacker to bypass security restrictions, caused by a vulnerability in the ALTER TABLE RENAME operation, which enables the CREATE/INSERT rights for old tables.
Platforms Affected:
- Conectiva, Linux 10
- Conectiva, Linux 9.0
- Debian, Debian Linux 3.0
- FedoraProject, Fedora Core 2
- FedoraProject, Fedora Core 3
- FedoraProject, Fedora Core 4
- FreeBSD, FreeBSD 2.0
- FreeBSD, FreeBSD 3.0
- Gentoo, Linux
- HP, HP-UX 10.20
- HP, HP-UX 11.00
- IBM, AIX 4
- MandrakeSoft, Mandrake Linux 10.0 AMD64
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 10.1
- MandrakeSoft, Mandrake Linux 10.1 X86_64
- MandrakeSoft, Mandrake Linux 9.2
- MandrakeSoft, Mandrake Linux 9.2 AMD64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MySQL, MySQL 3.23.10
- MySQL, MySQL 3.23.2
- MySQL, MySQL 3.23.22
- MySQL, MySQL 3.23.23
- MySQL, MySQL 3.23.25
- MySQL, MySQL 3.23.26
- MySQL, MySQL 3.23.27
- MySQL, MySQL 3.23.28 Gamma
- MySQL, MySQL 3.23.28
- MySQL, MySQL 3.23.29
- MySQL, MySQL 3.23.3
- MySQL, MySQL 3.23.30
- MySQL, MySQL 3.23.31
- MySQL, MySQL 3.23.32
- MySQL, MySQL 3.23.33
- MySQL, MySQL 3.23.34
- MySQL, MySQL 3.23.36
- MySQL, MySQL 3.23.37
- MySQL, MySQL 3.23.38
- MySQL, MySQL 3.23.39
- MySQL, MySQL 3.23.4
- MySQL, MySQL 3.23.40
- MySQL, MySQL 3.23.41
- MySQL, MySQL 3.23.42
- MySQL, MySQL 3.23.43
- MySQL, MySQL 3.23.44
- MySQL, MySQL 3.23.45
- MySQL, MySQL 3.23.46
- MySQL, MySQL 3.23.47
- MySQL, MySQL 3.23.48
- MySQL, MySQL 3.23.49
- MySQL, MySQL 3.23.5
- MySQL, MySQL 3.23.50
- MySQL, MySQL 3.23.51
- MySQL, MySQL 3.23.52
- MySQL, MySQL 3.23.53
- MySQL, MySQL 3.23.53a
- MySQL, MySQL 3.23.54
- MySQL, MySQL 3.23.54a
- MySQL, MySQL 3.23.55
- MySQL, MySQL 3.23.56
- MySQL, MySQL 3.23.58
- MySQL, MySQL 3.23.8
- MySQL, MySQL 3.23.9
- MySQL, MySQL 4.0.0
- MySQL, MySQL 4.0.1
- MySQL, MySQL 4.0.10
- MySQL, MySQL 4.0.11
- MySQL, MySQL 4.0.11 Gamma
- MySQL, MySQL 4.0.12
- MySQL, MySQL 4.0.13
- MySQL, MySQL 4.0.14
- MySQL, MySQL 4.0.15
- MySQL, MySQL 4.0.17
- MySQL, MySQL 4.0.18
- MySQL, MySQL 4.1.0.0
- MySQL, MySQL 4.1.0.0 Alpha
- MySQL, MySQL 4.1.1
- MySQL, MySQL 4.1.11
- MySQL, MySQL 5.0.0 Alpha
- MySQL, MySQL 5.0.0
- NetBSD, NetBSD 1.3
- NetBSD, NetBSD 1.4
- OpenBSD, OpenBSD 2.0
- RedHat, Enterprise Linux 2.1 AW
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Linux 7
- RedHat, Linux 7.2
- RedHat, Linux 8.0
- RedHat, Linux 9.0
- RedHat, Linux Advanced Workstation 2.1 Itanium
- RedHat, RHEL Extras 3
- SCO, SCO OpenServer
- SCO, SCO UnixWare 7.0.1
- SGI, IRIX 6.0
- Sun, Solaris 10 x86
- Sun, Solaris 10 SPARC
- Sun, Solaris 2.6
- Sun, Solaris 2.7
- Sun, SunOS 4.0
- Trustix, Enterprise Server 2
- Trustix, Secure Linux 1.5
- Trustix, Secure Linux 2.0
- Trustix, Secure Linux 2.1
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux 8 Workstation
- Turbolinux, Turbolinux Home
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
Remedy:
Upgrade to the latest version of MySQL (3.23.59 or 4.0.21 or later), available from the MySQL Web site. See References.
For Debian GNU/Linux 3.0 (woody):
Upgrade to the latest mysql package, as listed below. Refer to DSA-562-1 for more information. See References.
Debian GNU/Linux 3.0 (woody): 3.23.49-8.8 or later
For Trustix Secure Linux:
Upgrade to the latest mysql package, as listed in Trustix Secure Linux Security Advisory #2004-0054 for more information. See References.
For Red Hat Linux:
Upgrade to the latest mysql package, as listed below. Refer to RHSA-2004:597-06 for more information. See References.
Red Hat Enterprise Linux AS (v. 2.1), ES (v. 2.1), WS (v. 2.1), and Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor: 3.23.58-1.72.1 or later
For Gentoo Linux:
Upgrade to the latest version of MySQL (4.0.21 or later), as listed in GLSA 200410-22. See References.
For Red Hat Linux:
Upgrade to the latest mysql-server package, as listed below. Refer to RHSA-2004:611-04 for more information. See References.
Red Hat Enterprise Linux AS (v. 3), ES (v. 3), WS (v. 3), Desktop: 3.23.58-2.3.x86_64 or later
For Mandrake Linux:
Upgrade to the latest MySQL package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:119 for more information. See References.
Mandrake Linux 9.2: 4.0.15-1.2.92mdk or later
Mandrake Linux Corporate Server 2.1: 3.23.56-1.6.C21mdk or later
Mandrake Linux 10.0: 4.0.18-1.2.100mdk or later
Mandrake Linux 10.1: 4.0.20-3.1.101mdk or later
For Conectiva Linux:
Upgrade to the latest MySQL package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:892 for more information. See References.
Conectiva Linux 8: 4.0.15-62448U10_1cl or later
Conectiva Linux 9: 3.23.58-20507U90_2cl or later
For Fedora Core 2:
Upgrade to the latest mysql package (3.23.58-9.1 or later), as listed in Fedora Update Notification FEDORA-2004-530. See References.
For other distributions:
Apply the appropriate update for your system. See References.
Consequences:
Bypass Security
References:
- CIAC Information Bulletin P-018, Red Hat Update MySQL Packages Fix Security Issues and Bugs at http://www.ciac.org/ciac/bulletins/p-018.shtml.
- Conectiva Linux Security Announcement CLSA-2004:892, Fixes for several mysql vulnerabilities at http://distro.conectiva.com.br/atualizacoes/index.php?id=a&anuncio=000892.
- MySQL Bugs: #3270, ALTER TABLE ... RENAME do not check rights of target table at http://bugs.mysql.com/bug.php?id=3270.
- MySQL Web site, MySQL:The World's Most Popular Open Source Database at http://www.mysql.com/.
- Sun Alert ID: 201658, Multiple Security Vulnerabilities in The "MySQL" Package at http://sunsolve.sun.com/search/document.do?assetkey=1-66-201658-1.
- Trustix Secure Linux Security Advisory #2004-0054, Multiple security vulnerabilities at http://www.trustix.net/errata/2004/0054/.
- BID-11357: MySQL Multiple Local Vulnerabilities
- CVE-2004-0835: MySQL 3.x before 3.23.59, 4.x before 4.0.19, 4.1.x before 4.1.2, and 5.x before 5.0.1, checks the CREATE/INSERT rights of the original table instead of the target table in an ALTER TABLE RENAME operation, which could allow attackers to conduct unauthorized activities.
- DSA-562: mysql -- several vulnerabilities
- GLSA-200410-22: MySQL: Multiple vulnerabilities
- MDKSA-2004:119: Updated MySQL packages fix multiple vulnerabilities
- RHSA-2004-597: mysql security update
- RHSA-2004-611: mysql-server security update
- SA12783: MySQL Multiple Vulnerabilities
- SECTRACK ID: 1011606: MySQL May Let Remote Authenticated Users Access Restricted Tables or Crash the System
- SUSE-SR:2004:001: SUSE Security Summary Report
Reported:
Oct 11, 2004
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
