-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disclosed password in ps uax output #289
Comments
Hi @poralix This came for command line builder using password in command line. In order to fix this security issue, prefer use a non privileged user. Then, use a .my.cnf or .mylogin.cnf solution allow you to keep your password secret. BR |
Hello @jmrenouard, Thank you for your suggestion. I should have mentioned that the issue happens on servers with Directadmin (the hosting panel), which has /usr/local/directadmin/conf/my.cnf by default with superuser username and password. And mysqltuner detects the file automatically by default. I'm sure mysqltuner's community is very big, directadmin has a growing community too, and all admins and users would need to follow the steps and create a secure user... but why does then mysqltuner autodetects the file? Probably it should not detect the file and suggest creating a more secure user? Regards, |
Hi @poralix, We try to build a tool than can be the less intrusive as possible. Make it run with minimum privileges as possible and if not run it with a already created user. |
So when I know about the issue I can create an user with minimal privileges, and make myself secured. What about other users who trust mysqltuner and even don't think their password can be hijacked? Probably you should add a line under Security Recommendations ?! Saying...
Or do I miss anything? Regards, |
I have had this section in the README file. Thanks a lot ! |
#271 adding message prescision for in advces message
I add a info message related to password diclosure with --pass option. |
Hi @poralix I closed this issue ! The documentation and log in the script have been updated to get security information regarding this issue. Feel free to reopen it if needed. |
Maybe I'm missing something, but I've tried passing both |
Hello,
In certain cases mysqltuner 1.7.0 runs a little bit longer than expected, and in this case a superuser's password can be seen in ps aux output.
root 11718 0.0 0.0 106120 1188 pts/3 S+ 15:19 0:00 sh -c /usr/bin/mysql -u da_admin -psecret -Bse "\wSELECT ENGINE,SUM(DATA_LENGTH+INDEX_LENGTH),COUNT(ENGINE),SUM(DATA_LENGTH),SUM(INDEX_LENGTH) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'mysql') AND ENGINE IS NOT NULL GROUP BY ENGINE ORDER BY ENGINE ASC;" 2>>/dev/null
at the same time I can see another query running with a hidden password:
root 11719 0.0 0.0 195900 1832 pts/3 S+ 15:19 0:00 /usr/bin/mysql -u da_admin -px xxxxxx -Bse \wSELECT ENGINE,SUM(DATA_LENGTH+INDEX_LENGTH),COUNT(ENGINE),SUM(DATA_LENGTH),SUM(INDEX_LENGTH) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'mysql') AND ENGINE IS NOT NULL GROUP BY ENGINE ORDER BY ENGINE ASC;
Kindly advice.
p.s.
mysqltuner 1.7.0
MySQL version 5.5.53
CentOS release 6.8 (Final)
Regards,
Alex.
The text was updated successfully, but these errors were encountered: