vendor:
by:
Kingcope
7.5
CVSS
HIGH
Privilege Elevation
CWE
Product Name:
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested: Debian Lenny (mysql-5.0.51a), OpenSuSE 11.4 (5.1.53-log)
MySQL privilege elevation Exploit
This exploit adds a new admin user by taking advantage of a stack overrun vulnerability and the ability to create trigger files in MySQL. The attacker needs to have 'file' privileges for the target system and be able to create files owned by the 'mysql' user. By creating a trigger file with the attached user set as 'root@localhost', the exploit is able to execute commands with admin privileges. The exploit involves crashing the MySQL server to force it to recognize the trigger file and then creating a new user with all privileges enabled.
Mitigation:
To mitigate this vulnerability, it is recommended to ensure that only trusted users have 'file' privileges for the MySQL server. Regularly updating and patching MySQL installations can also help protect against this exploit.