ShellShock bug in OSX and 'nix

Joined
Dec 8, 2009
Messages
453
Reaction score
10
Points
18
Location
The same as Sheldon Cooper - East Texas
Your Mac's Specs
iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA
A real bug was described today that will affect OSX and any 'nix's. There are no known exploits in the wild yet, but it is fairly serious. I can play with it on Debian and it is easy to use, although I don't really see a way for someone to trigger it over the net. However, my statement of "I don't see how..." puts no limits on a determined hacker.

OSX has it also, including 10.9.5 just installed today. I haven't played with it on my Mac because I don't want to possibly wreak my production machine. On Linux, you can disable Bash and replace it with the C shell for a temporary solution, but I have a feeling that OSX will croak if you try that.


To see if you have it (and you do, as of 9/24/14) run the following at the command line...

env x='() { :;}; echo I got it' bash -c "echo do I have the bug"

If you get back "I got it" then the answer is yes


A good return, when Apple patches it, should look like this...

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'

Bash is used by much stuff and Apple needs to put out a patch chop-chop.
 
Joined
Jun 13, 2012
Messages
531
Reaction score
23
Points
18
Location
Las Vegas... as of 23 Feb 2018
Your Mac's Specs
27" iMac mid-2011, ipad.Air 2', iPhone 8+.
Sheldon,
What is Apple doing about this? 10.9.6?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Unix is an operating system on which many others are built, such as Linux and Mac OS.
As much as I like the BBC, they lost all credibility when they suggested that Linux was built on Unix.

Word on the street, and perhaps reasonably so, suggest that the major target and likely source of most trouble, will be web servers. Desktop users might be hit but it would appear that most issues will be attacks on servers which could very well affect you by trickling down.
 
Joined
May 19, 2013
Messages
125
Reaction score
0
Points
16
Your Mac's Specs
iMac 21.5",mid2011,2.5 GHz,12 GB mem,OSX 10.13.6; iPhone SE; MacBook Air,early2015,1.6 GHz,4GB
cptkrf, I ran the command and got back the answer "do I have the bug". Does this mean I am OK, or did I do something wrong?
Dan
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
If you're using OS X, you're susceptible to it now unless you've manually upgraded Bash (which, I'm guessing that you haven't).
 
Joined
May 19, 2013
Messages
125
Reaction score
0
Points
16
Your Mac's Specs
iMac 21.5",mid2011,2.5 GHz,12 GB mem,OSX 10.13.6; iPhone SE; MacBook Air,early2015,1.6 GHz,4GB
I just checked my version of bash;

GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11).

Should I update this?

Thanks
Dan
 
Joined
Apr 26, 2008
Messages
2,963
Reaction score
120
Points
63
Location
Belgium
Your Mac's Specs
iPad Pro 12.9 latest iOS
I am pretty sure that Apple will patch this as part of Yosemite !

Cheers ... McBie
 
Joined
Feb 25, 2009
Messages
2,112
Reaction score
71
Points
48
Your Mac's Specs
Late 2013 rMBP, i7, 750m gpu, OSX versions 10.9.3, 10.10
I am pretty sure that Apple will patch this as part of Yosemite !

Cheers ... McBie

I hope they add it in as it's not patched in the latest DP.
 
OP
cptkrf
Joined
Dec 8, 2009
Messages
453
Reaction score
10
Points
18
Location
The same as Sheldon Cooper - East Texas
Your Mac's Specs
iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA
cptkrf, I ran the command and got back the answer "do I have the bug". Does this mean I am OK, or did I do something wrong?
Dan

You got it. But that is a given as of today. This bug has been around unnoticed for a long time and was just found, so all versions of OSX, Unix and Linux will have it if they are using standard Bash.

You would get something like the following if you were immune or it was fixed.

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
 
