Description
MySQL 3.23.55 and earlier creates world-writeable files and allows mysql users to gain root privileges by using the "SELECT * INFO OUTFILE" operator to overwrite a configuration file and cause mysql to run as root upon restart, as demonstrated by modifying my.cnf.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- MySQL 3.23.x - 'mysqld' Local Privilege Escalation EDB-22340 · local · Mar 8, 2003 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20030318 [OpenPKG-SA-2003.022] OpenPKG Security Advisory (mysql) mailing-list
- oval:org.mitre.oval:def:442 vdb-entry signature
- CLA-2003:743 vendor-advisory
- 20030318 GLSA: mysql (200303-14) mailing-list
- DSA-303 vendor-advisory
- mysql-datadir-root-privileges(11510) vdb-entry
- RHSA-2003:094 vendor-advisory
- MDKSA-2003:057 vendor-advisory
- VU#203897 third-party-advisory
- 20030310 Re: MySQL user can be changed to root mailing-list
- ESA-20030324-012 vendor-advisory
- RHSA-2003:093 vendor-advisory
- 7052 vdb-entry
- 20030308 MySQL_user_can_be_changed_to_root? mailing-list