Slashdot Log In
Mac OS X Struck By Severe Security Hole
Posted by
CmdrTaco
on Tue Feb 21, 2006 10:25 AM
from the bend-over-everyone dept.
from the bend-over-everyone dept.
An anonymous reader writes "Macworld is reporting about a new security hole in Mac OS X that can be exploited to compromise a system if the user simply visits a web site with Safari. Currently, no vendor patch is available. Secunia has a demonstration of the vulnerability and suggestions for temporary workarounds."
This discussion has been archived.
No new comments can be posted.
Mac OS X Struck By Severe Security Hole
|
Log In/Create an Account
| Top
| 559 comments
(Spill at 50!) | Index Only
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
|
2
(1)
|
2
I guess the H4x0rs (Score:5, Funny)
Re:Seriously (Score:5, Insightful)
(http://slashdot.org/)
I think your analogy doesn't really support your point and in fact supports the GP. Reformed bank robbers are not really security experts who can design new security systems, I think you your opinion is based more on movies than on reality. Similarly, hackers are romanticized, their skills exaggerated, in movies and in ill informed nerd mythology spread by sites like slashdot.
It really is that hackers outnumber developers and that developers have to be perfect all the time and one of the hackers just needs to get lucky once. Hackers are often more like specialized technicians that are skilled in a narrow range, not a skilled engineer that can design a system from scratch. And then there are the kiddies.
False analogy (Score:5, Insightful)
(http://www.xiphoris.com/)
Your car analogy would be good if we were talking about computer code -- it takes a lot more skill to write some good code than to mess it up (in textual form). But that's not what we're talking about here.
We're talking about circumvention of security, often known as "breaking" it; but that break (to circumvent protection) is a very conceptually different break than your car example (to render nonfunctional).
Finding exploits like this takes time, intelligence, and often understanding of the software in question. Especially in a well-crafted system, you have to know how the system works in order to circumvent it.
Re:Seriously (Score:4, Insightful)
There are some genuinely skilled crackers out there, but they're fairly few and far between. I maintain a bunch of computers, and most of them deal with a cracking attempt a day. Let me give you a quick log extract:
Feb 21 03:22:56 <hostname> sshd[25243]: Invalid user firebird from <IP removed>
Feb 21 03:22:57 <hostname> sshd[25245]: Invalid user art from <IP removed>
Feb 21 03:22:59 <hostname> sshd[25247]: Invalid user manu from <IP removed>
Feb 21 03:23:00 <hostname> sshd[25249]: Invalid user peru from <IP removed>
Feb 21 03:23:02 <hostname> sshd[25251]: Invalid user contra from <IP removed>
Feb 21 03:23:03 <hostname> sshd[25253]: Invalid user fbi from <IP removed>
Feb 21 03:23:05 <hostname> sshd[25255]: Invalid user melanie from <IP removed>
That's just someone trying random username/password combinations and hoping. Eventually, they'll find somewhere with looser security, and get in, but that doesn't make them skilled, it makes them annoyingly persistant.
Don't get me wrong, this OS X exploit is actually fairly interesting, but most crackers have just enough knowledge to be dangerous, and not enough to use it wisely.
If you want impressive, have you considered the people securing these things? They don't have to find just one security hole, they have to find them all. They have to know every way someone might try breaking the system, and then some...
Also works in Mail.app (Score:5, Informative)
(http://das.doit.wisc.edu/)
You can test this by downloading this harmless exmaple:
http://www.heise.de/security/dienste/browsercheck
...and sending the resulting JPG to yourself in Mail.app.
This is rooted in something that has been true about Mac OS in general for over 22 years, which is that any file or document - including executables - can have any icon. Other elements of the OS (such as the Get Info window) properly identify it as a Terminal document (shell script), and show that it is opened with Terminal, but most users won't see or understand this.
I'd expect a security update that addresses this *very* soon. This is a bad one.
Re:Security fix out allready! (Score:5, Insightful)
Granted, if I try to change firewall settings or affect anything outside of your account's permissions you will be prompted for a password. But I could still delete or corrupt all your files, change your bookmarks, send email to your friends and family with an exploit and try to IM your buddies with it - I just have to choose a well-crafted malware.
I'd say this is a potentially evil hole. I just had my wife and kids change their default settings (I'd always had mine disabled - never thought to change my family's). I think, though that this one will also be quickly and simply patched. And really, the more "benign" wake-up calls Mac users get the better protected they will be and the more difficult it will be for any malware to gain traction.
Re:Security fix out allready! (Score:5, Insightful)
(http://das.doit.wisc.edu/)
Since we've gone through the whole "download safe files" business a year ago, and Apple provided a prompt fix, and, additionally, since this is just Safari's executable-recognition code missing this because the shell script is malformed (i.e., missing the shebang), I expect a fix soon.
I was speaking to the social engineering aspect of this, since the automated aspect of this is so easy to mitigate, has already been addressed in one form a year ago, and I'm assuming will be quickly patched, leaving only the social engineering aspect to deal with. Which, once again, is no more or less serious than any social engineering exploit on any other platform.
Also, in case you hadn't noticed, getting a user to visit a web site is still a social engineering principle. Whether it's double clicking a file or tricking a user to view a web site, it's still "social engineering". What makes this unique is that Safari, in its default state, could potentially download a file and execute a shell script without user interaction. That's a Bad Thing. But since we've already dealt with this a year ago and missing malformed shell scripts was apparently an oversight, I expect this to be fixed soon.
Once fixed (or, in the interim, a single box unchecked) every other aspect of this just becomes tricking the user to click something.
And as we all know, that can happen on any platform.
In other words, this isn't a flaw that is endemic or inherent to any fundamental functionality; by all rights this whole issue was intended to be "fixed" a year ago, but it appears Apple missed malformed shell scripts marked as executable. Oops. So, that will be fixed, and everything else left is social engineering.
This isn't the first time a "view a webpage and something will download that can run without user interaction" exploit has happened on Mac OS X. But I'm sure the press will make a HUGE deal of this one, even though the previous two "viruses" discovered this week are *pure* social engineering, utterly useless, and the vulnerability that one used had even been patched since June 2005 and only affected Mac OS X 10.4.0.
I fully expect this to be the beginning of attacks on Mac OS X as "just as insecure as Windows" in earnest in the mainstream press, and also for people to completely misunderstand and believe it's related to the x86 transition. Yay.
Re:Security fix out allready! (Score:5, Insightful)
(http://www.hyperborea.org/journal/ | Last Journal: Tuesday September 11, @05:30PM)
I think the lesson to be learned is that there is no such thing as a "safe" file type. Zip files can be auto-executed, image files can be run through scripting interpreters, malformed images can create buffer overflows in parsers...
We've seen security updates on Windows, Mac and Linux for GIF, PNG, JPEG and TIFF libraries.
Shell scripts are nothing but executable text files.
The solution, I suspect, is to simply not auto-open *anything* that isn't handled by the downloading app itself. Process whatever transfer encoding, but if the file is a disk image, wait for the user to open it. If it's a StuffIt or Zip archive, wait for the user to open it. If it's a video clip, and it's not playing in the browser, wait for the user to open it.
Sure, it removes a little convenience, but in the long run Apple might be better off disabling and then removing this option entirely.
This IS a bad one (Score:5, Insightful)
(http://quaintrealist.com/ | Last Journal: Tuesday March 14 2006, @08:14PM)
(Usual disclaimer: I use a unix>windows mix at work, mac at home, and use primarily firefox on all three).
People need to learn techniques to lock down their boxes - different OS are not all equally vulnerable, but are all vulnerable.
Re:This IS a bad one (Score:5, Insightful)
Re:This IS a bad one (Score:5, Informative)
(http://kadin.sdf-us.org/ | Last Journal: Tuesday October 16, @01:46PM)
The problem occurs when you have a shell script without the shebang line, and it's given Type/Creator codes so that it will open in Terminal.app (which will happily execute shell script without a shebang line, in the user's default shell). The name is unimportant; the only purpose it would serve is to make the user more likely to click on it on the web page. Which, as other people have pointed out, isn't really necessary since the file could be set to download automatically by the page. Clicking a link ON the page isn't necessarily required.
Re:Also works in Mail.app (Score:5, Informative)
(http://dosomefink.com/)
I then unzipped the file and had a look at it in the Column view of the Finder, at this stage a normal jpeg would have been previewed, but the Finder had the file listed as "Terminal Application", but I think that most Mac users tend to use List or Icon view though, which would force them to open the file, activating it.
I then emailed myself the file with Mail.app 1.3.11 (In 10.3.9) and after the receiving the email I was warned that "Heise.jpg is an Application and could contain viruses, etc". after I attempted to save the attachment - It also did not preview in the mail message (Obviously)
Seems that this type of vulnerability is most likely to affect mid-level users who are somewhat reckless with their clicking and think they know better than new users who read and "cancel" every message box for fear of breaking their computers or advanced users who realize at a glance that the
Re:Good news (Score:4, Funny)
(http://obsessivemathsfreak.org/ | Last Journal: Friday June 09 2006, @08:15PM)
"Pshaw! OS X will seamlessly update my applications wirelessly while I brew and sip my moca-latte, all with real time AJAX and SOAP requests over https with COCA SVG Widget bindings.
Mac users do not suffer from the contagions of the common masses."
Workaround: Camino (Score:5, Informative)
Get Camino here [caminobrowser.org]. Camino is an OS X native browser using the gecko rendering engine. Looks better than Safari, is faster than Safari, and apparently is more secure than Safari. Plus the security is more easily tunable.
Most Mac users have heard of it by now, but I'm just giving them another plug because it kicks ass.
Re:Workaround: Camino (Score:5, Informative)
I don't know what the evidence for this claim is, but my (warm app, cold cache) tests on a few sites showed Camino to range from similar to slower than Safari.
and apparently is more secure than Safari.
Read the Secunia article [secunia.com] - this isn't a Safari security hole, it's an underlying platform issue and can be exploited in other ways.
Besides, the Mozilla family browsers have had their share of security holes.
Re:how bad is it really? (Score:5, Informative)
Transcript of recent telephone phone conversation (Score:4, Funny)
*RING*
Jobs: Hello?
Gates: BWAHAHAHAHA! PWNED!!!!
Jobs: Goddamnit, Bill, I told you to stop calling!
Just disable auto-opening files... (Score:5, Informative)
(http://akatsuki.ca/)
So just live without automatic file opening for the time being, and you're safe.
Re:Just disable auto-opening files... (Score:4, Informative)
According to Ars Technica [arstechnica.com]:
Protect yourself in one click (Score:5, Informative)
(http://127.0.0.1/)
Re:Protect yourself in one click (Score:5, Interesting)
(http://www.spamgourmet.com/)
I did this years ago.
Can someone remind me what is the point of a browser allowing "driveby downloads" and automatically launching the content of the download?
Safari has a nice download manager that lists the most recent downloads, and by simply double clicking on the one you trust and want to view is up to you.
This is at least over a 1 year old issue: http://www.net-security.org/vuln.php?id=3461 [net-security.org]
Is it too much to ask for normal users to double click on a file to launch it? This is what we used to do, and still do with email, ftp, removable media, networked drives, everything. What is the point of a driveby download and launch?
Seems to work with any browser (Score:5, Informative)
The only difference is that the default behavior in Safari is to automatically open downloaded files of certain trusted types.
Who wouldn't try clicking on a movie icon? I would think that most people would.
Re:Only affected at user level? (Score:4, Insightful)
OS X 10.4.5 (Score:3, Interesting)
I'm running 10.4.5 with Safari 2.0.3. Looks like not everyone is vulnerable.
Re:OS X 10.4.5 (Score:5, Funny)
Mac users: welcome to 2001 (Score:5, Funny)
This is just like a .jpg.exe (Score:5, Interesting)
(http://t3.dotgnu.info/ | Last Journal: Monday September 26 2005, @06:32AM)
So the guys in apple who had the __MACOSX part to zip files didn't communicate that to the Safari folks. Communication gaps happen, but this is gross oversight in a company which claims to sell their software for a premium because it is cool (and well-tested UNIX background).
Shell vulnerabilities seem to be the entry point usually, seeing the firefox shell:// that was recently discovered... Integration comes with its own sweet price.
System should be safe (Score:5, Informative)
(http://port80ware.com/)
Someone correct me if I'm wrong, but this exploit can only affect items that the user has rights to. If a script were written to make changes to the system, OSX should prompt you for your password, right?
Re:System should be safe (Score:5, Insightful)
(http://egypt.urnash.com/)
Like ~/Documents/ where you're encouraged to store pretty much everything you make with your machine.
Or ~/Pictures/ where iPhoto keeps everything it loads up.
Or ~/Music/ where iTunes puts all your music.
Or wherever the hell iMovie keeps what you build with it - probably either ~/Movies/ or ~/Documents/
Or wherever the hell GarageBand keeps its work.
Sure, the machine still boots. But if a script does rm -rf ~*.* you're kinda fucked. Why is it that Slashdotters always say 'oh, this exploit just affects userland, no big deal'?
Interesting (Score:5, Funny)
(http://www.joystick101.org/)
Two Words: (Score:5, Insightful)
(http://edified.org/ | Last Journal: Wednesday May 14 2003, @02:00PM)
Tried on Windows (Score:4, Funny)
At least there's one way.. (Score:3, Funny)
(http://www.tuneforge.com/)
Yep, this is a genuinely bad bug (Score:5, Informative)
(http://francis.uy.googlepages.com/ | Last Journal: Wednesday August 29, @09:40AM)
Explanation: Apple recognizes a particular folder within a zip archive as resource forks. This way you can correctly upload/download old-style apps and/or OSX metadata. The latter feature is where the problem occurs.
If you take a shell script, rename it to a "safe" file extension (such as mov, jpg, etc), then change its metadata (aka the "Open With..." setting) to Terminal.app instead of the expected default application, you now have a shell script that looks like an ordinary media file.
If you then use OSX built-in BOMarchive command, you have a zipped shell script that looks like a "safe" download.
End result: arbitrary shell script execution (under OSX default settings) upon visiting a malicious URL.
Conclusion: remote metadata should not be trusted. This bug would not occur if downloaded files could only belong to their default app.
Why isn't Secunia Being Flamed Here (Score:5, Interesting)
Re:Remote meta-data? (Score:4, Informative)
No, that is no problem at all. The problem is that two applications (Safari and Finder) used different code to decide whether this is a script or not. Safari thought it was a JPEG file. That would have been no problem at all if the Finder had agreed and had asked Photoshop to open that JPEG file. The problem was that the Finder looked at the same file with the same metadata and came to a different conclusion, believing that the same file was a shell script.
My credit card was "compromised" while using Safar (Score:5, Funny)
Most recently, a $300 charge appeared on my statement after visiting this page. [apple.com]
Earth to Apple: THERE ARE NO SAFE FILES! (Score:3, Interesting)
(http://www.scarydevil.com/~peter/ | Last Journal: Monday September 26 2005, @06:53PM)
"Open Safe Files After Downloading" is inherently risky. No files should be considered safe. The user should always make an explicit request to open any file not handled by the browser itself. Approving an action requested by a potential attacker is not making an explicit request: even if Safari detected the executable and popped up a dialog it would still not be good enough to prevent many people from reflexively approving it.
In addition, automatic execution or interpretation by a general purpose scripting language of any files in an archive, removable media, disk image, or any other potentially untrusted container is inherently risky. Executing code, using applications found in the volume as handlers, or otherwise using them, should be deferred until the user has explicitly requested the code be run, installed, or used.
This should be such a fundamental principle of secure software design that it shouldn't have even occurred to Apple not to follow it.
Just being less insecure than Microsoft is not enough. One might as well laud smallpox as being less deadly than Ebola.
(and... I told you so)
Inaccurate to say "just by visiting" a web site (Score:3, Insightful)
The real problem isn't Safari or Mail.app, it's LaunchServices which needs to smarten up Real Soon Now.
Here's some information. (Score:5, Insightful)
(http://www.scarydevil.com/~peter/ | Last Journal: Monday September 26 2005, @06:53PM)
It's possible for a website to initiate a download.
and have the automatic "safe file open" option turned on
Which is on by default, therefore it can be used to propogate worms.
Files that don't match their extension should be handled.
WRONG! There's three things that MUST be fixed.
Open safe files after downloading SHOULD NOT BE ON BY DEFAULT EVEN IF IT IS AN OPTION.
Zip files and other containers SHOULD NOT BE TREATED AS SAFE FILES EVEN IF IT IS ON.
Unpackers MUST NOT AUTOMATICALLY OPEN ANY FILES IN THE CONTENTS OF A PACKAGE.
Both Apple's unzipper (attacked in this case) and stuffit expander violate this last in different ways.
This is good news (Score:5, Insightful)
Re:Totally OT Question (Score:3, Informative)
There's also Camino if you want something that looks native. It's gecko based, but doesn't have the extendibility.
Re:Odd... (Score:3, Insightful)
(http://tsfraser.googlepages.com/index.html)
He who humbles themselves shall be exhulted he who exhults them selves shal be humbled.
This is true in tech as well.
If you feel that your computer is involnerable to hacks you will get hack eventually. This is true for Linux, Solaris, even OpenBSD users. The more secure you say it is the more people will want to find a way to break in. This is espectially true for OS X users because they like to glote on how secure their OS is. But there are a lot of people still feel bitter with the IBM vs. Apple wares (even though the PC won a while ago) and still hate apple with a pation so they will find ways to break in. Never gloat on how secure your system is because it will only end in tears.
But if you figure your system isn't truely safe and take steps to keep it as safe as possible and not make a big toute of how safe it is, then you may have a chanse of keeping it safe.
Re:Odd... (Score:5, Funny)
Re:Safe default settings (Score:5, Interesting)
Re:Totally OT Question (Score:3, Informative)
Re:Odd... (Score:3, Funny)
(http://www.berkshirephotonics.com/)