82804 : Oracle MySQL Authentication Protocol Token Comparison Casting Failure Password Bypass
Printer | http://osvdb.org/82804 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
17 1179 12 months ago 4 months ago 27 times 100%

Timeline

Disclosure Date
2012-05-07

Description

MySQL contains a flaw that is triggered when a users connects to MySQL and a randomly generated token is calculated and then compared with an expected value. Due to a failure in casting it is possible that the values are seen as equal even if the memcmp() function returns a zero value. This will tell the program that the password is correct, when it is not. Due to the protocol generating random strings this may allow an attacker to bypass password authentication with a ~ 1/256 odds.

Classification

Location: Local / Remote
Attack Type: Authentication Management
Impact: Loss of Integrity
Solution: Upgrade
Exploit: Exploit Public, Exploit Commercial
Disclosure: Vendor Verified

Solution

Upgrade to version 5.1.63, 5.5.24, 5.6.6 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Products

Oracle Corporation
MySQL
5.1.61
5.2.11
5.3.5
5.5.22

References

Tools & Filters

mysql_login_remote

Credit

CVSSv2 Score

CVSSv2 Base Score = 5.1
Source: nvd.nist.gov | Generated: 2012-06-27 | Disagree?

Access_vector_2 Access_complexity_0 Authentication_2 Confidentiality_impact_1 Integrity_impact_1 Availability_impact_1

Comments

No Comments.

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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 copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2002 - 2013 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use