MySQL DEFINER value privilege escalation

mysql-definer-value-privilege-escalation (38989) The risk level is classified as HighHigh Risk

Description:

MySQL could allow a remote authenticated attacker to gain elevated privileges on the system, caused by the failure to update the DEFINER value of an altered view. An attacker could exploit this vulnerability using the CREATE SQL SECURITY DEFINER VIEW and ALTER VIEW statements to gain elevated privileges on the vulnerable system.

Platforms Affected:

  • Canonical, Ubuntu 6.06 LTS
  • Canonical, Ubuntu 6.10
  • Canonical, Ubuntu 7.04
  • Canonical, Ubuntu 7.10
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 2008.0
  • MandrakeSoft, Mandrake Linux 2008.0 X86_64
  • MySQL, MySQL 5.0
  • MySQL, MySQL 5.0.0 Alpha
  • MySQL, MySQL 5.0.0
  • MySQL, MySQL 5.0.0.0
  • MySQL, MySQL 5.0.1
  • MySQL, MySQL 5.0.10
  • MySQL, MySQL 5.0.10a
  • MySQL, MySQL 5.0.11
  • MySQL, MySQL 5.0.12
  • MySQL, MySQL 5.0.13
  • MySQL, MySQL 5.0.14
  • MySQL, MySQL 5.0.15
  • MySQL, MySQL 5.0.15a
  • MySQL, MySQL 5.0.16
  • MySQL, MySQL 5.0.16a
  • MySQL, MySQL 5.0.17
  • MySQL, MySQL 5.0.17a
  • MySQL, MySQL 5.0.18
  • MySQL, MySQL 5.0.19
  • MySQL, MySQL 5.0.1a
  • MySQL, MySQL 5.0.2
  • MySQL, MySQL 5.0.20
  • MySQL, MySQL 5.0.20a
  • MySQL, MySQL 5.0.21
  • MySQL, MySQL 5.0.22
  • MySQL, MySQL 5.0.24
  • MySQL, MySQL 5.0.27
  • MySQL, MySQL 5.0.3 Beta
  • MySQL, MySQL 5.0.3
  • MySQL, MySQL 5.0.33
  • MySQL, MySQL 5.0.37
  • MySQL, MySQL 5.0.3a
  • MySQL, MySQL 5.0.4
  • MySQL, MySQL 5.0.41
  • MySQL, MySQL 5.0.4a
  • MySQL, MySQL 5.0.5
  • MySQL, MySQL 5.0.6
  • MySQL, MySQL 5.0.7
  • MySQL, MySQL 5.0.8
  • MySQL, MySQL 5.0.9
  • MySQL, MySQL 5.1.1
  • MySQL, MySQL 5.1.10
  • MySQL, MySQL 5.1.11
  • MySQL, MySQL 5.1.12
  • MySQL, MySQL 5.1.13
  • MySQL, MySQL 5.1.14
  • MySQL, MySQL 5.1.15
  • MySQL, MySQL 5.1.16
  • MySQL, MySQL 5.1.17
  • MySQL, MySQL 5.1.2
  • MySQL, MySQL 6.0.0
  • MySQL, MySQL 6.0.1
  • MySQL, MySQL 6.0.2
  • MySQL, MySQL 6.0.3
  • RedHat, Application Stack v1 for EL AS 4
  • RedHat, Application Stack v1 for EL ES 4
  • RedHat, RHEL Application Stack 2

Remedy:

Upgrade to the latest version of MySQL (5.1.23, 5.0.52 or 6.0.4 or later), available from the MySQL Web site. See References.

Consequences:

Gain Privileges

References:

  • MySQL 5.0.52 Reference Manual, C.1.2. Release Notes for MySQL Enterprise 5.0.52 [MRU] (30 Nov 2007) at http://dev.mysql.com/downloads/.
  • MySQL 5.1.23 Reference Manual, C.1.1. Changes in MySQL 5.1.23 (Not yet released) at http://dev.mysql.com/downloads/.
  • MySQL 6.0.4 Reference Manual, C.1.2. Changes in MySQL 6.0.4 (Not yet released) at http://dev.mysql.com/downloads/.
  • ASA-2008-018: mysql security update (RHSA-2007-1157)
  • BID-26832: MySQL Server Privilege Escalation And Denial Of Service Vulnerabilities
  • CVE-2007-6303: MySQL 5.0.x before 5.0.51a, 5.1.x before 5.1.23, and 6.0.x before 6.0.4 does not update the DEFINER value of a view when the view is altered, which allows remote authenticated users to gain privileges via a sequence of statements including a CREATE SQL SECURITY DEFINER VIEW statement and an ALTER VIEW statement.
  • FrSIRT/ADV-2007-4198: MySQL Multiple Security Bypass and Denial of Service Vulnerabilities
  • GLSA-200804-04: MySQL: Multiple vulnerabilities
  • MDVSA-2008:017: Updated MySQL packages fix multiple vulnerabilities
  • RHSA-2007-1157: Important: mysql security update
  • SA28063: MySQL Security Issue and Two Vulnerabilities
  • SECTRACK ID: 1019085: MySQL Bugs Let Remote Authenticated Users Gain Elevated Privileges and Deny Service
  • SUSE-SR:2008:003: SUSE Security Summary Report
  • USN-588-1: MySQL vulnerabilities
  • USN-588-2: MySQL regression

Reported:

Dec 10, 2007

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 (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.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page