Re:MySQL Remote Root Code Execution/Privilege Escalation Exp...
by msimpson on Friday September 16, 2016 @11:01AM
(#12514455)
You're right, running mysqld_safe is the problem. However, after a quick bit of further research, even Debian isn't running mysqld_safe anymore as they now default to systemd in version 8. So this isn't even a problem in that distribution unless you make it one.
Re:MySQL Remote Root Code Execution/Privilege Escalation Exp...
by JdeBP on Friday September 16, 2016 @12:05PM
(#12514966)
Your research was too quick. (-:
Debian 8 packages up mysql 5.5 with only a van Smoorenburg rc script, no systemd units.
* https://packages.debian.org/en/jessie/arm64/mysql-server-5.5...
Debian 8 only has mysql 5.6 available through backports. That has a systemd service unit, written in 2014 by Akhil Mohan of Oracle. That service unit invokes mysqld_safe, though, in classic systemd House of Horror fashion.
* https://packages.debian.org/en/jessie-backports/arm64/mysql-...
* https://anonscm.debian.org/cgit/pkg-mysql/mysql-5.6.git/tree...
Apparently, Red Hat Enterprise Linux 7 has no systemd unit files for mysql 5.6, either, and still uses mysqld_safe.
* http://rpm.pbone.net/index.php3/stat/6/idpl/34647467/dir/red...
Re:MySQL Remote Root Code Execution/Privilege Escalation Exp...
by msimpson on Tuesday September 20, 2016 @10:22AM
(#12539716)
You're right, again, even though you linked arm64 file lists instead of amd64. The 5.6 backport does have that unit file, but the badly written one from Oracle. I guess you shouldn't use Debian (-:
(Part of) the problem is that it is run at all. Don't be confused into thinking that this is a Debian problem, moreover, just because the problem happened to be demonstrated on Debian Linux. Debian isn't the only system still running mysqld_safe.
* http://jdebp.eu./Softwares/nosh/mariadb-and-mysql.html