Joined
May 19, 2013
Messages
125
Reaction score
0
Points
16
Your Mac's Specs
iMac 21.5",mid2011,2.5 GHz,12 GB mem,OSX 10.13.6; iPhone SE; MacBook Air,early2015,1.6 GHz,4GB
So what do I do?, just wait for Apple to put out an update that fixes this?
Thanks
Dan
 
Joined
Nov 28, 2007
Messages
25,564
Reaction score
486
Points
83
Location
Blue Mountains NSW Australia
Your Mac's Specs
Silver M1 iMac 512/16/8/8 macOS 11.6
Just calm down and ignore. The next update will take care of things.
 
Joined
May 19, 2013
Messages
125
Reaction score
0
Points
16
Your Mac's Specs
iMac 21.5",mid2011,2.5 GHz,12 GB mem,OSX 10.13.6; iPhone SE; MacBook Air,early2015,1.6 GHz,4GB
Thanks Harry, I am calm, just don't know too much about the inside workings of computers, something anyone who has read any of my recent posts is already aware of.:Confused::)
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
I just updated bash with homebrew. It is GNU bash, version 4.3.25(1)-release (x86_64-apple-darwin13.4.0)
If you don't have it, it should look like this:

Terminal — bash — 200×46 2014-09-25 18-05-48.png
 
OP
cptkrf
Joined
Dec 8, 2009
Messages
453
Reaction score
10
Points
18
Location
The same as Sheldon Cooper - East Texas
Your Mac's Specs
iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA
As Vansmith has said, any problems will probably be at the server level. This is not a virus, nor is it malware - it is just some bad coding that hasn’t been noticed since it was written. Unfortunately the problem is in a fundamental part of the ‘Nix OS’s.

To hit the OSX community en masse would still require a drive-by virus to use the flaw (none known to exist) or convince a bunch of Mac users to enter their root password for this wonderful screensaver package with photos of the scantily clad starlets. i.e. It is a flaw that could be used by a virus or malware ONCE PLANTED ON YOUR SYSTEM, but it does not help in the problem of getting it inside your Mac to be executed.

Now, if a hacker picks a particular machine - no doubt a web or db server - and pounds on it to find some dumb password with authority, then that IT department has major problems. But for the rest of us, we just need to wait for Apple to fix the hole. I suspect that the pizza boxes are stacking up even as we speak outside the door of the Apple lab. (And a lot of other places - Debian, Redhat, BSD and so on.)

For now, remember the cover on the HHGTTG. "Don't Panic!"
 
OP
cptkrf
Joined
Dec 8, 2009
Messages
453
Reaction score
10
Points
18
Location
The same as Sheldon Cooper - East Texas
Your Mac's Specs
iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA
I just updated bash with homebrew. It is GNU bash, version 4.3.25(1)-release (x86_64-apple-darwin13.4.0)
If you don't have it, it should look like this:

Have you noticed any broken shell scripts? I ask because the OSX sh and Linux sh are slightly different.
 
Joined
Nov 28, 2007
Messages
25,564
Reaction score
486
Points
83
Location
Blue Mountains NSW Australia
Your Mac's Specs
Silver M1 iMac 512/16/8/8 macOS 11.6
chas m have you ever kept count of how many of these 'scares' have been about since the inception of OS X eleven or so years ago?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
chas m have you ever kept count of how many of these 'scares' have been about since the inception of OS X eleven or so years ago?
That may be so but the real issue is what I've been saying for years: Apple is oddly lethargic when it comes to security. As this Ars Technica article argues,
Chet Ramey, the maintainer of bash, said in a post to Twitter that he had notified Apple of the vulnerability several times before it was made public, "and sent a patch they can apply. Several messages."
Once again, Apple is approached by a researcher/developer highlighting an issue with software and they largely ignore it. Add that to the recent revelation that Apple was also told about a particular iCloud weakness months before it was exploited, only to ignore that as well, and we have another example of how something that may not be all the problematic ("shellshock") speaks to a much larger problem.

I'm starting to think that reporting security issues ends up in some weird black hole at Apple. I like the company and I like what they make but their willful ignorance sometimes baffles me.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top