Security issue?
#1
Hi - just received a very worrying e-mail from my pi that runs Raspbian & Kodi 17:

raspberrypi : Jun 6 18:55:14 : kodi : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/kodi ; USER=root ; COMMAND=/bin/grep -E ^pi: /etc/shadow

This smells bad because no application ever should need to execute grep for passwords, that's not the way Linux authentication works, anything legit uses PAM. Sudo grep on shadow looks even worse.

I did a quick grep for sudo|grep|shadow in /home/kodi, nothing there, it's either obfuscated or part of kodi itself?

Kodi is Version: 2:17.3-1~jessie from the raspbian repo, with a million plugins, but not running as root thank $deity
Reply
#2
*whew* it's not Kodi, sorry for the noise. A misguided soul created /etc/profile.d/sshpasswd.sh that does the silly grep. It's a Raspbian problem and comes from https://raw.githubusercontent.com/RPi-Di...hpasswd.sh
The way this check is done is silly and whoever created it forgot that on Linux there are non-sudo users Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Security issue?0