CVE-2012-2122 Oracle MySQL Authentication Bypass Password Dump Metasploit Demo
Timeline :
Vulnerability discovered by Sergei Golubchik in April 2012
Bug reported to vendor by Sergei Golubchik the 2012-04-06
Public release of the vulnerability the 2012-06-09
Metasploit PoC provided the 2012-06-11
PoC provided by :
Yorick Koster
jcran
Reference(s) :
CVE-2012-2122
Oracle MySQL BUG 64884
Oracle MySQL 5.1.63 Changes
Oracle MySQL 5.5.24 Changes
Affected version(s) :
Oracle MySQL versions before or equal to 5.1.61 (on some platforms)
Oracle MySQL versions before or equal to 5.5.24 (on some platforms)
Tested on Fedora release 16 (Verne) with :
5.5.23 MySQL Community Server
Description :
The targeted username will need to have allowed remote connections, like :
grant all on *.* to root@'%' identified by 'password';
This module exploits a password bypass vulnerability in MySQL in order to extract the usernames and encrypted password hashes from a MySQL server. These hashes ares stored as loot for later cracking.
Commands :
use auxiliary/scanner/mysql/mysql_authbypass_hashdump set RHOSTS 192.168.178.43 set USERNAME root run
I recommend you to read these related posts
- Oracle MySQL UDF for Microsoft Windows Metasploit Payload Execution
- Metasploit MySQL Auxiliary Modules
- Oracle MySQL InnoDB Bugs 13510739 and 63775 DoS Demo
- CVE-2012-5613 MySQL Database Privilege Elevation 0day Exploit Demo
- CVE-2005-1636 MySQL mysql_install_db Symlink Arbitrary File Overwrite
- Year 2012 Main Exploitable Vulnerabilities Interactive Timeline
- Metasploit Oracle database enumeration (oraenum)
- CVE-2012-0507 Java AtomicReferenceArray Type Violation Vulnerability Metasploit Demo
- CVE-2011-0807 : Sun/Oracle GlassFish Server Authenticated Code Execution Metasploit Demo
- CVE-2010-3867 : ProFTPD IAC Remote Root Exploit
[...] Mysql认证绕过漏洞(CVE-2012-2122) MariaDB 5.1.62, 5.2.12、5.3.6、5.5.23之前版本和MySQL 5.1.63、5.5.24、5.6.6之前版本在用户验证的处理上存在安全漏洞,可能导致攻击者无需知道正确口令就能登录到MySQL服务器。 用户连接到MariaDB/MySQL后,应用会计算和比较令牌值,由于错误的转换,即使memcmp()返回非零值,也可能出现错误的比较,造成 MySQL/MariaDB误认为密码是正确的,因为协议使用的是随机字符串,该Bug发生的几率为1/256。MySQL的版本是否受影响取决于程序的 编译方式,很多版本(包括官方提供的二进制文件)并不受此漏洞的影响。 该漏洞相信大家已经很熟悉了,之前freebuf也详细报道过,详见地址 [...]
[...] Mysql认证绕过漏洞(CVE-2012-2122) MariaDB 5.1.62, 5.2.12、5.3.6、5.5.23之前版本和MySQL 5.1.63、5.5.24、5.6.6之前版本在用户验证的处理上存在安全漏洞,可能导致攻击者无需知道正确口令就能登录到MySQL服务器。 用户连接到MariaDB/MySQL后,应用会计算和比较令牌值,由于错误的转换,即使memcmp()返回非零值,也可能出现错误的比较,造成MySQL/MariaDB误认为密码是正确的,因为协议使用的是随机字符串,该Bug发生的几率为1/256。MySQL的版本是否受影响取决于程序的编译方式,很多版本(包括官方提供的二进制文件)并不受此漏洞的影响。 该漏洞相信大家已经很熟悉了,之前本站也详细报道过,详见地址 [...]
Exploiting MySQL Authentication Bypass Vulnerability (CVE-2012-2122)
where I can download the POC ?