by MBlume · 12y ago · 0 comments
Homebrew installs upgraded bash to /usr/local/bin/bash, everyone says what I should do is run 'chsh -s /usr/local/bin/bash' but if I have a script that has a /bin/bash hashbang at the top, won't it still use the vulnerable bash install?
I mean I guess the answer is "you're probably not hosting a publicly accessible service on your mac, who cares?", which is true in my case, but still.
The good news is that as long as you're not running a local server, the vulnerability is pretty limited particularly since even if you did have SSH enabled the exploit would require valid authentication first.
http://support.apple.com/kb/HT4169
Might be wise to turn all network-listening services off that you don't immediately need until a fix is available.
I would go further and suggest that now is an excellent time to ask which of those services you really need to have at all. The default of blocking incoming connections is right for most people, even developers.
On OS X, you could see every time a process is invoked like this:
sudo execsnoop -c bash
On Linux, that requires work which fortunately Brendan Gregg already did:
https://github.com/brendangregg/perf-tools/blob/master/execs...