Re: [Maria-developers] [Commits] 063967b: MDEV-9081 - Debian: insecure debian-sys-maint password handling

Hi, Sergey! On Dec 21, Sergey Vojtovich wrote:
is that needed? (not that it hurts, but still...)
+ chmod 0600 $dc
ok. what about other issues you've mentioned in this MDEV-9081? besides, what the plan for moving to unix_socket auth?
Regards, Sergei Chief Architect MariaDB and security@mariadb.org -- Vote for my Percona Live 2016 talks: https://www.percona.com/live/data-performance-conference-2016/sessions/maria... https://www.percona.com/live/data-performance-conference-2016/sessions/maria...

Hi Sergei, On Mon, Dec 21, 2015 at 12:50:05PM +0100, Sergei Golubchik wrote:
+ chmod 0600 $dc
ok. what about other issues you've mentioned in this MDEV-9081?
echo, while it has bad reputation seem to be more or less alright. At least I couldn't intercept it. REPLACE is not solved, but will be solved by unix_socket auth.
I could probably do that over the next week, or some time in February/March. Thanks, Sergey

Hi, Sergey! On Dec 21, Sergey Vojtovich wrote:
ok, thanks
ok
my point was - if unix_socket comes soon, why bother fixing these issues? and it not, then "will be solved by unix_socket" is not an excuse we can use. Regards, Sergei Chief Architect MariaDB and security@mariadb.org -- Vote for my Percona Live 2016 talks: https://www.percona.com/live/data-performance-conference-2016/sessions/maria... https://www.percona.com/live/data-performance-conference-2016/sessions/maria...

Hi, Sergey! On Dec 21, Sergey Vojtovich wrote:
Okay, let's do that. Let's just push the chmod fix, it's the only security-relevant issue in your MDEV. But now I'm thinking that your fix isn't bullet-proof either, it makes the window smaller but doesn't eliminate it. A safe version could be something like sh -c 'umask 0077 && touch /secret/file' Regards, Sergei

Hi Sergei, On Mon, Dec 21, 2015 at 08:22:51PM +0100, Sergei Golubchik wrote:
A safe version could be something like
sh -c 'umask 0077 && touch /secret/file'
You're right, permission is checked on open and not on subsequent IO. I'll fix it. Thanks, Sergey
participants (2)
-
Sergei Golubchik
-
Sergey Vojtovich