Vulnerabilities > CVE-2008-0226 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in multiple products
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
Multiple buffer overflows in yaSSL 1.7.5 and earlier, as used in MySQL and possibly other products, allow remote attackers to execute arbitrary code via (1) the ProcessOldClientHello function in handshake.cpp or (2) "input_buffer& operator>>" in yassl_imp.cpp.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Exploit-Db
description MySQL yaSSL SSL Hello Message Buffer Overflow. CVE-2008-0226. Remote exploit for linux platform id EDB-ID:16849 last seen 2016-02-02 modified 2010-05-09 published 2010-05-09 reporter metasploit source https://www.exploit-db.com/download/16849/ title MySQL yaSSL SSL Hello Message Buffer Overflow description MySQL. CVE-2008-0226. Remote exploit for linux platform id EDB-ID:9953 last seen 2016-02-01 modified 2008-01-04 published 2008-01-04 reporter MC source https://www.exploit-db.com/download/9953/ title MySQL <= 6.0 yaSSL <= 1.7.5 - Hello Message Buffer Overflow description MySQL yaSSL SSL Hello Message Buffer Overflow. CVE-2008-0226. Remote exploit for windows platform id EDB-ID:16701 last seen 2016-02-02 modified 2010-05-09 published 2010-05-09 reporter metasploit source https://www.exploit-db.com/download/16701/ title MySQL yaSSL SSL Hello Message Buffer Overflow
Metasploit
description This module exploits a stack buffer overflow in the yaSSL (1.7.5 and earlier) implementation bundled with MySQL <= 6.0. By sending a specially crafted Hello packet, an attacker may be able to execute arbitrary code. id MSF:EXPLOIT/LINUX/MYSQL/MYSQL_YASSL_HELLO last seen 2020-03-10 modified 2017-07-24 published 2010-01-27 references https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0226 reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/linux/mysql/mysql_yassl_hello.rb title MySQL yaSSL SSL Hello Message Buffer Overflow description This module exploits a stack buffer overflow in the yaSSL (1.7.5 and earlier) implementation bundled with MySQL <= 6.0. By sending a specially crafted Hello packet, an attacker may be able to execute arbitrary code. id MSF:EXPLOIT/WINDOWS/MYSQL/MYSQL_YASSL_HELLO last seen 2020-03-06 modified 2017-07-24 published 2010-01-26 references https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0226 reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/mysql/mysql_yassl_hello.rb title MySQL yaSSL SSL Hello Message Buffer Overflow
Nessus
NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-588-1.NASL description Masaaki Hirose discovered that MySQL could be made to dereference a NULL pointer. An authenticated user could cause a denial of service (application crash) via an EXPLAIN SELECT FROM on the INFORMATION_SCHEMA table. This issue only affects Ubuntu 6.06 and 6.10. (CVE-2006-7232) Alexander Nozdrin discovered that MySQL did not restore database access privileges when returning from SQL SECURITY INVOKER stored routines. An authenticated user could exploit this to gain privileges. This issue does not affect Ubuntu 7.10. (CVE-2007-2692) Martin Friebe discovered that MySQL did not properly update the DEFINER value of an altered view. An authenticated user could use CREATE SQL SECURITY DEFINER VIEW and ALTER VIEW statements to gain privileges. (CVE-2007-6303) Luigi Auriemma discovered that yaSSL as included in MySQL did not properly validate its input. A remote attacker could send crafted requests and cause a denial of service or possibly execute arbitrary code. This issue did not affect Ubuntu 6.06 in the default installation. (CVE-2008-0226, CVE-2008-0227). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 31638 published 2008-03-21 reporter Ubuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/31638 title Ubuntu 6.06 LTS / 6.10 / 7.04 / 7.10 : mysql-dfsg-5.0 vulnerabilities (USN-588-1) NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-588-2.NASL description USN-588-1 fixed vulnerabilities in MySQL. In fixing CVE-2007-2692 for Ubuntu 6.06, additional improvements were made to make privilege checks more restictive. As a result, an upstream bug was exposed which could cause operations on tables or views in a different database to fail. This update fixes the problem. We apologize for the inconvenience. Masaaki Hirose discovered that MySQL could be made to dereference a NULL pointer. An authenticated user could cause a denial of service (application crash) via an EXPLAIN SELECT FROM on the INFORMATION_SCHEMA table. This issue only affects Ubuntu 6.06 and 6.10. (CVE-2006-7232) Alexander Nozdrin discovered that MySQL did not restore database access privileges when returning from SQL SECURITY INVOKER stored routines. An authenticated user could exploit this to gain privileges. This issue does not affect Ubuntu 7.10. (CVE-2007-2692) Martin Friebe discovered that MySQL did not properly update the DEFINER value of an altered view. An authenticated user could use CREATE SQL SECURITY DEFINER VIEW and ALTER VIEW statements to gain privileges. (CVE-2007-6303) Luigi Auriemma discovered that yaSSL as included in MySQL did not properly validate its input. A remote attacker could send crafted requests and cause a denial of service or possibly execute arbitrary code. This issue did not affect Ubuntu 6.06 in the default installation. (CVE-2008-0226, CVE-2008-0227). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 31783 published 2008-04-04 reporter Ubuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/31783 title Ubuntu 6.06 LTS : mysql-dfsg-5.0 regression (USN-588-2) NASL family MacOS X Local Security Checks NASL id MACOSX_SECUPD2008-007.NASL description The remote host is running a version of Mac OS X 10.5 or 10.4 that does not have the security update 2008-007 applied. This security update contains fixes for the following products : - Apache - Certificates - ClamAV - ColorSync - CUPS - Finder - launchd - libxslt - MySQL Server - Networking - PHP - Postfix - PSNormalizer - QuickLook - rlogin - Script Editor - Single Sign-On - Tomcat - vim - Weblog last seen 2020-06-01 modified 2020-06-02 plugin id 34374 published 2008-10-10 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34374 title Mac OS X Multiple Vulnerabilities (Security Update 2008-007) NASL family Debian Local Security Checks NASL id DEBIAN_DSA-1478.NASL description Luigi Auriemma discovered two buffer overflows in YaSSL, an SSL implementation included in the MySQL database package, which could lead to denial of service and possibly the execution of arbitrary code. last seen 2020-06-01 modified 2020-06-02 plugin id 30125 published 2008-01-30 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/30125 title Debian DSA-1478-1 : mysql-dfsg-5.0 - buffer overflows NASL family Databases NASL id MYSQL_6_0_4_YASSL.NASL description The version of MySQL installed on the remote host reportedly allows a remote user to execute arbitrary code by exploiting a buffer overflow in yaSSL 1.7.5 or earlier. last seen 2020-06-01 modified 2020-06-02 plugin id 17814 published 2012-01-16 reporter This script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/17814 title yaSSL 1.7.5 Buffer Overflow NASL family Databases NASL id MYSQL_5_0_67.NASL description The version of MySQL Community Server 5.0 installed on the remote host is before 5.0.66. Such versions are reportedly affected by the following issues : - When using a FEDERATED table, a local server could be forced to crash if the remote server returns a result with fewer columns than expected (Bug #29801). - ALTER VIEW retains the original DEFINER value, even when altered by another user, which could allow that user to gain the access rights of the view (Bug #29908). - A local user can circumvent privileges through creation of MyISAM tables using the last seen 2020-06-01 modified 2020-06-02 plugin id 34159 published 2008-09-11 reporter This script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/34159 title MySQL Community Server 5.0 < 5.0.67 Multiple Vulnerabilities NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2008-150.NASL description Multiple buffer overflows in yaSSL, which is used in MySQL, allowed remote attackers to execute arbitrary code (CVE-2008-0226) or cause a denial of service via a special Hello packet (CVE-2008-0227). Sergei Golubchik found that MySQL did not properly validate optional data or index directory paths given in a CREATE TABLE statement; as well it would not, under certain conditions, prevent two databases from using the same paths for data or index files. This could allow an authenticated user with appropriate privilege to create tables in one database to read and manipulate data in tables later created in other databases, regardless of GRANT privileges (CVE-2008-2079). The updated packages have been patched to correct these issues. last seen 2020-06-01 modified 2020-06-02 plugin id 36561 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/36561 title Mandriva Linux Security Advisory : mysql (MDVSA-2008:150)
Packetstorm
data source https://packetstormsecurity.com/files/download/82247/mysql_yassl.rb.txt id PACKETSTORM:82247 last seen 2016-12-05 published 2009-10-27 reporter MC source https://packetstormsecurity.com/files/82247/MySQL-yaSSL-SSL-Hello-Message-Buffer-Overflow.html title MySQL yaSSL SSL Hello Message Buffer Overflow data source https://packetstormsecurity.com/files/download/85678/mysql_yassl_hello.rb.txt id PACKETSTORM:85678 last seen 2016-12-05 published 2010-01-27 reporter MC source https://packetstormsecurity.com/files/85678/MySQL-yaSSL-SSL-Hello-Message-Buffer-Overflow.html title MySQL yaSSL SSL Hello Message Buffer Overflow
Saint
bid | 27140 |
description | MySQL yaSSL SSL Hello message buffer overflow |
id | database_mysql_ssl |
osvdb | 41935 |
title | mysql_yassl_hello |
type | remote |
Statements
contributor | Mark J Cox |
lastmodified | 2008-01-11 |
organization | Red Hat |
statement | Not vulnerable. This issue did not affect versions of MySQL as shipped with Red Hat Enterprise Linux 2.1, 3, 4, 5, Red Hat Application Stack v1, and v2, as they are not built with yaSSL support. |
References
- http://bugs.mysql.com/33814
- http://dev.mysql.com/doc/refman/5.1/en/news-5-1-23.html
- http://lists.apple.com/archives/security-announce/2008/Oct/msg00001.html
- http://secunia.com/advisories/28324
- http://secunia.com/advisories/28419
- http://secunia.com/advisories/28597
- http://secunia.com/advisories/29443
- http://secunia.com/advisories/32222
- http://securityreason.com/securityalert/3531
- http://support.apple.com/kb/HT3216
- http://www.debian.org/security/2008/dsa-1478
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:150
- http://www.securityfocus.com/archive/1/485810/100/0/threaded
- http://www.securityfocus.com/archive/1/485811/100/0/threaded
- http://www.securityfocus.com/bid/27140
- http://www.securityfocus.com/bid/31681
- http://www.ubuntu.com/usn/usn-588-1
- http://www.vupen.com/english/advisories/2008/0560/references
- http://www.vupen.com/english/advisories/2008/2780
- https://exchange.xforce.ibmcloud.com/vulnerabilities/39429
- https://exchange.xforce.ibmcloud.com/vulnerabilities/39431