Rapid7 Vulnerability & Exploit Database

MySQL Authentication Bypass Password Dump

Back to Search

MySQL Authentication Bypass Password Dump



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 are stored as loot for later cracking. Impacts MySQL versions: - 5.1.x before 5.1.63 - 5.5.x before 5.5.24 - 5.6.x before 5.6.6 And MariaDB versions: - 5.1.x before 5.1.62 - 5.2.x before 5.2.12 - 5.3.x before 5.3.6 - 5.5.x before 5.5.23


  • theLightCosine <theLightCosine@metasploit.com>
  • jcran <jcran@metasploit.com>


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/scanner/mysql/mysql_authbypass_hashdump
msf auxiliary(mysql_authbypass_hashdump) > show actions
msf auxiliary(mysql_authbypass_hashdump) > set ACTION < action-name >
msf auxiliary(mysql_authbypass_hashdump) > show options
    ...show and set options...
msf auxiliary(mysql_authbypass_hashdump) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security