Slashdot Mirror


Mac OS X Struck By Severe Security Hole

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."

92 of 559 comments (clear)

  1. I guess the H4x0rs by Anonymous Coward · · Score: 5, Funny

    .. finally learned how to "Think Different".

  2. Also works in Mail.app by daveschroeder · · Score: 5, Informative
    You can send this same shell script masquerading as a JPG file and shown as such by Mail.app, and it gets executed as soon as it is clicked/viewed in Mail.app (obviously not affected by Safari's "safe files" setting).

    You can test this by downloading this harmless exmaple:

    http://www.heise.de/security/dienste/browsercheck/ demos/safari/Heise.jpg.zip

    ...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.

    1. Re:Also works in Mail.app by joetheappleguy · · Score: 5, Informative

      Thanks for the test file. I downloaded with Safari, but have "Open Safe Files" turned off it did nothing after download.

      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 .jpg does not "feel" right.

    2. Re:Also works in Mail.app by Anonymous Coward · · Score: 2, Funny
      You can send this same shell script masquerading as a JPG file and shown as such by Mail.app, and it gets executed as soon as it is clicked/viewed in Mail.app

      So should we nickname it Outlook.app now?

      ... must ... stop ... .jpg.vbs ... flashbacks ...

    3. Re:Also works in Mail.app by AndyElf · · Score: 2, Insightful

      This is *exactly* the point I was waiting for. This has been brought up before -- just look at this Daring Fireball article. This dates back to 2004 -- it is a safe option to have default URL handlers turned off in a few cases. Having default action disabled downloads the file -- but double-clicking it in Finder, or even Ctrl-clicking and using "Open" submenu action does not cause any harm...

      --

      --AP
    4. Re:Also works in Mail.app by Arandir · · Score: 2, Funny

      People would take you more seriously if you didn't spit so much when you talk...

      --
      A Government Is a Body of People, Usually Notably Ungoverned
  3. Workaround: Camino by Ryan+Amos · · Score: 5, Informative

    I don't use Safari because it doesn't render pages as well as a mozilla based browser, and now I have a reason to gloat :)

    Get Camino here. 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.

    1. Re:Workaround: Camino by IronyChef · · Score: 5, Informative
      Camino is an OS X native browser using the gecko rendering engine. ... faster than Safari

      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 - 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.

  4. Transcript of recent telephone phone conversation by TripMaster+Monkey · · Score: 4, Funny


    *RING*

    Jobs:
    Hello?

    Gates: BWAHAHAHAHA! PWNED!!!!

    Jobs: Goddamnit, Bill, I told you to stop calling!

    --
    ____

    ~ |rip/\/\aster /\/\onkey

  5. Just disable auto-opening files... by Justin205 · · Score: 4, Informative

    The 'workaround' is to just disable auto-opening 'safe' files. I've done this on every Mac I've used, since I started using them, as I always saw it as a potential security risk (and a potential annoyance - I don't want my files opened immediatly sometimes). In my mind, automatically doing almost anything like opening downloaded files without asking is bad.

    So just live without automatic file opening for the time being, and you're safe.

    --
    "Your effort to remain what you are is what limits you."
    1. Re:Just disable auto-opening files... by Kesh · · Score: 3, Informative
      Safari gets the zip file, and sees it contains a JPG, which is "safe" because JPGs can't spread a virus. It decompresses the ZIp and opens the JPG... which is really a shell script. Normally, even that wouldn't be a problem. But, the script is malformed in just the right way that the OS doesn't catch it as dangerous.

      According to Ars Technica:

      ...if a Safari user has the "Open 'safe' files after downloading" option checked (which enables movies, images, music, text, PDF, and a few other automatic documents to be automatically opened upon completion of a download), a specially designed shell script can be executed. Normally, shell scripts will not be executed after Safari downloads them without user confirmation. However, if the script lacks a "shebang line" (e.g., #!/bin/csh) and the Finder is set to open scripts using Terminal, the Finder will pass the scripts to the Terminal application, where they will be executed.
  6. Re:Good news by ObsessiveMathsFreak · · Score: 3, Funny

    It's inevitable though that there will be a major OSX infection, so it's time for Mac users to get more conscious of this stuff.

    "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."

    --
    May the Maths Be with you!
  7. Protect yourself in one click by toupsie · · Score: 4, Informative

    Mac OS X users can protect themselves simply by removing the check mark from the "Open safe files after downloading" option in Safari's preferences under the General tab. I have tested this and it works. This is quite a nasty little exploit so I suggest making the change ASAP.

    --
    Strange women lying in ponds distributing swords is no basis for a system of government.
    1. Re:Protect yourself in one click by minus_273 · · Score: 2, Informative

      that only fixes the problem where it unzips automatically. It does not fix the icon issuse where there is a shell script with a Quicktime icon. The real fix to this would be to ID files based on the content and not the extension.

      --
      The war with islam is a war on the beast
      The war on terror is a war for peace
    2. Re:Protect yourself in one click by hackstraw · · Score: 5, Interesting

      This is quite a nasty little exploit so I suggest making the change ASAP.

      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

      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?

    3. Re:Protect yourself in one click by guitaristx · · Score: 2, Insightful
      This is hardly the point - apparently OS X (or some portion of it, at least) understands that the file is not a movie, but a shell script. It's not amongst the "safe files". It's either:
      • Safari's fault for attempting to execute an unsafe file (e.g. not querying the OS properly to really discover if the file is "safe" or not).
      • OS X's fault for executing files themselves instead of opening them in the appropriate application.
      IMNSHO, the expected behavior of Secunia's demo should be QuickTime complaining that it doesn't understand the format of the .mov file. Preventing Safari from automatically opening safe files is putting your finger in the dike. It's a breach that needs to be fixed.
      --
      I pity the foo that isn't metasyntactic
  8. Seems to work with any browser by name_already_taken · · Score: 4, Informative
    I just tried the test with Firefox, and it doesn't appear to matter which browser you use. If you open the file after it downloads, the calculator app appears.

    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.

    --
    Putting moderation advice in your .sig lowers your karma!
  9. OS X 10.4.5 by RugRat · · Score: 3, Interesting

    Went to the proof of concept, followed directions and it did not execute.

    I'm running 10.4.5 with Safari 2.0.3. Looks like not everyone is vulnerable.

    1. Re:OS X 10.4.5 by ObiWonKanblomi · · Score: 2, Funny

      How does something happily execute? Either it executes or doesn't execute. I swear, people wanting to through in their adverbs.

    2. Re:OS X 10.4.5 by krbvroc1 · · Score: 4, Funny

      As my long slender finger eagerly depressed the mouse button, I waited with anticipation for the tell tale glow that my computer was performing as I trusted it would. I could hear the sturdy heads of the hard disk chatter as my user data was happily sent to digital heaven. It was not until later that day when I again turned to my computer for comfort that I realize the significance of was had transpired earlier.

  10. Seriously by BoomerSooner · · Score: 2, Insightful

    How the heck do people figure this stuff out!! Man, if they'd devote this kind of effort to creating legitimate software, imagine the possiblities! The best programmers in the world in my opinion are code crackers... If I had their talent I'd be loaded!!! lol...

    Auf Wiedersehen!

    1. Re:Seriously by BewireNomali · · Score: 3, Insightful

      I don't know how accurate that is.

      For the most part, it always requires less skill to break something than to get something working. i.e. my ten year old nephew can destroy my car if I let him under the hood - it doesn't make him as talented as an automotive engineer. With some knowledge, he can do more sophisticated sabotage, but he still isn't as skilled as the average engineering undergrad.

      The analogy works in other places: in sports, defensive teams succeed way more often than high flying offensive teams - in other words, it's easier to thwart what the other team is doing than to focus on perfect and intricate execution. I guess that's why Peyton Manning doesn't have a super bowl ring.

      I grew up in a foster home - I ran away often, so finally, my foster mother resorted to locking me into a room to keep me from running. I scored an exacto knife and learned how to pick locks. To this day it remains one of my less marketable skills, but I in no way can design locks.

      --
      un burrito me trampeó.
    2. Re:Seriously by kannibal_klown · · Score: 3, Insightful
      my ten year old nephew can destroy my car if I let him under the hood - it doesn't make him as talented as an automotive engineer.


      I can see where you're coming from, but I think that's a poor analogy.

      You nephew is more like a beta tester that can find bugs easily, as he can do something wrong or unexpected and "break" an application. Finding ways around security is something else; sometimes it's just exploiting a bug but sometimes there's a lot more to it (research, investigating, and some coding).

      The I believe the poster's comments better relate wishing that hackers would act more like ex-criminals developing security systems. Ie, reformed bank robbers providing a service to make banks more secure; they obviously have the skills, they might as well use them for good.

      Sure a lot (if not most) hackers are just scrip kiddies with too much time on their hands, exploiting a bug with a simple function call. But others are quite skilled and do more than just "break things."
    3. Re:Seriously by AHumbleOpinion · · Score: 5, Insightful

      I believe the poster's comments better relate wishing that hackers would act more like ex-criminals developing security systems. Ie, reformed bank robbers providing a service to make banks more secure; they obviously have the skills, they might as well use them for good.

      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.

    4. Re:Seriously by Xugumad · · Score: 3, Insightful

      People figure this out by looking at corner cases, and prodding stuff to see if it breaks. Most exploits are fairly simple though; we're finally getting away from buffer overflows, but they're easy to find by looking at where programs deal with a string, and seeing what happens if you put a much too large string in. Time consuming, but straight forward.

      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...

    5. Re:Seriously by Columcille · · Score: 2, Interesting

      So where are all the 10 year old nephews who can go under the hood, break things, but do it in such a way that the car can still drive around and duplicate the problem in every car it passes? Now THAT would have me impressed.

      --
      I love my sig.
  11. Mac users: welcome to 2001 by Kohath · · Score: 4, Funny

    MS Windows users have had this for 5 years. Congrats to Apple for finally catching up to us.

  12. This is just like a .jpg.exe by Gopal.V · · Score: 4, Interesting
    The vulnerability is caused due to an error in the processing of file association meta data (stored in the "__MACOSX" folder) in ZIP archives. This can be exploited to trick users into executing a malicious shell script renamed to a safe file extension stored in a ZIP archive.
    Considering that Mac OSes have never believed in file extensions and have always read file meta-data to determine action, this ranks equal with a browser executing .jpg.exe files when you click on the seemingly innocent nude-zeta-jones.jpg.exe...
    disabling the "Open *safe* files after downloading" option in Safari

    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.

  13. Re:Totally OT Question by sqlrob · · Score: 2, Informative

    Better integration with the keychain and mail, as well as a native appearance. Me, I use Firefox.

    There's also Camino if you want something that looks native. It's gecko based, but doesn't have the extendibility.

  14. There is no totally safe software. by feranick · · Score: 2, Insightful

    I don't want to start a flaimbait. However here it is: There is no safe software. OSX is inherently safer than windows, but it's not 100% safe, by default (no software is). This is to say that I hope many mac user will finally get conscious about this: Mac OSX is not de facto immune by any exploit, flaw or whatever. Not because you are using OSX you should not be careful, and use the proper software.

  15. Re:Odd... by jellomizer · · Score: 2, Insightful

    As the bible says.
    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.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  16. Re:Only affected at user level? by BenjyD · · Score: 3, Insightful

    So the vulnerability 'only' allows a cracker to steal or delete the user's personal data. In other words, the most valuable files stored on the computer. Plus accessing things like web browser cache and history could give them passwords or at least information for a phishing attack.

  17. System should be safe by Fahrvergnuugen · · Score: 4, Informative

    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?

    --
    Kiteboarding Gear Mention slashdot and get 10% off!
    1. Re:System should be safe by Peganthyrus · · Score: 5, Insightful

      this exploit can only affect items that the user has rights to

      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'?

      --
      egypt urnash minimal art.
    2. Re:System should be safe by jfengel · · Score: 2, Insightful

      A program can still do plenty of damage even without root privileges. Your system per se may be safe, but your files aren't: they can be deleted or sent over the network. Or you could become a spam-bot, just like a Windows user: it doesn't require root privileges to open a port.

      It may not be able to make itself last through rebootings, but you're not supposed to have to reboot OS X very often.

    3. Re:System should be safe by Logic+Bomb · · Score: 2, Insightful

      You're a little big wrong. :-) The vast majority of Mac users work full-time in Administrator accounts. These are "below" the root account, so it's not as bad as in Windows XP, but it can still be an issue. Generally, items in /System cannot be modified without explicitly authenticating for root privileges. Items in /Library can be changed immediately by admins, and that's enough to cause all kinds of havoc. Not to mention that even a standard user can install items in their own ~/Library, which might be enough to do things like keystroke logging for that user's sessions.

    4. Re:System should be safe by bogie · · Score: 2, Insightful

      I think the point that some people make is that if someone ran rm -rf that you can just reboot and restore from backup and create a new user account and be none for the worse. Well except for the fact that your financial statements, medical information and other personal items just got uploaded to the Internet. Ooops.

      The history of that school of thought is that under real multi-user systems if one non-root account gets hosed everyone else can continue on with no ill effects.

      Anyway I'm beyond shocked that this setting is defaulted to on is OS X. That sounds like a majore screw up to me.

      --
      If you wanna get rich, you know that payback is a bitch
    5. Re:System should be safe by cortana · · Score: 2, Funny

      You have a user called *.* on your machine?

    6. Re:System should be safe by Karellen · · Score: 2, Insightful

      Why is it that Slashdotters always say 'oh, this exploit just affects userland, no big deal'

      Why is it that most people who trot out that line always assume that because a windows exploit can take down their OS, it isn't going to trash their home directory as well?

      Also, it's a hell of a lot easier to restore a single user's files if the rest of the OS is still intact.

      If your OS gets pwn3d, you can't trust it. At all. You know the r00tkit tech that Sony has recently been grilled about? It's called a r00tkit as if you have one it allows an attacker to keep r00t on your box without you knowing about it. So, if your OS dies, you need to wipe the lot and reinstall from scratch to be sure it's gone.

      If you've been lucky enough to have installed your OS on a separate partition from your personal files, and none of your personal files have been touched (despite your OS getting hosed), then a reformat and reinstall of all your apps might only take you, oh, 2-3 hours?

      If your OS is on the same partition as your personal stuff, you have to be careful about what you blow away, and things take longer.

      If your personal files get trashed as well as your OS, well, you've got the 2-3 hours to restore the OS and all those apps, as before. Then you have all your personal files to restore. Then you have everyone elses personal files to restore. And they didn't even do anything bad! How pissed are they going to be if you've lost some of their work?

      An exploit that just affects one user's personal files is a hell of a lot easier to recover than an exploit that affects everyone's personal files, and the OS you're accessing those files with.

      That's why slashdotters say that.

      --
      Why doesn't the gene pool have a life guard?
  18. Interesting by jayhawk88 · · Score: 4, Funny

    But I missed the part in the article where this can all be blamed on Microsoft, can someone please help me out?

  19. Security fix out allready! by tpgp · · Score: 2, Funny

    I'd expect a security update that addresses this *very* soon. This is a bad one.

    Security fix has been out for some time.

    Available here

    --
    My pics.
    1. Re:Security fix out allready! by NtroP · · Score: 4, Insightful
      And seriously, this isn't any bigger than any number of social engineering security vulnerabilities that take advantage of some flaw or shortcoming in any other OS...
      As much as I hate it, I'm going to have to disagree with you here. I can add an exploit to my web page that will tell your browser to automatically download a file when the page is viewed - the only user interaction necessary would be to visit my page. If you haven't configured you browser to NOT open "safe" files (the default is to go ahead and open them automatically) then my exploit is triggered - no user interaction, again. I have now infected your system.

      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.

      --
      "terrorism" and "pedophilia" are the root passwords to the Constitution
    2. Re:Security fix out allready! by daveschroeder · · Score: 4, Insightful

      From another response I just gave:

      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. :-(

    3. Re:Security fix out allready! by Kelson · · Score: 4, Insightful

      Since we've gone through the whole "download safe files" business...

      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.

    4. Re:Security fix out allready! by tpgp · · Score: 2, Informative
      And yes, I'm completely aware of how the vulnerability works, thanks.

      Um, not you're not - or you wouldn't have written in your original post:
      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.
      This vulnerability has nothing to do with icons.

      OK - I guess its true that you're aware now you've read other posters detailing how this works.

      Also, in case you hadn't noticed, getting a user to visit a web site is still a social engineering principle.

      Not if the website's been hacked.

      Once fixed (or, in the interim, a single box unchecked) every other aspect of this just becomes tricking the user to click something.

      The fix should have been to disable the "Open safe files after downloading" option by default a year ago - Apple's failure to do this is fairly typical of a large software company trying to balance security & ease of use.

      And as we all know, that can happen on any platform.

      I am not aware of any way you can execute something under Ubuntu without explicitly setting the execute bit.

      Please link to examples.
      --
      My pics.
    5. Re:Security fix out allready! by daveschroeder · · Score: 2, Insightful

      1) Your original post made it sound like a changed icon/social engineering trick. Adding a single word 'also' does not mitigate that.

      The vulnerability *I* was describing, i.e., the one that worked in Mail.app with this malformed-shell-script- masqerading-as-something-else, is a changed icon/social engineering trick. Albeit one that, in the example of Mail.app, one that a lot of people could possibly fall for, since Mail identifies it as a "JPEG Image", it has the correct icon, etc.; but by the time the user clicks it, it's too late. Which was exactly why I was bringing it up.

      2) You repeat that this is what you do for a living (post on slahdot?). Congratulations. Being a computer professional does not make you special on slashdot.

      1. I didn't say it made me special,

      2. I didn't say it made me special "on slashdot".

      3) Your closing argument (paraphrased): when the vulnerability is fixed, it will come down to social engineering. Ummmmmm OK - thats true I guess (shrugs). My point was Ubuntu (and all other linux distros I'm aware of) do not do the script auto-execution (of malformed, or otherwise) of which you speak. Prior to hearing of this, I thought neither did OS X

      "Ummmmmm", but that's exactly what I said. I said once the (Safari auto-download-and-execute) vulnerability is fixed, it will come down to social engineering.

      Also (now speaking of the Safari vulnerability), this isn't some kind of deep-rooted flaw in Mac OS X. This is specific to precisely two things:

      Safari passing things it interprets to be "safe" compressed files for handling after download, and LaunchServices subsequent execution. They ARE set as executable. This isn't some non-executable script getting executed erroneously. It IS executable. It just doesn't get seen by Safari as executable because it's missing the shebang. This is clearly a mistake.

      Now, I will agree that this functionality should probably be eliminated (the whole "safe files" business). But, Apple will probably try to hold onto the safe files functionality for various reasons, and therefore, all it needs to do is properly recognize this as executable. They were obviously making some assumptions before that can't be made with regard to when/how something may be executable. But make no mistake: this IS an executable file. Also, it's not that the "OS" has "auto script execution". It's a Safari problem. This was an unintentional oversight that should have been fixed when the rest of the safe files stuff was "fixed" a year ago. Yes, Safari is seen by many as part of the OS, but Safari is just an application. A Linux application trusted by the user and the system could just as easily have a similar type shortcoming (NO, not identical - I said "similar"). This is NOT the intended behavior of Safari. Which is why it will be fixed.

      Whether or not Apple should do away with the idea of thinking there "are safe files" altogether (which I agree with) is a matter of a different discussion.

    6. Re:Security fix out allready! by skinfitz · · Score: 2, Interesting

      ...but it could well be related to the transition, or more precisely, the fact that a haxx0r can now install OSX on a space partition on a PC and start coding with it rather than having to buy a Mac just for the privilege. In fact I'd put money on this is exactly why we are suddenly seeing a lot of attention with OSX security as OSX now has a completely new audience that can obtain the OS and start coding with it for free.

  20. Tried on Windows by feranick · · Score: 4, Funny

    I am envious, the exploit doesn't work on my windows box. If I try to run the proof of concept file, it says it's not a movie file. Damn it!

  21. At least there's one way.. by bennomatic · · Score: 2, Funny
    ...in which Microsoft is taking the lead and Apple is copying them.

    --
    The CB App. What's your 20?
  22. Yep, this is a genuinely bad bug by frankie · · Score: 4, Informative

    Quick point of order: the bug doesn't execute automatically if you turned off the "Open Safe Downloads" preference. However, it's still really Really REALLY bad.

    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.

  23. Re:Safe default settings by corvair2k1 · · Score: 4, Interesting

    I remember quite distinctly the horror I felt when I first got my mac and discovered that it automatically opened safe files... At least around 10.4.2 or so, this was default behavior. And this option has carried on with me to 10.4.5, but is disabled today.

  24. Re:Odd... by rylin · · Score: 4, Funny
  25. Why isn't Secunia Being Flamed Here by Compulawyer · · Score: 5, Interesting

    Why isn't Secunia being flamed here for releasing details of an exploit before Apple has had a chance to patch it? Are there not enough details for someone to create their own version? I may be wrong, but I did not notice one mention of any fact that indicates that Apple was notified of the problem and/or given an opportunity to fix the problem. I am used to seeing such information releases eing labeled as "irresponsible" but I have not seen any discussion of this aspect of the story yet.

    --

    Laws affecting technology will always be bad until enough techies become lawyers.

    1. Re:Why isn't Secunia Being Flamed Here by Schlaefer · · Score: 3, Informative

      Because this was reported by Heise via Michael Lehm via mac-tv.

  26. Re:Totally OT Question by corvair2k1 · · Score: 2, Informative

    It's just another choice you're free to make. I like Safari a lot more than Firefox, because it works the way you would expect a Mac app to work. I haven't tried Camino yet, though.

  27. This IS a bad one by QuaintRealist · · Score: 4, Insightful

    For everybody else who says "thank heavens I use Firefox" in these threads, please read parent post. This is a problem held over from when OS used metadata/extensions to figure out what to do with a file, automatically, before we had to worry about the bad guys trying to manipulate this data. These techniques date back to single-user systems, and they are vulnerable.

    (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.

    --
    Using plain ol' text since 1968
    1. Re:This IS a bad one by shotfeel · · Score: 5, Insightful

      Yes, its really a bug in LaunchServices, not the browser (any download method is vulnerable). It takes advantage of Apple's split-personality when dealing with files -is file type determined by extension or creator code? This is what can happen when they don't coincide.

    2. Re:This IS a bad one by Kadin2048 · · Score: 4, Informative

      FWIK, the JPG extension wasn't really necessary. I think that if you had a properly-formatted shell script, that starts with a shebang line, even if you give it a bad filename extension, Safari will still recognize it as "unsafe" and won't execute it.

      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.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    3. Re:This IS a bad one by hackstraw · · Score: 2, Informative

      Yes, its really a bug in LaunchServices

      No it is not a bug, its an implementation error.

      No application on a computer should run downloaded code without human intervention.

      Javascript is fairly benign. HTML is fairly benign.

      "Autorun" in any variety is going to hurt people, See: http://www.google.com/search?client=safari&rls=en& q=windows+autorun+vulnerability&ie=UTF-8&oe=UTF-8

      What about vbscripting? See: http://www.google.com/search?client=safari&rls=en& q=windows+vbscript+vulnerability&ie=UTF-8&oe=UTF-8

      What about jscript? See: http://www.google.com/search?client=safari&rls=en& q=windows+jscript+vulnerability&ie=UTF-8&oe=UTF-8

      What about driveby downloads? A new term coined to exactly describe this problem. See: http://www.google.com/search?client=safari&rls=en& q=driveby+downloads&ie=UTF-8&oe=UTF-8

      A wise man once said, "A smart man learns from his mistakes, a Wise man learns from other people's mistakes."

      There is no try. Do or do not. Do not like Microsoft does.

  28. Comment removed by account_deleted · · Score: 2, Funny

    Comment removed based on user account deletion

  29. Re:how bad is it really? by nkarman · · Score: 5, Informative

    No, it does NOT ask for an admin password, however you need to be logged in as a privledged user (administrator) for it to work. A standard user clicking the test link does not execute calculator, an admin user does. All the more reason to not do your everyday work in an administrative account. My test was Safari 2.0.3/OSX 10.4.5. Now if the code tried to do something more system wide through the terminal window it opened, it would probably require a su or sudo authentication. Opening a program or executing some simple code is enough to cause some problems though.

  30. Party-time at Symantec Corp by AndroidCat · · Score: 2, Funny

    "Norton AntiVirus for Machintosh sales are finally going to take off! Yessss!"

    --
    One line blog. I hear that they're called Twitters now.
  31. clamXav already handles this trojan! by sagefire.org · · Score: 2, Informative
    http://www.clamxav.com/

    The Opensource virus scanner ClamXav (based on ClamAV) already scans for this. I simply set it to watch my desktop and mail downloads folders. I even tested it by downloading the sample file and sure enough, it warns me both in Safari and in Mail.app

  32. I&T by SchrodingersRoot · · Score: 3, Insightful

    For the most part, it always requires less skill to break something than to get something working

    I agree, to a point.

    Haphazard destruction doesn't generally require skill. On the other hand, speaking as someone with Integration & Test experience, the deliberate breaking of something that is engineered to be resistant in that manner does require skill.

    Constructive destruction, I guess is what I'm referring to. Sticking RAM in an acid solution could conceivably cause BSODs, but that doesn't mean you've hacked Windows.

  33. My credit card was "compromised" while using Safar by bobdotorg · · Score: 5, Funny

    My credit card has been repeatedly comprimised while using Safari.

    Most recently, a $300 charge appeared on my statement after visiting this page.

    --
    __ Someday, but not this morning, I'll finally learn to use the preview button.
  34. Not bad unless you are a complete frigging idiot! by objekt · · Score: 2, Insightful

    I PURPOSELY set Safari Version 2.0.3 (417.8) under Mac OS X 10.4.5 to "open safe files" and I have admin privileges.

    It downloaded the file.

    To get it to unzip I had to double-click on it.
    To get it to execute I had to double click on it.

    According to This article

    Safari also unpacks ZIP archives, and displays the documents inside if they are "safe". In the event active content is found in the archive, user confirmation is requested.

    Typically shell scripts begin with a "shebang line" such as "#!/bin/bash" to indicate which interpreter will handle the script's execution. In case a shell script is stored into a ZIP archive without the shebang line, Safari stops recognizing the content as potentially dangerous and executes shell commands sans a confirmation prompt.

    If users assign the Finder to open scripts using the Terminal, Mac OS X loads scripts without shebang lines into the Terminal where they are executed by a shell.

    If a script is given an extension such as "mov" or "jpg" and stored in a ZIP archive, Mac OS X adds a binary metadata file to the archive which instructs the operating system on another Mac to open the script with the Terminal application, irrespective of the script file's extension or symbol displayed in the Finder. The Terminal redirects scripts without interpreter lines directly to bash, the standard shell in OS X.


    So you have to jump through hoops. Another BS story to set the Mac community into a panic.

    I did find it interesting that a file with a .mov extension could exectute a shell script. THAT should be a concern. NOT Safari, IMO.

    --
    -- Boycott Shell
  35. Earth to Apple: THERE ARE NO SAFE FILES! by argent · · Score: 2, Interesting

    None of the steps involved in causing this attack to happen should have been implemented in the first place. They're all well-known to be risky, and have all been used in exploits in the past.

    "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)

    1. Re:Earth to Apple: THERE ARE NO SAFE FILES! by Pray_4_Mojo · · Score: 2, Funny

      You guys should know the holy trinity by now:

      Easy
      Secure
      Windows

      Pick Any Two.

  36. It does require that you open the zip file, by name_already_taken · · Score: 2, Insightful
    It does require that you open the zip file and then run the movie file, but still, the problem is that the payload in the zip file looks so innocuous.

    I have not tried it in Safari with "open safe downloads" off, however I just tried it again in Firefox and if you have it set to automatically open zip files and then you open the movie file, the calculator does appear. (my system is up to date according to Software Update too.

    I think the real problem is that it's possible to disguise an attack as a quicktime movie file. The file "secunia.mov" appears to be a text file containing the following line:

    /Applications/Calculator.app/Contents/MacOS /Calculator; exit

    I guess my question would be why does it run when it's not actually a valid movie?

    --
    Putting moderation advice in your .sig lowers your karma!
  37. Inaccurate to say "just by visiting" a web site by snStarter · · Score: 2, Insightful

    The problem happens when you choose to download a file from a web site. Just VISITING the site won't do that. Several others here have observed that setting Safari to not open "Safe" files in the main preferences window will solve this in the short term.

    The real problem isn't Safari or Mail.app, it's LaunchServices which needs to smarten up Real Soon Now.

  38. Old Widget exploit by rahrens · · Score: 2, Insightful

    There was a big 'to do' about this very issue when Apple first came out with Widgets. It was discovered that the "open safe files..." checkbox was on by default, and any problems/exploits could be stopped by unchecking that box.

    So this is OLD news.

    What's more upsetting is that Apple hasn't made the unchecked state of that box the default...

    --
    "Money is truthful. If a man speaks of his honor, make him pay cash." Notebooks of Lazarus Long, Robert A. Heinlein
  39. I'm stunned.... by sgant · · Score: 2, Funny

    I went to a story about an OSX security hole and a Risk game broke out!

    That's the furthest away from the topic in the shortest amount of time I've ever seen. Bravo!

    --

    "Leo Fender was in a 'state of grace' when he designed the Stratocaster." -- Paul Reed Smith
  40. False analogy by xiphoris · · Score: 5, Insightful

    For the most part, it always requires less skill to break something than to get something working.

    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.

    1. Re:False analogy by ScriptedReplay · · Score: 2, Insightful

      Understanding a system doesn't put you on par with the designer. This is my point, and you don't refute it.

      Huh? understanding a system designed to be secure well enough to circumvent its security actually requires a better understanding than the designer's. You have not only to know the system, but to go further than the designer went in order to find a way in overlooked by an active attempt to eliminate vulnerabilities.

      Breaking into a system not designed to be secure, on the other hand ... well, flashback circa 2001 and all the Windows exploits written from vbs templates at the time.

  41. MOD PARENT UP! by Genady · · Score: 2, Informative

    I actually played around a little bit this morning trying to make my own 'evil zip file' It's not trivial, but it's something that someone with 1/2 a clue could whip up in an hour or so, or make a shell script that Kiddies could use to automate the creating of evil things.

    The parent here is spot on. This isn't a Safari or Mail problem. This is a problem in how the zip launcher handles embedded meta-data. It's ripe for 'Kornikovina.jpg' type exploitation.

    --


    What if it is just turtles all the way down?
  42. Here's some information. by argent · · Score: 4, Insightful

    /.'s comments that you can activate this problem by simply visiting a web site is absolute bunk

    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.

  43. Two Words: by ProfessionalCookie · · Score: 4, Insightful

    Filename extensions.

  44. The lesson should have been learned a year ago. by argent · · Score: 2, Informative

    The lesson to be learned is that Apple needs to be hit with a clue bat. Their system is not as inherently unsafe as Microsoft's (the problem is in the safari shell application, not the Webkit itself), but they're not continuing to apply the same good security practices that the operating system they inherited had been using.

    The solution, I suspect, is to simply not auto-open *anything* that isn't handled by the downloading app itself.

    Or by a plugin designed to work with the downloading app, that is intended to implement the same security guarantees.

    It would actually be reasonable to call external applications for *some* files, but only if they were able to register as applications that are intended to handle untrusted content.

    Unfortunately, Apple's LaunchServices doesn't qualify as such a registry.

    (not to mention that having ZIP files automatically unpacked is something I personally find EXTREMELY inconvenient and unpleasant, and if they implemented such a registry and if the unzipper WAS 100% secure I would still want to be able to remove it from the list of "safe" applications)

  45. This is good news by saltydogdesign · · Score: 4, Insightful

    I for one am happy that each security flaw that appears on the OSX platform gets this much attention. I hope it stays that way. Windows users may think they have a reason to gloat, but security flaws and new viruses there are so commonplace that no one even seems to care -- it's just another iteration of a larger problem. As long as we get this kind of uproar over easily-fixed flaws, OSX will always be a more secure platform.

    --
    // This is not a sig.
  46. Re:Remote meta-data? by gnasher719 · · Score: 3, Informative

    '' Goodness me, I'll admit I don't know that much about the workings of OS X but I'm shocked to hear that meta data stored in a file is trusted in this fashion. ''

    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.

  47. Re:This IS Bad.. by prockcore · · Score: 2, Insightful

    t would still only be able to affect stuff in your isolated home directory (Which you DO backup.. right?). The system itself would remain stable.

    You're assuming that a worm's only goal is to delete everything it can and you'll notice immediately. How about a worm that ftps all your private files to a server? Would you notice?

    How about the fact that the default user in OSX can modify everything in Applications. iTunes could be replaced with a script that did something malicious, then ran iTunes.. would you notice?

    Every worm ever released on windows could be "written off" just as you have done this one.

  48. Solution found! by objekt · · Score: 2, Insightful

    Change the name of the Terminal application. Call it "hdfjhTerminal" or some other random name.

    --
    -- Boycott Shell
  49. Re:Not bad unless you are a complete frigging idio by NtroP · · Score: 2, Informative
    I PURPOSELY set Safari Version 2.0.3 (417.8) under Mac OS X 10.4.5 to "open safe files" and I have admin privileges.

    It downloaded the file.

    To get it to unzip I had to double-click on it.
    To get it to execute I had to double click on it.

    I'm running Safari 2.0.3(417.8) with the "Open safe files after downloading" option checked on an Administrative account. When I click on the link it downloaded, unzipped and executed by itself.

    I then created a brand new test account with no admin priv's and tried it and it worked there also.

    This is on a fully patched OS X 10.4.5 system.

    Just FYI.

    --
    "terrorism" and "pedophilia" are the root passwords to the Constitution
  50. There are inherently safe practices... by argent · · Score: 2, Insightful

    There is no totally safe software, but there are practices that are inherently safe, and practices that are inherently unsafe.

    Passing an unsafe file (ALL files recieved from an unsafe source are unsafe) to an API designed to allow dangerous things (LaunchServices is how many applications run their own components, it has to be able to do dangerous things) is an inherently unsafe practice. It should never be followed.

    Maintaining a separate registry of applications that are designed to accept unsafe files (safe applications) and using that for unsafe files is an inherently safe practice.

    This was the norm for all applications that dealt with untrusted data. The rare case where it wasn't (the Internet Worm, the WANK virus, ...) were treated as bugs, and the unsafe practice was stopped. Until Microsoft integrated IE's HTML control with Windows Explorer (under the name Active Desktop) in 1997, and refused (even, ironically, under threat of being forcibly split up for unrelated reasons) to abandon the practice of using a common mechanism for handling local and internet content.

    Now, what Apple's done (and continues to do) is a smaller exposure than Windows's habit of waving its technicolor bum at virus writers, but it's still inherently unsafe and they need to turn around and fix it right.

    Of all the times for Apple to follow Microsoft's lead, why did they have to pick this one? Dear God, if you exist, please explain this...

  51. Re:Not bad unless you are a complete frigging idio by argent · · Score: 2, Insightful

    To get it to unzip I had to double-click on it.

    Then you have a nonstandard configuration (have you installed a different unzipper or otherwise changed the handling of zip files?), or you didn't actually have "Open Safe Files" turned on.

  52. But that doesn't require root access. by argent · · Score: 2, Insightful

    if people are able to get control of your machine they can turn it into a spambot, a DOS machine or other such device without your knowledge.

    But they don't need root to get control of your machine and turn it into a spambot...

    All they need is a place to hide an executable that you'll run every time you log in.

    Like, oh, dozens of places beneath ~/Library/

  53. Yes, bug by Arru · · Score: 2, Insightful

    It is a bug, there is not supposed to be any auto-run (as opposed to auto-open of non-executable media files). Now, in its attempt to auto-open say, this faux JPG file launch services opens the actual script in the terminal. This run in terminal function is necessary, i've used it myself numerous times for starting MySql and the like from a prewritten script.

    If there is an implementational problem it is that Safari can't/won't tap into the same type determination algorithm that launch services uses, to determine the safeness of a file type.

    While it would be naive not to freak out about this, it is equally naive to expect Joe User to carefully examine every file he downloads to see if it is really safe. Inherently safe files (non-executables) should always be passed swiftly along, and the warnings and blocks be saved for files that really pose a threat. Of course they have to be categorized correctly, and that's what failed here. Downloading a zipped JPG to view it is not a power user task, and must be considered safe. Joe won't know that JPGs are compressed and zipping them is redundant...highly suspect to the trained eye!

    --
    There's no 'on' position on the Slacker switch!
  54. Re:that tears it! by Psykechan · · Score: 2, Funny

    I'm going to delete Calculator.app on all of my Macs. That way I can go back to living with no malware whatsowhoever.

  55. Paranoid Android 1.3 by smeger · · Score: 2, Informative

    I've updated Paranoid Android to be aware of this class of exploit. You can download it here or grab the source code and compile it yourself.

    Note that Paranoid Android is an APE module. I like 'em, but it's something to be aware of.

    Basic directions: Run the installer, log out, log back in, launch System Preferences and choose the Application Enhancer prefpane. Choose Paranoid Android. Turn on "Watch non-default application launches". Unless you're really paranoid, turn off "Watch URI schemes", since that class of exploit was fixed awhile ago.

    Once you've done this, both the Safari exploit and the Mail.app exploit will trigger a dialog window telling you what's going on and giving you a chance to use the default application (Quicktime Player) instead of the custom one (Terminal).

    Once Apple puts out a fix for this, I recommend ditching Paranoid Android - it's a pretty heavy solution.

    More info on PA can be found here.

  56. Re:Apple, innovative? by steeviant · · Score: 2, Insightful

    and the parent has confirmed my prediction - Apple-bashing (or shall we call it smashing?) articles will be modded down by Apple zealots?

    How did you reach that conclussion*?

    Is everyone who mods down serial trolls these days an Apple zealot?

    *see GP

  57. Can be solved using POSIX extended attributes by geggo98 · · Score: 2, Interesting

    The problem is dug very deep in Mac OS X: One does not know if one can trust a certain file or not. A patch for the current security hole is easy, but won't solve the real problem.

    On Mac OS (9 and X) a file can have an arbitrary icon and type, independent from its name. Some systems use the filename to guess type and icon. On Mac OS this information is stored as separate data, in a so called ressource fork. So one could create a file "some_file.xls" that is a text-file and has the icon of photoshop. Or one could create a file "celebrity_naked.jpg" that is indeed a program and has the icon of the preview application --- or worse whose icon shows a naked person. Even when there is no security hole, the user might eventually try to open this file. With the current security hole this step can be skipped --- the browser will open it automatically.

    Mac OS X needs a way to mark a file as trustworthy. When a file is not marked this way, several dangerous operation will be disabled and the file must be marked in a certain way in the file browser (Finder, open dialogue, etc.). I think the Finder should have an extra check box in the file info dialogue: "This file is trustworthy". Terminal, Help Viewer and other easily exploitable application should refuse to open a non-trustworthy file. And this files should be viewed with a big red explanation mark on their icon --- at least when they can be opened with a dangerous application. So the user can easily see, that these files are a potential threat. Of course, per default only the system files are marked trustworthy.

    An easy way to implement such a "trustworthy" flag would be extended POSIX attributes. On Mac OS X 10.4 every file can have an arbitrary number of these attributes. I suggest the following scheme: A file is only trustworthy, when it has a certain attribute. The name of the attribute depends on the user, its value is a digital signature of the file; e.g. name="trustworthy:34833066-DC6A-459F-8462-7100E84A D100" value="Here comes the signature...". Additionally there are some virtual accounts for the machine and the administrator. When they trust the file, every user on the machine or the domain implicitly trust the file too. This scheme has several advantages:

    1. Several users on the same machine can decide for their own, whether they trust the file or not
    2. The attributes are preserved when the file is moved or hard-linked.
    3. A freshly downloaded file is never trustworthy
    4. A changed file is never trustworthy
    5. All other programs can simply ignore the extended atributes
  58. NOT terminal, NOT a bug. by argent · · Score: 2, Informative

    The real bug is in Terminal.app - it runs scripts even if they don't start with the shebang

    Terminal.app does no such thing. It simply passes on whatever you give it to /bin/sh, which it's supposed to do.

    It's not a bug in /bin/sh either. The POSIX standard specifies that if the shell fails to execute the script using exec(), if the execute bit is set it should run it itself.

    The "bug" is a pair of known design flaws in Safari that Apple should have fixed two years ago, along with a change in the unzipper that changed the behaviour Safari was mistakenly depending on.