Exploit database

Vulnerability

CVE-2012-5613

Vulnerability details

Score
6.0
Severity
medium

CVSS 2.0 · NVD

Vector string

AV:N/AC:M/Au:S/C:P/I:P/A:P

Description

MySQL 5.5.19 and possibly other versions, and MariaDB 5.5.28a and possibly other versions, when configured to assign the FILE privilege to users who should not have administrative privileges, allows remote authenticated users to gain privileges by leveraging the FILE privilege to create files as the MySQL administrator. NOTE: the vendor disputes this issue, stating that this is only a vulnerability when the administrator does not follow recommendations in the product's installation documentation. NOTE: it could be argued that this should not be included in CVE because it is a configuration issue.

CVE Program

Exploit source choices

5 sources
Oracle MySQL for Microsoft Windows MOF Execution
MSF-windows--mysql--mysql_mofMetasploitWindows / remote

This module takes advantage of a file privilege misconfiguration problem specifically against Windows MySQL servers (due to the use of a .mof file). This may result in arbitrary code execution under the context of SYSTEM. This module requires a valid MySQL account on the target machine.

2012-12-01mysql_mof.rb
Oracle MySQL for Microsoft Windows FILE Privilege Abuse
MSF-windows--mysql--mysql_start_upMetasploitWindows / remote

This module takes advantage of a file privilege misconfiguration problem specifically against Windows MySQL servers. This module abuses the FILE privilege to write a payload to Microsoft's All Users Start Up directory which will execute every time a user logs in. The default All Users Start Up directory used by the module is present on Windows 7.

2012-12-01mysql_start_up.rb