MySQL command-line client cross-site scripting
| mysql-commandline-xss (45590) |
Description:
MySQL is vulnerable to cross-site scripting, caused by improper validation of HTML special characters by the command-line client. A remote attacker could exploit this vulnerability using a data table to inject malicious JavaScript into a Web page which would be executed in a victim's Web browser within the security context of the hosting Web site, once the page is viewed. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.
*CVSS:
| Base Score: | 2.8 |
| Access Vector: | Remote |
| Access Complexity: | High |
| Authentication: | Not Required |
| Confidentiality Impact: | None |
| Integrity Impact: | Partial |
| Availability Impact: | None |
| Temporal Score: | 2.1 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Apply the patch for this vulnerability (bug27884.patch), available from MySQL Bug #27884. See References.
For other distributions:
Apply the appropriate update for your system. See References.
References:
- Apple Web site: About the security content of Security Update 2010-002 / Mac OS X v10.6.3.
- BugTraq Mailing List, Tue Sep 30 2008 - 03:29:38 CDT: MySQL command-line client HTML injection vulnerability.
- Henlich schreibt Advisory, 2007-04-17: MySQL command-line client HTML injection vulnerability.
- MySQL Bug #27884: mysql --html does not quote HTML special characters in output.
- MySQL Web site: MySQL Downloads.
- BID-31486: MySQL Command Line Client HTML Special Characters HTML Injection Vulnerability
- CVE-2008-4456: Cross-site scripting (XSS) vulnerability in the command-line client in MySQL 5.0.26 through 5.0.45, and other versions including versions later than 5.0.45, when the --html option is enabled, allows attackers to inject arbitrary web script or HTML by placing it in a database cell, which might be accessed by this client when composing an HTML document. NOTE: as of 20081031, the issue has not been fixed in MySQL 5.0.67.
- DSA-1783: mysql-dfsg-5.0 -- multiple vulnerabilities
- MDVSA-2009:094: mysql
- MDVSA-2009:326: mysql
- RHSA-2009-1289: Moderate: mysql security and bug fix update
- RHSA-2009-1461: Important: Red Hat Application Stack v2.4 security and enhancement update
- RHSA-2010-0110: Moderate: mysql security update
- SA32072: MySQL HTML Output Script Insertion Security Issue
- SUSE-SR:2009:014: SUSE Security Summary Report
- USN-897-1: MySQL vulnerabilities
Platforms Affected:
- Apple Mac OS X Server 10.6
- Apple Mac OS X Server 10.6.1
- Apple Mac OS X Server 10.6.2
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 8.04 LTS
- Canonical Ubuntu 8.10
- Debian Debian Linux 4.0
- Debian Debian Linux 5.0
- MandrakeSoft Mandrake Linux 2008.0
- MandrakeSoft Mandrake Linux 2008.0 X86_64
- MandrakeSoft Mandrake Linux 2008.1 X86_64
- MandrakeSoft Mandrake Linux 2008.1
- MandrakeSoft Mandrake Linux Corporate Server 4.0
- MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
- Mandriva Linux 2009.0
- Mandriva Linux 2009.0 X86_64
- MySQL MySQL 5.0
- MySQL MySQL 5.0.1
- MySQL MySQL 5.0.18
- MySQL MySQL 5.0.19
- MySQL MySQL 5.0.2
- MySQL MySQL 5.0.20
- MySQL MySQL 5.0.21
- MySQL MySQL 5.0.22
- MySQL MySQL 5.0.22.1.0.1
- MySQL MySQL 5.0.27
- MySQL MySQL 5.0.3
- MySQL MySQL 5.0.33
- MySQL MySQL 5.0.37
- MySQL MySQL 5.0.4
- MySQL MySQL 5.0.44
- 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.23
- MySQL MySQL 5.1.5
- MySQL MySQL 5.1.6
- MySQL MySQL 5.1.9
- RedHat Enterprise Linux 4 AS
- RedHat Enterprise Linux 4 ES
- RedHat Enterprise Linux 4 Desktop
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4.8.z AS
- RedHat Enterprise Linux 4.8.z ES
- RedHat Enterprise Linux 5 Client
- RedHat Enterprise Linux 5 Client Workstation
- RedHat Enterprise Linux 5
- RedHat RHEL Application Stack 2
Reported:
Apr 17, 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 (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
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
