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

559 comments

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

    .. finally learned how to "Think Different".

    1. Re:I guess the H4x0rs by clarkcox3 · · Score: 1

      There is nothing different about this vulnerability than the last few. This is no different than pasting the icon for an mpeg file on top of an executable script. This is simply the same vulnerability over and over again. The simple fix is to turn off the auto-open "feature" (which, IMHO shouldn't exist) of Safari, and to not go indiscriminately double clicking on things.

      --
      There are no tiger attacks in my area and it's all because this rock I'm holding keeps the tigers away.
    2. Re:I guess the H4x0rs by peterfa · · Score: 1

      "Think Differently" Fer Shakespear's sake!

  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 minus_273 · · Score: 1

      this is true. I was impressied by how simple this exploit is. Hopefully they notified apple BEFORE announcing it and we will see an update soon.

      --
      The war with islam is a war on the beast
      The war on terror is a war for peace
    2. Re:Also works in Mail.app by Provocateur · · Score: 1

      ...and sending the resulting JPG to yourself in Mail.app.

      You must think that us Mac owners are masochists.

      Well, maybe if we ditched all the eye-candy and ran RatPoison on the Mac desktop. Maybe.
       

      --
      WARNING: Smartphones have side effects--most of them undocumented.
    3. 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.

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

    5. Re:Also works in Mail.app by fermion · · Score: 1
      One of the recurring security problems in mail is rendering HTML and autoloading image files. Mail poses a particular security risk since the sender is likely to be unknown, where one at least usually chooses to navigate to a web page. As such a secure mail client would not render HTML or images unless told to do so by the user, either through a list of trusted parties or, perhpas more secure, manually.

      Now MS gave up security long ago when it not only encouraged users to create HTML mail, but set defaults to automatically render in the preview window. Apple followed suit, but at least did not default to a preview window. The purpose of this may have been two fold. First, many people like to send email in HTML format, even though it adds little to the content. Second, Apple likes to send it's ads in HTML with images, which means that if the defualt were to not load images of HTML, then customers would not be able to read ads. Again, a company decides to put in own interest ahead of the safety of the clients.

      So, that this is the first vunelability is well deserved. We all know very well that images and HTML is a prime vector of attack. We all know that autoloading HTML and images is dangerous. Yet Apple chooses to encourage this practice indiscriminately.

      I am not saying the HTML and images should not be used in email. All I am saying is that email should be by default executable free, users should be discouraged from including potentially executable content in emails, and clients should have whitelist of trusted sender to load images. That way if apple wants it's ads read, then they can. But hotpics@bigboobs.org is going to have a tougher time infected anyone.

      --
      "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
    6. 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
    7. Re:Also works in Mail.app by Anonymous Coward · · Score: 0

      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 is not a case where a custom movie icon is pasted on to a script file. It looks like the Finder itself is applying a movie icon to the file based on the extension (.mov) -- which is strange, because it also (correctly) identifies it as a "Terminal Document" in Get Info.
    8. Re:Also works in Mail.app by NarcoTraficante · · Score: 1

      Renaming Terminal to something like iTerminal.app will break the example scripts that take advantage of this security hole. The default viewer (quicktime or preview) will be launched instead and produce an error like "corrupt file"

    9. Re:Also works in Mail.app by Arandir · · Score: 1

      But the OS still knows that it is an executable. Otherwise I wouldn't be able to execute it. It is not the "icon" which is the problem, it is that Mail.app (apparently) lets you run an executable.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    10. Re:Also works in Mail.app by Anonymous Coward · · Score: 0

      This does not work on all versions of OS X. Credit Apple with making it possible with Tiger. It does work under Jaguar and we're going to see if it works under Panther.

      As for security fix, how about finally taking the beige box out of this flavour of Unix?

    11. Re:Also works in Mail.app by linuxmop · · Score: 1

      No, it's not an executable. If you will read the article, it's considered a data file for the Terminal application. This is because it does not contain the usual #!/bin/sh header, so the system does not recognize it as a shell script, but Terminal still passes it to bash, which interprets it.

    12. Re:Also works in Mail.app by Anonymous Coward · · Score: 0

      Don't count on it. Heise are sponsored by MICROSOFT.

    13. Re:Also works in Mail.app by balaam's+ass · · Score: 1

      This does not work for me. All I get is an error from the Preview application, saying "File Error. Couldn't open the file. It may be corrupt of a file format that Preview doesn't recognize." /OS 10.3.9

    14. Re:Also works in Mail.app by v1 · · Score: 1

      When I try that, with Mail for 10.3.9, I double click the attachment in the received message and mail says:

      The attachment "Heise.jpg" is an application. Since applications can contain viruses or be harmful to your computer, be sure this attachment is from a trustworthy sender before saving or opening it.

      Glad to see that this is indeed still secure.

      What I have NOT tested yet is crafting a html/mime based email with embedded graphics, to see if somehow smuggling in such a "jpg" into the graphics might cause it to execute somehow if the option in mail to render html emails is enabled. THAT would be a scarry exploit, and would likely lead to the first major OS X email virus.

      --
      I work for the Department of Redundancy Department.
    15. Re:Also works in Mail.app by Arandir · · Score: 1

      Why is it passing it to bash to execute if it doesn't think it's an executable?

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    16. Re:Also works in Mail.app by Lord+Flipper · · Score: 1
      Why is it passing it to bash to execute if it doesn't think it's an executable?

      You ask that, because the guy you responded to is all the way wrong. Unix, and Unix-like systems, read the head of the file, doesn't matter what the extension or 'human-readable" ascii says. The file is plain text, the executable 'bit' is set, therefor its a unix executable. Fuck the Finder and Get Info, they're carbonized relics of the single-user albatross that is ruining OS X, which SHOULD be NextStep sitting on BSD...i.e., no carbon, no resource forks, no sacrificing 30 year-old Unix security in the name of 10-yr old tried-and-failed MS/Apple 'ease-of-use'...no bullshit.

      We're in a multi-user World, and environment. Period. Apple needs to wake the fuck up, or those of us with history of "Macs at home", and whatever works, elsewhere, [plus something like a brain] will migrate to Linux. it's as simple as that.

    17. Re:Also works in Mail.app by Arker · · Score: 1

      I am not saying the HTML and images should not be used in email.

      Well I am. It's not a valid format for an email, email apps should absolutely refuse to send it or render it, and mail servers should send it to /dev/null immediately.

      Other than that, I agree with you.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    18. 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
    19. Re:Also works in Mail.app by Anonymous Coward · · Score: 0

      Unix, and Unix-like systems, read the head of the file, doesn't matter what the extension or 'human-readable" ascii says.

      Where in the Single UNIX Specification does it mandate this?

  3. Good news by bobalu · · Score: 1

    Glad I have that option turned off!

    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.

    Oh, and more $$$ for the anti-virus guys I guess.

    --
    The revolution will NOT be televised.
    1. 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!
    2. Re:Good news by Firehed · · Score: 1

      So, me? I won't complain. Honestly, 99% of not getting viruses is knowing how to avoid them, not running loads of overpriced subscription software (or even the often-better free stuff).

      --
      How are sites slashdotted when nobody reads TFAs?
  4. The malicious website in question? by breckinshire · · Score: 1, Funny

    ..... www.internetexplorer.com

    1. Re:The malicious website in question? by GmAz · · Score: 0, Troll

      HA HA HA...oh wait, that auctually isn't very funny at all, in fact, its rather repetitive and really used up. Try something new for once.

      --
      Click Click Bloody Click PANCAKES!
  5. 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 rsborg · · Score: 1
      Camino is an OS X native browser using the gecko rendering engine.

      Hate to reply with possible FUD, but I have honestly resisted using Camino due to the whole plug-in situation. Things like AdBlock/Filterset.G, NukeAnything, Tabbrowser Prferences, and FasterFox(!) really make FireFox much more usable/safe than any other browser out there (Opera was decent at v8.0, but I haven't really tried it since). How is the extension situation with Camino these days?

      --
      Make sure everyone's vote counts: Verified Voting
    2. Re:Workaround: Camino by liangzai · · Score: 1

      Maybe in limited cases, but if you do multilingual stuff Safari leaves the Gecko camp miles behind.

    3. Re:Workaround: Camino by mmkkbb · · Score: 1

      Camino has absorbed some of the features of those plugins. It can now block ads and flash and other things. Unfortunately, no Abe Vigoda tracker is available.

      --
      -mkb
    4. Re:Workaround: Camino by gEvil+(beta) · · Score: 1

      Check out the CamiTools plugin for Camino. It adds several of the features you mention. The only things I'd like to see it feature that it doeesn't are the FlashBlock menubar toggle (avail in FB1.5), and movable tabs. It also runs a lot faster that both Firefox and Safari, which is important if you're using a 4-year-old mac...

      --
      This guy's the limit!
    5. Re:Workaround: Camino by illtron · · Score: 1

      I know the Acid2 test doesn't tell the whole story, but Safari passes it. Opera 9 comes damn close. Mozilla browsers are a damn mess.

      --
      Slashdot: 24 hours behind every other site or your money back!
    6. Re:Workaround: Camino by illtron · · Score: 1

      Link to the test for those interested: Acid2

      --
      Slashdot: 24 hours behind every other site or your money back!
    7. Re:Workaround: Camino by StandardDeviant · · Score: 1

      The new 1.0 of camino includes a multilingual build. (My testing of it has been limited to a little russian and german, so ymmv.)

    8. Re:Workaround: Camino by shotfeel · · Score: 1

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

      Except if your mozilla based browser is set to automtically open (unzip) files like this, its vulnerable too.

    9. Re:Workaround: Camino by Ryan+Amos · · Score: 1

      Acid2 is great, but standards/tests are only worth something if anyone cares. IE6 and Firefox both fail miserably, but web developers tune their sites to IE6 and Firefox. I find Camino to be more real-world-compatible than Safari for a lot of sites that have been tweaked to support Firefox and IE. Safari's JavaScript support is also lackluster (periodically onClicks/onSubmits just never get passed; this breaks quite a few AJAX pages.)

      This is just from an end-user's perspective, but my mother (a 5th grade teacher who just discovered PowerPoint) perfers Camino as well, because stuff like her online banking and school district intranet browser doesn't work in Safari. Safari may be compatible with 99% of the pages out there but it's the last 1% of custom applications that probably won't be updated that kills it for me.

      The only downside of Camino that I see is the Firefox plugin situation, which really isn't that bad because they don't work with Safari anyway.

    10. Re:Workaround: Camino by liangzai · · Score: 1

      No, no, no, I am talking about the rendering of multilingual pages (see my homepage for an example). Although multilingual browsers are also something Mozilla never had and never will have.

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

    12. Re:Workaround: Camino by remmelt · · Score: 1

      I don't get it... I can see your homepage with FF1.5/winXP (shoot me, I'm at work), it has Swedish, Chinese (or so I suppose) and English on it. It works quite fine, because you set the language and the charset. It even works in IE 6!

      Is there something I'm not getting?
      Just interested because we make a lot of Chinese websites at the place I work.

    13. Re:Workaround: Camino by liangzai · · Score: 1

      Yeah, of course it "works" in every modern browser (even in IE6!), but there are some fine differences between Safari and the Gecko pack (including Camino) for Mac OS X. This can be seen clearly in the section covering Chinese slang, where some characters are shown in the wrong font; this is called the MacRoman bug on Mac OS X, and only happens with Carbon apps, not with Cocoa apps. In general, Carbon suxxorz and Cocoa rulez!

      For Windows, all fonts are evenly ugly, so it really doesn't matter there.

      Don't get me wrong, Firefox et al are very good browsers, but on the Mac it is better to use Safari.

    14. Re:Workaround: Camino by illtron · · Score: 1

      I'm firmly a fan of both browsers actually. I go back and forth between the two all the time, but when I'm building a new Web page, I build it using SubEthaEdit, which renders using WebKit, so that means I build for Safari and fix for Mozilla and IE. At work, I'm stuck on a PC, so it's all Firefox, all the time, but I honestly only use it at home when I need the Web Developer plugin. If Camino plugins were easy to make, I'm sure we'd see tons. Unfortunately, what makes it Mac-like (lack of XUL) makes it hard. Oh well. Maybe in time, we'll have something like Web Developer for Camino.

      --
      Slashdot: 24 hours behind every other site or your money back!
    15. Re:Workaround: Camino by sobachatina · · Score: 1
      I visited your website and it rendered fine in Firefox. Of course I can't read it but the characters rendered correctly.

      What kind of rendering do you think is missing?

      As for: "multilingual browsers are also something Mozilla never had and never will have."
      Who uses Mozilla anymore? However, as to mozilla descendents- Firefox can be downloaded in 42 languages.
      http://www.mozilla.com/firefox/all.html

      The safari update download I found supported 15 languages.
      http://www.apple.com/support/downloads/safariupdat e132.html

      I don't understand what advantage you see Safari has in this regard.

    16. Re:Workaround: Camino by liangzai · · Score: 1

      The font changes from the specified STFangsong to STHeiti as soon as the character is not in GB-2312, which is odd since this is a UTF-8 page. A long-standing bug that has been ignored.

      Also, I don't really want to download one browser for each language I want to use... I think a browser that has language resources is to be preferred over several stand-alone language versions.

      Most people are probably not bothered by this, but the original poster claimed that Camino (a Carbon Gecko browser) rendered better than Safari (a Cocoa browser), which is nothing but an uninformed statement.

    17. Re:Workaround: Camino by Queer+Boy · · Score: 1
      Most Mac users have heard of it by now, but I'm just giving them another plug because it kicks ass.

      Um, no, it doesn't kick ass. It's not faster than Safari, lots and lots of tests have been done with rendering speed and Opera is still the fastest last test I saw (last fall). It also doesn't support extensions which means I can't use adblock plus.

      Camino exists solely because the Mozilla user interface sucked. Firefox fixed that and I'm not sure why Camino is even still being supported.

      --
      Not since Marie-Antoinette played milkmaid has looking simple and honest been so fake and complicated.
    18. Re:Workaround: Camino by kitzilla · · Score: 1
      I agree that Camino is excellent. I've been using it for ages, even though Safari is my primary browser. I think Camino would be my default if it did inline spellchecking.

      I'd be interested to know if this Safari vulnerability also impacts other Webkit browsers, such as Shiira, Omniweb, and iCab.

      At this point, anyone who has "open safe files" enabled is just asking for trouble.

      --
      This is my post. There are many others like it. If you don't like what you read here, go try one of the others.
    19. Re:Workaround: Camino by Arandir · · Score: 1

      I find Camino to be more real-world-compatible than Safari

      In other words, it renders pages the way Microsoft wants them rendered.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    20. Re:Workaround: Camino by legirons · · Score: 1

      "I don't use Safari because it doesn't render pages as well as a mozilla based browser"

      More to the point, it can't block Flash, videos, animated images, and other such annoyances.

      I sometimes use "alternative browsers" such as Safari or Konqueror on the web, but after a few pages you always get the "this feels weird... I don't normally see flashing images" with anything non-Firefox.

    21. Re:Workaround: Camino by poopdeville · · Score: 1

      I just use Privoxy to transparently get rid of all that stuff before it hits the browser.

      --
      After all, I am strangely colored.
    22. Re:Workaround: Camino by RemovableBait · · Score: 1

      Mozilla browsers are a damn mess.

      Can't disagree with that.. but IE is so bad it's funny!

      Couple of screenshots:
      Acid2 in Mozilla Firefox 1.5.0.1
      Acid2 in Internet Explorer 6 SP2

    23. Re:Workaround: Camino by Anonymous Coward · · Score: 0

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

      Uh, you may like they way they look, but WebKit is more standards-compliant than Gecko. A simple Google search will tell you that.

    24. Re:Workaround: Camino by Anonymous Coward · · Score: 0

      because firefox on osx is not the speedy beast it is on other platforms, in fact a better description would be "that slow piece of shit browser", that and it looks like ass using its ass-backwards form boxes ,drop-downs and buttons instead of the native ones available.

    25. Re:Workaround: Camino by Anonymous Coward · · Score: 0

      yeah, filling in text config files in non-obvious paths in a cryptic syntax sure beats right-click, block, fill in the wildcard. whatever was i thinking... moron

    26. Re:Workaround: Camino by illtron · · Score: 1

      Yeah, I figured it wasn't even worth mentioning, since they decided somewhere along the way that they wanted to redefine the box model. After I posted yesterday, I checked IE just for shit and giggles, and it was worse than I remembered.

      --
      Slashdot: 24 hours behind every other site or your money back!
    27. Re:Workaround: Camino by pomo+monster · · Score: 1

      Try some of the plugins available at www.pimpmysafari.com.

    28. Re:Workaround: Camino by argent · · Score: 1

      Shiira doesn't have a preferences option for automatically opening downloaded files at all, and allows you to choose using Webkit or cURL for the download.

    29. Re:Workaround: Camino by kitzilla · · Score: 1
      Thanks. I should have looked for myself.

      Shiira sure is good. Hope more people discover it.

      --
      This is my post. There are many others like it. If you don't like what you read here, go try one of the others.
    30. Re:Workaround: Camino by ABoerma · · Score: 1

      I don't use Safari because it doesn't render pages as well as a mozilla based browser

      I respectfully disagree.

  6. how bad is it really? by tehwebguy · · Score: 1

    the last thing that came up about this icon-tricking required an administrative password, does this one?

    --
    -- lol pwned
    1. Re:how bad is it really? by minus_273 · · Score: 1

      no this is an exploit in the truest sense. However if you wanted to infect the machine, it still needs administrator password.

      --
      The war with islam is a war on the beast
      The war on terror is a war for peace
    2. Re:how bad is it really? by tehwebguy · · Score: 1

      i don't want to give most computer users too much credit (we all know they generally don't deserve it) but doesn't it seem like most mac users would think, "hmm, strange that i have to enter my password to view this picture.." ?

      lets just hope there are no reported cases of this actually pwning anyone lol

      --
      -- lol pwned
    3. 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.

    4. Re:how bad is it really? by despisethesun · · Score: 1

      One thing I've learned in tech support purgatory is that Mac users aren't any smarter than Windows users, they just have better taste.

      --
      This poo is cold.
    5. Re:how bad is it really? by Anonymous Coward · · Score: 0

      What the heck are you talking about? Of course it launches Calc.app as a non-privleged user...I just tested it! Why wouldn't it? It's not like it's trying to write to it or something...and don't forget that it could mess with the files of an unprivleged users, like by deleting them, or uploading them all to some server somewhere...

    6. Re:how bad is it really? by Kadin2048 · · Score: 1

      This is true, but the script could still "rm -rf ~" and hose your home directory without asking for an administrator password, provided you were the owner of it and everything in there. It wouldn't spread or zombiefy your system or anything, but it would still be rather nasty.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  7. 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

  8. 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 GmAz · · Score: 1

      [Cookie]?

      --
      Click Click Bloody Click PANCAKES!
    2. Re:Just disable auto-opening files... by jfengel · · Score: 1

      I don't get it. (I'm not a Mac user; I'm just trying to understand the world.)

      What's the "safe" file that's being executed: the ZIP archive, or is it it the JPG with executable content?

    3. Re:Just disable auto-opening files... by truthsearch · · Score: 1

      From the advisory:
      Do not open files in ZIP archives originating from untrusted sources.

      Duh.

    4. Re:Just disable auto-opening files... by shotfeel · · Score: 1

      If I'm interpreting correctly, the file has a jpg extension, so Safari assumes it is safe (non-executable) and unzips/opens it. From there it gets fuzzy, because apparently, based on the creator code (which is in the resource fork, which is why it needs to be zipped) it is an executable, so it gets executed. There's another factor in there somwhere because this usually isn't sufficient to cause it to launch. LaunchServices should recognize that particular app hasn't been run and throw up a warning dialog, but that's the part I don't get. Somehow, because its a shell script instead of an actual application, it gets through.

      Maybe someone else can do a better job of explaining (couldn't do much worse).

    5. Re:Just disable auto-opening files... by umbrellasd · · Score: 1

      Yeah, my computer automatically boots Windows every time I turn it on--pisses me off to no end. Huge vulnerability, too.

    6. 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.
    7. Re:Just disable auto-opening files... by noidentity · · Score: 1

      Same here. I don't care if my computer is a Mac; the computer is never fit to decide whether a file is safe to open (and possibly execute). This is a good example of why: the user now knows of this bug, but the computer doesn't, so it'll continue to open and run these executables, all the while claiming it was safe.

    8. Re:Just disable auto-opening files... by Lord+Flipper · · Score: 1
      LaunchServices should recognize that particular app hasn't been run and throw up a warning dialog, but that's the part I don't get.

      What??? LaunchServices only pops the "This is the first launch of the app 'so-and-so..." dialog the FIRST time the app in question is launched, not EVERY time. Maybe if a user never used Terminal at all [there are people like that in Apple-land, lots of 'em, and I don't associate with them :) ] then. sure, you'd get the dialog, but if the app has run previously, no dialog.

      The only way to reset that dialog, across the system, which is annoying as fuck, is to trash the System caches. [specifically the LaunchServices caches, of course]

  9. 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 Mistah+Blue · · Score: 1

      I already had mine unchecked. I don't remember if this is default behavior, or I specifically chose it. I do remember unchecking it because I didn't want anything starting up when I download something.

    2. 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
    3. 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?

    4. Re:Protect yourself in one click by amliebsch · · Score: 1

      I'm not clear how the file extension enters into it. I thought the problem was that OSX allows any file to have an arbitrary icon. So the file extension is correct, but the icon is misleading. I suppose this is less of a problem on Windows, because most files are not allowed to have arbitrary icons - the icon is assigned based on the file extension, so a *.vbs file can never have the icon of a *.jpg. Unless, of course, you have permission to change the global file association/icon assignment.

      --
      If you don't know where you are going, you will wind up somewhere else.
    5. Re:Protect yourself in one click by marklar1 · · Score: 1

      BS.

      That only "mitigates" the automaticity.

      The real protection is to not download from untrusted sources. If you download the file from withing ANY BROWSER then manually decompress it and click on the file it still executes the shell script...

      TAKE AWAY: CHANGING YOUR SAFARI PREFS / BEHAVIORS ALONE IS NOT ENOUGH!!!

      Further, NORTON AV 10 with all updates installed scanned my download folder and DID NOT FIND OR SEE THIS!

    6. Re:Protect yourself in one click by Peganthyrus · · Score: 1

      I just looked at the 'test' user I keep around for isolating problems - it's never launched Safari before. And the 'open safe files' box is checked.

      This test user was created under 10.4.2, .3, or .4 - I'm not sure.

      --
      egypt urnash minimal art.
    7. Re:Protect yourself in one click by dtsazza · · Score: 1
      Can someone remind me what is the point of a browser allowing "driveby downloads" and automatically launching the content of the download?
      Sadly, I believe that'd be "marketing reasons". Joe User is simply more impressed if he can click on a file and it does its stuff, be that a local or remote file, without him having to click on it again. I believe the term is "a seamless, more immersive experience", or somesuch junk.

      The question is, just what are they getting themselves neck-deep in?
      --
      My, that was a yummy potato!
    8. Re:Protect yourself in one click by yo_tuco · · Score: 1

      " I don't remember if this is default behavior..."

      Yes, it is. I have a PowerBook with 10.4.x but don't boot to OSX too often. So it is an out-of-the-box + any update configuration and I just looked and the box was checked.

    9. 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
    10. Re:Protect yourself in one click by plj · · Score: 1

      Can someone remind me what is the point of a browser allowing "driveby downloads" and automatically launching the content of the download?

      It's the same point as hiding file extensions in both Windows Explorer and Finder, and making users to be administrators by default in Windows.
      It is security that is sacrificed on the altar of convenience, blatant carelessness of those basic little things that have a big meaning in security.

      Squeezing out buffer overflows helps only so far.
      Excecution prevention helps only so far.
      Limited user accounts help only so far.
      Well-designed UIs help only so far.

      When all these (and perhaps few others) have at least been attempted to be done properly, it is possible that the whole system stays relatively safe, even if some part of the design is not actually that perfect.

      --
      “Wait for Hurd if you want something real” –Linus
    11. Re:Protect yourself in one click by KingArthur10 · · Score: 1

      Norton/Symantec Antivirus programs are not there to protect your mac, they're there to protect the Windows machines on your network, plain and simple. lol. Maybe this might spawn them to do a little work on the Mac side again.

      --
      I came, I saw, She conquered.
    12. Re:Protect yourself in one click by smoker2 · · Score: 1

      Mmmm, finger ... dike.....!

    13. Re:Protect yourself in one click by lee1 · · Score: 1

      Can someone remind me what is the point of a browser allowing "driveby downloads" and automatically launching the content of the download?

      The point for me is PDF. In science it is very common to enounter links to papers and other material in PDF form; I can click and there it is in Acrobat (Preview is not good enough). If the PDF has links, I can click on them and be back in Camino (Safari is not good enough). The browsing between HTML and PDF is thus pretty seemless, but only if you allow the PDFs to open without intervention.

    14. Re:Protect yourself in one click by Queer+Boy · · Score: 1
      The real fix to this would be to ID files based on the content and not the extension.

      Like Classic did. To this date the most elegant solution to the issue has been BeOS's use of MIME types.

      --
      Not since Marie-Antoinette played milkmaid has looking simple and honest been so fake and complicated.
    15. Re:Protect yourself in one click by gnasher719 · · Score: 1

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

      The problem is not the "Open safe files after downloading" option. The problem is that someone used the wrong definition of "safe file".

      Unsafe files are (for example): Executable files (that is files that the operating system will run as executable if you doubleclick), and shell scripts (files that the operating system will pass to the Terminal application for execution if you doubleclick). But Safari used a different definition: Executable files, and files that contain a pattern that is typical, but not required, for script files.

      If both places used the same code to determine that something is an executable or shell script, there would be no danger. Either Safari would have detected that this is a shell script and therefore dangerous, or the Finder would have _failed_ to detect that this is shell script, and therefore would have _failed_ to open it.

    16. Re:Protect yourself in one click by Anonymous Coward · · Score: 0

      Really? One click? Is that option present on the desktop or something?

    17. Re:Protect yourself in one click by Ilgaz · · Score: 1

      If you use multimedia (broadband) sites a lot, you don't want a "warning" when you click a realmedia,windowsmedia,quicktime link.

      That is the thing what people hate.

    18. Re:Protect yourself in one click by argent · · Score: 1

      If you use multimedia (broadband) sites a lot, you don't want a "warning" when you click a realmedia,windowsmedia,quicktime link.

      But these files are not opened in a helper app, they're opened in a plugin. Plugins are intended to be used with untrusted apps and thus don't need to be treated as potential exploits the way applications launched through LaunchServices must (but aren't).

    19. Re:Protect yourself in one click by xouumalperxe · · Score: 1

      Actually, you only MITIGATE the problem that way. Any zip files you DO download and come infected will still affect you if you open them (which means that if you're fooled into believing you're looking at legit content, you're screwed)

    20. Re:Protect yourself in one click by Ilgaz · · Score: 1

      Oh, I mean like "click here to watch" links, not "embedded". E.g. especially "live radios" use it. They don't use RTSP:// , they use HTTP:// sometimes.

    21. Re:Protect yourself in one click by argent · · Score: 1

      I mean like "click here to watch" links

      They are still opened by the plugin in a browser window.

  10. 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!
    1. Re:Seems to work with any browser by ErroneousBee · · Score: 1

      Being able to download and run stuff has always been a risk.

      It doesnt matter what OS you use (zOS, Linux, windows, Mac, etc), you run the risk of damaging those parts the user has access to if you run things downloaded from random websites.

      --
      **TODO** Steal someone elses sig.
    2. Re:Seems to work with any browser by suwain_2 · · Score: 1

      Who wouldn't try clicking on a movie icon?

      People who've been scarred and learned their lesson from clicking random links (like goatse) in the past? ;)

      --
      ________________________________________________
      suwain_2 :: quality slashdot p
    3. Re:Seems to work with any browser by arakon · · Score: 1

      Truely a horrifying experience.

      "what the hell is... OMG!"

      Very hard to explain to the wife who just walked into the room on why you are clawing your own eyes. Although as part of my sadistic glee to not be psychologically maimed alone I sent her the link to tubgirl. MWAHAHAHAHAAAA

      --
      "If I were bound by all laws everywhere I'm sure I would have committed a capital crime somewhere."
    4. Re:Seems to work with any browser by Khuffie · · Score: 1

      And then she filed for divorce the day after, right?

    5. Re:Seems to work with any browser by argent · · Score: 1

      There's three separate issues.

      1. Open Safe Files.
      2. Letting metadata in ZIP files explicitly specify handlers rather than file types.
      3. Automatically using a handler specified by metadata in zip files.

      All three are problems, all three must separately be fixed.

    6. Re:Seems to work with any browser by Anonymous Coward · · Score: 0

      If you download it and Finder shows the icon for a jpeg [and you don't check the details pane, but would you do this for every file? really, is your OS so untrustworthy that you need to double-check it? well ... apparently] then you don't expect it to be something other than a jpeg so, trusting it, double-click means you don'ty ask to run a file but to display an image. Should be safe, right? [famous last words for lots of pwned Windows users]

  11. Re:Transcript of recent telephone phone conversati by mkiwi · · Score: 1

    On 3-way iChat: Ballmer: Screw you both! I'm goint to F*ing kill Google!

  12. Only affected at user level? by psychogentoo · · Score: 1

    Correct me if I'm wrong, but doesn't this only affect the system at the user level? Unless the person is browsing the web as root.... I'm sure some clever person could do some damage with this exploit but to affect the system as a whole, you would still get a dialog box to make system changes.

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

    2. Re:Only affected at user level? by psychogentoo · · Score: 1

      lol still early in the morning, I wasn't thinking this through. :)

    3. Re:Only affected at user level? by baryon351 · · Score: 1

      Correct me if I'm wrong, but doesn't this only affect the system at the user level? Unless the person is browsing the web as root.... I'm sure some clever person could do some damage with this exploit but to affect the system as a whole, you would still get a dialog box to make system changes.

      You're right and wrong, depending on what you view as "part of the system". A default OSX user for macs out of the box and after an install of OSX is put into group "admin". Admin isn't root of course, however many parts beyond the user's home are modifyable by admin freely without getting the password verification popup. This is why the previous leap.a virus did not require a password to be entered to infect the files it infects in /Applications.

      Deeper parts of the OS are protected, but for a good example do "ls -l /Applications | grep admin | grep ^.rwxrwx" and see how many apps in group admin also have full rwx privs. Every one of those apps is wide open to modification by code running as a default OSX user. Then do "ls -l /Library | grep admin | grep ^.rwxrwx". Look at that, lots of /Library is open to writing by admin, freely and without the requirement of a password popup. If you wanted to add a little prefpane waiting for someone to innocently click on later, you could just dump it in there. Again, freely without requiring an admin password popup for default priv OSX users.

      Not ALL of the system, but much of it. Enough anyway.

  13. Safe default settings by StalkingElmo · · Score: 0

    From TFA:
    Users can mitigate the threat by disabling the "Open safe files after downloading" option in Safari.

    If I'm not mistaken, this option is already turned off by default in Safari, so this exploit would only affect those users who have deliberately turned it on. It still sucks, but at least the number of affected users is somewhat small.

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

    2. Re:Safe default settings by Anonymous Coward · · Score: 0

      "If I'm not mistaken, this option is already turned off by default in Safari"

      No, it's on by default.

    3. Re:Safe default settings by Phroggy · · Score: 1

      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.

      The only problem with this feature has to do with OSX's definition of "safe". A real JPEG photo that will open in Preview is "safe", because it cannot harm your system. An executable shell script with a .jpg extension at the end of the filename should not be considered "safe", but OSX thinks it is due to a bug.

      There's a good reason why the checkbox in Preferences doesn't say "automatically open all downloaded files."

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    4. Re:Safe default settings by corvair2k1 · · Score: 1

      I realize, I realize. After due thought and attention, this is why I left it enabled. However, I believe everyone is in agreement that this should be disabled (for now, at least. :)

  14. 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 CableModemSniper · · Score: 1

      Try unzipping the file and double clicking the movie. You probably have "Open safe files disabled". I'm running 10.4.5 and it works (if I can use that word in this case) for me.

      --
      Why not fork?
    2. Re:OS X 10.4.5 by corvair2k1 · · Score: 1

      I'm also running 10.4.5 with Safari 2.0.3, and it happily executed. You may have, as others have already mentioned, automatic execution of safe files unchecked.

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

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

    5. Re:OS X 10.4.5 by ev0l · · Score: 1

      Does not work for me either. Tries to open it in Quicktime. It also tries to open in Quicktime if I double click on the unzipped file.

      There was a Mac OS update that I installed yesterday so maybe this problem is already fixed.

      If the above demonstration "works" for you I would suggest you run software update and see if that does not fix the problem.

      Will.

    6. Re:OS X 10.4.5 by Anonymous Coward · · Score: 0

      -1 stupid

      read the entire text of the exploit. oh right, you're on a mac - it does the thinking for you. No wonder.

    7. Re:OS X 10.4.5 by RugRat · · Score: 1

      Sure enough. Looks like I've already disabled the "allow 'safe' files" after downloading. Thanks for helping me understand.

    8. Re:OS X 10.4.5 by hunterx11 · · Score: 1

      I have "open safe files" enabled and it didn't do anything. I even tried opening the file myself, and it didn't do anything, on 10.4.5.

      --
      English is easier said than done.
  15. This sounds familiar by fak3r · · Score: 1

    I remember when this came out for IE - you could have a link in a webpage that would launch Notepad or open the systems cdrom drive. As IE is with Windows, it sounds like Safari is to OS X; too close to the OS. Of course what can a cmd like this do to someone w/o admin access? We'll see, but the focus should be on *why* this happened in OS X? What was the idea to have Safari be able to run apps?

    We shouldn't be surprised at things like this popping up, OS X is getting more popular/press, so they've become the bigger target we knew they would once they went the MacTel route. Popularity has it's quirks ya know.

    1. Re:This sounds familiar by CableModemSniper · · Score: 1

      Safari doesn't run apps, it just has the ability to do an effective double click on files after they are downloaded. The problem is safari is checking to see if the file is "safe" by the extension, and the finder will use all availible metadata to determine a file's type. So safari opens what looks like a .mov and finder sees an executable.

      --
      Why not fork?
    2. Re:This sounds familiar by Anonymous Coward · · Score: 0

      "Of course what can a cmd like this do to someone w/o admin access?"

      Scan the users data for credit card information then send that information to the writer, mail itself to everyone in the users address book, participate in a DDOS, then delete all the users data.

      Web browsers BADLY need to be on a seperate, limited priviledge account by default, as does anything else that touches the internet.

    3. Re:This sounds familiar by neumayr · · Score: 1

      Local root exploits are a lot easier to find than remote ones - that's what makes this hole so severe. Besides, if your mission is collecting private data, rather than rooting yet another box, user level access is all you need.

      --
      Truth arises more readily from error than from confusion. -Francis Bacon
    4. Re:This sounds familiar by chrism238 · · Score: 1
      ....what can a cmd like this do to someone w/o admin access?

      Well, sounds like you don't value the files in, and below, your home directory too much.

      Exploits don't just have to wreck the operating system, which is "relatively" easy to correct by reinstalling from a distribution DVD. However, it's easy to posit that most Mac machines are single user machine, most of those users have lots of personal and business stuff in their home directories (because they know that working as root is bad), and that very little of that tens-of-gigabytes of stuff is backed up.

      Goodbye miLife.

    5. Re:This sounds familiar by Foerstner · · Score: 1

      Safari doesn't and can't run applications. It only decompresses archives. The proof-of-concept travels by ZIP archive, which Safari will automatically open.

      Problem being, the ZIP archive's payload can be a trojan, and decompressing it exposes that trojan to the user.

      --
      The US free market: two halves of a government-granted duopoly are free to set the market price.
  16. 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 blixel · · Score: 0, Offtopic

      The analogy works in other places: in sports, defensive teams succeed way more often than high flying offensive teams

      True. In RISK, the defender has the advantage as well. Even if the attacker rolls 2 sixes, the defender can still win by matching the roll. The attacker does have the option of using three dice though, assuring at least 1 kill per throw.

    4. Re:Seriously by SchrodingersRoot · · Score: 1

      The attacker does have the option of using three dice though, assuring at least 1 kill per throw.

      That turns out not to be the case. You can only lose as many armies as you defend with (i.e. one or two) in a given round. I don't have the rules on me, but they clearly state it. It even says so in the Wikipedia article:

      "If the attacker is using more dice than the defender, the remaining dice are ignored."

    5. Re:Seriously by Anonymous Coward · · Score: 0

      Hacking and software development are still different skills, and I'd rather hire a programmer who can write maintainable code than someone who has lolz mad skillz.

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

    7. Re:Seriously by blixel · · Score: 1

      "If the attacker is using more dice than the defender, the remaining dice are ignored."

      That's right. (Been a while since I last played.) What I was thinking of was the advantage the offender has by having 3 dice vs. the defender who only has 2 dice. If the offender throws 2 fives and 1 three, and the defender throws a five and a three, each player loses one. The defender's five beets 1 of the offender's fives, but the offender's other five beets the defender's three. The offender's remaining three is ignored.

    8. Re:Seriously by Anonymous Coward · · Score: 0

      In RISK, the... attacker does have the option of using three dice though, assuring at least 1 kill per throw.

      Someone hasn't read the rules of RISK correctly. Each die represents one army. Each die is matched up to the highest opposing die. A die which isn't matched with another die is idle, killing nothing and being killed by nothing.

      Anyway, the winner in RISK is the last person to turn in his cards for armies.

    9. Re:Seriously by Anonymous Coward · · Score: 0

      poor analogy...
      It would be like your ten year old nephew breaking your engine by working out that if he hits the right spot with a screwdriver at just the right moment of the engine cycle a sensor misinterprets the signal it receives and shuts off the gasoline.
      - now that would be clever!!

    10. Re:Seriously by MightyMartian · · Score: 1

      1995 is calling. They want their complaint back.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    11. 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...

    12. Re:Seriously by Anonymous Coward · · Score: 0

      Anyway, the winner in RISK is the last person to turn in his cards for armies.

      That's why when we played, we modified the rules where we put a limit on how many armies you get when you turn in your cards.

    13. Re:Seriously by Van+Halen · · Score: 1

      The guy doesn't say specifically, but it sounds to me like he simply stumbled upon it by accident. I don't get the impression at all that he's some super-hax0r looking to exploit a flaw.

      Here's his page about it.
      Here's a post he made on MacRumors.

      That doesn't leave me with the impression of someone intending to do anything bad with it. I could be wrong!

    14. 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.
    15. Re:Seriously by Anonymous Coward · · Score: 0

      I used to have a pretty old car that was starting to fall apart; it also had some noticable dents on its body. When driving, sometimes parts would fall off and bounce off the cars behind mine. There. My car had a problem (dents) and was able to duplicate them to other cars that passed by (more dents.)

    16. Re:Seriously by Columcille · · Score: 1

      You sound like an expert. Someone in the car security industry should hire you.

      --
      I love my sig.
    17. Re:Seriously by Anonymous Coward · · Score: 0

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

      Tell me, I'm curious, how does someone like you with (clearly) only a layman's perspective on computer security

      (a) come to be posting in an online forum about the topic, and

      (b) actually get modded up, in a forum which is supposed to comprise mainly technically literate people?

    18. Re:Seriously by Centurix · · Score: 1

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

      I think this is true for just breaking an application, but to make a successful exploit you are also creating something which can take advantage of the break. Finding a buffer overflow maybe in the reach of the average cracker, but then to make something which can steer the process, catch the PC at the right spot and then proceed to infect the computer requires a little more talent.

      --
      Task Mangler
  17. fsck'ing "open safe files" option by rsborg · · Score: 1

    ...what a stupid idea.

    I honestly think that Jobs really bought into his own RDF with this one.

    You can't tell me that after Win98 & IE4 + 8 years... anyone still believes that bypassing security for "features" is a good idea on as hostile a network as the internet.

    Esp. with someone with as seemingly high a clue-factor as Jobs... :sigh:

    I just turned off the feature on my Safari, and sent an email to my wife to do the same on her powerbook.

    --
    Make sure everyone's vote counts: Verified Voting
    1. Re:fsck'ing "open safe files" option by Anonymous Coward · · Score: 0

      "anyone still believes that bypassing security for "features" is a good idea...I just turned off the feature on my Safari"

      But... you believed in bypassing security for feautures up until this point?

    2. Re:fsck'ing "open safe files" option by Anonymous Coward · · Score: 0

      I honestly think that Jobs really bought into his own RDF with this one....

      Esp. with someone with as seemingly high a clue-factor as Jobs... :sigh:


      Uh, I hate to break this to you, but Jobs didn't write OSX single-handedly, you know... ;-)

  18. why enable "open safe files" option anyways? by slart42 · · Score: 0

    I never saw the point of the option in the first place, regardless security issues. If I tell Safari to download a file, that's what i want -- download it. I never said what I want to do with it next, so why would i want to open it? Yes in most cases when i download an archive, I'm going to unstuff it soon after. But I might just as well want to burn it to a disc or do whatever else with it, and that's what i want to choose myself. That's why i never enabled that stupid, exploit-ridden option anyways.

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

    1. Re:Mac users: welcome to 2001 by gEvil+(beta) · · Score: 1

      Microsoft ad from 2001:
      %nice_job.app -le

      --
      This guy's the limit!
    2. Re:Mac users: welcome to 2001 by gEvil+(beta) · · Score: 1

      Here's a piccie of it. Whoops, no underscore between 'nice' and 'job.'

      --
      This guy's the limit!
    3. Re:Mac users: welcome to 2001 by Anonymous Coward · · Score: 0

      too bad it's fake...

  20. inneresting by gEvil+(beta) · · Score: 1

    Very inneresting. I downloaded the Secunia.mov.zip file on my XP machine at work. Looking at the unzipped files in a text editor, you get the Secunia.mov file which contains "/Applications/Calculator.app/Contents/MacOS/Calcu lator; exit". In the __MACOSX folder (resource data), there is a ._Secunia.mov, which contains binary data and the string "/Applications/Utilities/Terminal.app". Basically, it's a shell script that fires up calculator and exits. As others have said, it's a result of the split off of the resource metadata in OS X. As mentioned, disabling the 'open safe files after download' option in Safari will fix it, too. Or just use Camino. That coupled with the CamiTools plugin seems to do just about everything I need.

    --
    This guy's the limit!
  21. Option never seemed like a good idea by Manuscript+Replica · · Score: 0

    It's true that you don't have to worry about this if you switch off the "Open safe files" option, but I've always thought the option was a bad idea, especially when left on by default. It was a vuln waiting to happen because as soon as you figure out how to trick Safari into seeing a malicious file as "safe", you can own a large portion of Mac users.

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

    1. Re:This is just like a .jpg.exe by Lehk228 · · Score: 1

      recent? i thought the shell exploit was over a year ago?

      --
      Snowden and Manning are heroes.
    2. Re:This is just like a .jpg.exe by argent · · Score: 1

      So the guys in apple who had the __MACOSX part to zip files didn't communicate that to the Safari folks.

      Unzipper: "Hey, Safari, we're doing something really stupid that could cause problems if you're doing something really stupid. You guys OK with that?"
      Safari: "Oh, yeh, we're doing something really stupid as well."

      Both the Safari team and the unzipper team are seperately fully culpable.

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

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

    1. Re:There is no totally safe software. by Mark+Gillespie · · Score: 1

      Exactly WHY is MacOSX safer than Windows? Because of it's small marketshare? Sure some of Windows XP default setting are based on functionality rather than security, but this can all be locked down. A locked down XP system, is as secure as MacOSX, if not MORE secure, as who knows what other gotchas are waiting in OSX to be exploited, whereas XP has had been constantly improving things...

    2. Re:There is no totally safe software. by corvair2k1 · · Score: 1

      *pats your head* You get a cookie. ;)

      But you're right, this should be common sense by now. Until we get (mathematically) proven applications, running on a (mathematically) proven OS, running on (mathematically) proven hardware, we can't prove safety.

    3. Re:There is no totally safe software. by chphilli · · Score: 1
      Until we get (mathematically) proven applications, running on a (mathematically) proven OS, running on (mathematically) proven hardware, we can't prove safety.

      ...but we need (mathematically) perfect humans to be able do all that mathematical proving!

      --
      Please ignore any obvious problems in this post.
    4. Re:There is no totally safe software. by wvitXpert · · Score: 1

      My MCSE teacher always said "The only secure computer is one you can't use". You have to decide how much you are willing to risk your data, and act accordingly.

    5. Re:There is no totally safe software. by HairyCanary · · Score: 1
      Exactly WHY is MacOSX safer than Windows? Because of it's small marketshare?

      Errr... no. Market share has nothing to do with it. MacOSX is safer than Windows because it has fewer bugs. If it were market share related, there would be a LOT more vulnerabilities. Even 1% of Windows bugs would mean tons more than there are.

      A locked down XP system, is as secure as MacOSX, if not MORE secure, as who knows what other gotchas are waiting in OSX to be exploited, whereas XP has had been constantly improving things...

      No, again. No matter how locked down Microsoft has made Windows, it continues to be exploited more than MacOSX. I would be careful suggesting that XP has been constantly improving -- patching is not necessarily improvement. And besides, Apple releases updates for their software regularly. I just got 10.4.5 last week, so I'd say Apple is "constantly improving things" at least as much as Microsoft is.

      You really ought to gain some exposure to other software, and broaden your horizons. Only someone who has used Microsoft software exclusively for his entire life could be such a fanboy.

    6. Re:There is no totally safe software. by corvair2k1 · · Score: 1

      If that were true, we wouldn't have all the wonderful theorems that we have today!

      Progress is being made in automated theorem proving about programs, but many doubt that we could ever have large, arbitrary systems proven.

      Wikipedia on Formal Methods

    7. Re:There is no totally safe software. by Mark+Gillespie · · Score: 1

      Only someone who has used Microsoft software exclusively for his entire life could be such a fanboy. bzzzztt, wrong.. I use XP (pro and x64) as desktops, and Linux (Gentoo and Debian) as servers. They both excel at what they do. MacOS is not very good at either...

    8. Re:There is no totally safe software. by argent · · Score: 1

      A locked down XP system, is as secure as MacOSX

      Not as long as you use any application that invokes the HTML control on untrusted content, such as IE, Outlook, Media Player, or third party apps like Lotus Notes or Realplayer.

      Because, unlike Mac OS X, you can not turn off the Windows equivalent of "Open Safe Files After Downloading".

    9. Re:There is no totally safe software. by Anonymous Coward · · Score: 0

      ... and a more UNIX-like system (eg. Linux) is more secure than OS X due to the fact they are multi-user systems. Even though OS X is multiuser at some level, it's mostly a single-user system like OS 9 or Windows and therefore has a lot of single-user conveniences like ass security.

      But like you said, even those are not perfectly safe. At least a couple times I have wanted to look at a scripting virus and instead of opening it in a text editor it was opened in WINE and I had to scramble to kill the process before it did damage (however limited that would be).

    10. Re:There is no totally safe software. by Mark+Gillespie · · Score: 1

      Thats a good reason alone to carefully audit software before using it. Myself, ActiveX is totally disabled, I run normally as Restricted user accounts, and use Opera as my browser and email client, and VLC as my media player. Like I said, a Locked Down enviroment. I was not claiming a standard install of XP was as secure as OSX.

    11. Re:There is no totally safe software. by HairyCanary · · Score: 1
      I apologize, I was being charitable.

      If you are a fanboy for any operating system after having been exposed to the other available choices, then the proper term is dumb.

      You can take that however you want :-). I also suggest that you continue broadening your horizons. If you think Windows is better than MacOSX as a desktop, then you have not spent any significant time using MacOSX. And if you think Linux is the best server OS ... well, try Solaris sometime and get back to me.

    12. Re:There is no totally safe software. by argent · · Score: 1

      Myself, ActiveX is totally disabled

      How do you run control panel applets and other components that depend on ActiveX?

      Like I said, a Locked Down enviroment. I was not claiming a standard install of XP was as secure as OSX.

      I'm pretty damn paranoid, and willing to put up with a lot of inconvenience, but... damn, why are you bothering to use Windows at all? That sounds like a singularly unpleasant Windows environment, and all the apps you listed are available for a variety of operating systems... many of which require a less rigorous regimen!

    13. Re:There is no totally safe software. by Mark+Gillespie · · Score: 1

      Control Panel applets don't rely on ActiveX at all. I dont encounter very much at all that does ActiveX

    14. Re:There is no totally safe software. by argent · · Score: 1

      I didn't say all control panel applets used ActiveX, I said that control panel applets that do (for example: Add/Remove programs) would not work if you disabled ActiveX.

      Windows Explorer uses ActiveX for sidebars.

      There's ActiveX all over Windows. Anything that uses the HTML control for rendering structured text with active components is using ActiveX (technically, I guess, anything that uses the HTML control at all is using ActiveX).

    15. Re:There is no totally safe software. by Anonymous Coward · · Score: 0

      Not to be an idiot fanboy, but, uhh, you don't know what the fuck you're talking about. "OS X is multiuser at some level"??? What kind of uninformed drivel is this? Let me inform you: OS X is multiuser at the same level as Linux or any other unix-like system. THE SAME. It differs in the kernel and some other things, but multiuser support is just the same.

      What a bunch of crap.

      The "ass" security of OS X comes from the fact that it chose to trade off security for ease of use. Nothing at all to do with single or multi user abilities. It was a bad trade, and they got bit for it. Same for Windows, which is plenty multiuser as well. They braindeadedly went for ease of use and "cool" features over security.

      As Linux continues to scramble to copy both Windows and OS X on the desktop, I guarantee that similar issues will come up. It's all in the user interface, not in the underlying system (which is about equally good/bad for all three).

    16. Re:There is no totally safe software. by Anonymous Coward · · Score: 0

      "Errr... no. Market share has nothing to do with it. MacOSX is safer than Windows because it has fewer bugs."

      You have any data to back that up?

      "No, again. No matter how locked down Microsoft has made Windows, it continues to be exploited more than MacOSX."

      Yes, there is more economic incentive to hack Windows boxes since there are more of them.

  25. Rocket by liangzai · · Score: 1

    1. User must download link

    2. Safari must allow expanding of zip file

    3. Zip app must allow executing of unzipped file (this is not normal)

    4. Normally, the file will appear on the desktop, without being executed. It does have a movie icon, but for those of us who always pre-watch movies and what have you in a Finder column window, this doesn't really present a problem; it says Terminal Document below the movie icon (and no one in their right mind would zip a movie anyway, it's a bit like those pornmovie.exe you find sometimes).

    1. Re:Rocket by ChrisC1234 · · Score: 1

      So why is it when a vulnerability exists in OS X that REQUIRES THE USER TO DO SOMETHING, is OS X "Struck by Severe Security Hole", but when simply plugging a windoze box onto the net gets it infected is it just business as usual? A "severe" security hole to me is one in which no actions at all are required by the user (just having the machine on the net resulting in a compromise).

    2. Re:Rocket by SchrodingersRoot · · Score: 1

      5. ???

      6. Profit!

  26. 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.
  27. Those bastards! by a_nonamiss · · Score: 0, Flamebait

    Those bastards at Microsoft! When are they going to learn not to release code that's... What? It's not Microsoft? That doesn't even make sense! I thought Apple was immune from any security vulnerabilities, because they were error-proof.

    Seriously, I'm not a Microsoft fanboy. As the admin for small Microsoft network, I spend hours a day cursing them. However, I'm glad that it's finally been shown that ALL OSes have problems. Windows is definitely a victim of it's own success, because there aren't a whole lot of people out there that want to spend hours and hours discovering a way to compromise BeOS and OS/2. I think Apple has done a superb job in the last year or two really setting themselves up for a major comeback, and kudos to them. My next PC will probably be an Apple.

    The dark side, however, is that we're going to see more and more exploits/holes/worms for the Apple OS in the future as they gain market share. The scariest part is that there's probably more low hanging fruit in the way of exploits. Love it or hate it, Windows is pretty battle-hardened at this point.

    --
    -Arthur
    Cave ne ante ullas catapultas ambules
    1. Re:Those bastards! by Anonymous Coward · · Score: 0
      Love it or hate it, Windows is pretty battle-hardened at this point

      Or, it's just one loud noise away from a flashback about the 'Net and methodically barricading itself in its house with a half-dozen fully loaded automatic rifles.

  28. 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 corvair2k1 · · Score: 1

      I would care much less about a program messing around in /opt and /System than running an rm -rf on me. Only one of the two situations would be easily fixed, unless I had taken backups immediately prior.

    2. 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.
    3. Re:System should be safe by biftek · · Score: 1

      There are unpatched local root exploits in 10.4.5 though.

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

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

    6. 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
    7. Re:System should be safe by cortana · · Score: 2, Funny

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

    8. Re:System should be safe by Peganthyrus · · Score: 1

      Whatever the Unixism is for 'delete all files in the current user's home directory'. I don't keep command line stuff swapped into my head most of the time.

      --
      egypt urnash minimal art.
    9. Re:System should be safe by Anonymous Coward · · Score: 0
      Why is it that Slashdotters always say 'oh, this exploit just affects userland, no big deal'?

      Because if you're a BOFH sysadmin, or wannabe, that's the right answer. Who gives a damn about users. Reinstalling the OS means actually having to work and takes time away from reading slashdot.

    10. Re:System should be safe by Anonymous Coward · · Score: 0

      Why are we ruling out elavation of privelages from there on? Sure, you would need a different vulnerability coexisting. Not that you have to get root access to annoy or do alot of damage anyway...

    11. Re:System should be safe by ceeam · · Score: 1

      You are _absolutely_ right! Why the heck should I care about system libraries when _my_ files are at risk?! Sadly, this argument rarely if ever comes in Linux security discussions - "you shouldn't run as root", "you shouldn't run as root" they say... ;) To hell with that - if they take my "home" then I don't care - take /usr/lib too - as long as it is my _personal_ computer. Seriously - is there one Linux distro providing sandboxed (maybe several levels even) environment for browsing etc..? What could be done - I don't know what, frankly - to prevent then propagation of trojans (with or without user assistance) between sandbox levels?

      And to be fair - this all applies to Windows, of course.

    12. 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?
    13. Re:System should be safe by MadMidnightBomber · · Score: 1
      Why is it that Slashdotters always say 'oh, this exploit just affects userland, no big deal'?

      Because I always run as root.

      No, wait...

      --
      "It doesn't cost enough, and it makes too much sense."
    14. Re:System should be safe by Anonymous Coward · · Score: 1, Informative

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

      Because they're pointing out that unlike most Windows viruses this one doesn't actually exploit a service that is running on every MacOS system, and that can easily instantly replicate itself and spread to other machines creating zombies without any of the owners knowing. This one could mail itself to another friend or put itself into other files if it wanted, but it would have no assured way of infecting other machines like Code Red and Nimda (if I recall correctly) did. Yes, it's bad to lose user files. No this isn't nearly as bad as the horrible things that have been happening on Windows machines for years. (Though those are mostly gone now after they've done literally billions of dollars of damage to thousands of businesses and homes around the world.)

    15. Re:System should be safe by Peganthyrus · · Score: 1

      Meanwhile, most people I've known have one HD with one partition, and one user. And Windows has trained them that major problems are best solved by reinstalling the whole system anyway. Hell, if something trashed my user directory, I sure wouldn't want to trust that it hadn't dropped other little surprises somewhere.

      And... backups? What're those? *innocent blink*

      Most folks don't have someone to enforce separation of user data and system data; the way the machines are sold kinda discourages it. If they live in a house with a sysadmin type they might, assuming there hasn't been religious wars about OSs that result in the sysadmin type being forbidden to touch their machines on pain of death. (I've seen that.)

      --
      egypt urnash minimal art.
    16. Re:System should be safe by bluk · · Score: 1

      There's no motivation to write a virus that destroys user files.

      Okay maybe there's a slight motivation by people who just want to destroy things, but that's not the purpose of most modern viruses. They're written so that other people can use your machine to do malicious deeds.

      No one else really cares if your files are hosed. More than likely if they were that important, you should have a backup. However, 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.

    17. Re:System should be safe by legirons · · Score: 1

      "Someone correct me if I'm wrong, but this exploit can only affect items that the user has rights to"

      Yeah, only your documents, your photos, and the internet. What could possibly go wrong?

    18. Re:System should be safe by dodobh · · Score: 1

      Think different.
      Think single user Unix.

      --
      I can throw myself at the ground, and miss.
    19. Re:System should be safe by hackstraw · · Score: 1

      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?

      You are right. Even if this exploit were to make it "in the wild", it would not be that damaging.

      It would only really be able to muck with stuff that the user owns, which is only their data. And although everybody's data is so important that they never back it up, these weenie exploits never do anything productive/destructive like remove data, they just try to become the next big press release for taking down the net or whatnot.

      First, this is a drastic error on Apple's part for defaulting to opening "safe" files, which has been an issue for at least one year for the "non-safe" ones like this.

      I'm happy or at least safe with over 99% of Apple's decisions with defaults, but this falls into the "you fucked up" category. Its known from MS's track record, that you cannot safely execute vbscript or jscript code, or use any 'autorun' techniques. The user shall always be involved in opening a document that is downloaded from the net. Period.

    20. Re:System should be safe by Anonymous Coward · · Score: 0

      This should do it:

      rm -rf ~/*

    21. Re:System should be safe by Tim+Browse · · Score: 1
      you can just reboot and restore from backup

      A backup? Ah, to be young and naive again...

    22. Re:System should be safe by Ankur+Dave · · Score: 1

      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

      In Windows XP, the user can't log on as root (the root account is called SYSTEM). This is made apparent by the fact that the user can't terminate certain system processes.

    23. Re:System should be safe by runderwo · · Score: 1
      This should do it:

      rm -rf ~/*
      Do what? Sorry, I jumped into the middle of this thread. I pasted that into a terminal and it just returned to the $ prompt, so maybe I missed something.
    24. Re:System should be safe by runderwo · · Score: 1
      However, if people are able to get control of your machine they can turn it into ... a DOS machine
      Oh god! The worst virus of all!
  29. Konqeuror? by Anonymous Coward · · Score: 0

    I hope the KDE guys take a gander at this one too, just to be safe.

    1. Re:Konqeuror? by corvair2k1 · · Score: 1

      I disagree... I think that this vulnerability has everything to do with the browser.

      If the browser had employed the same tactics as finder for determining filetype (i.e., metadata), it would not have assumed that the file is of a "safe" type. Therefore, it would not have automatically opened it. However, Safari is only looking at the extension of the file for these purposes, and is being mislead by specially crafted files.

    2. Re:Konqeuror? by brainnolo · · Score: 1

      Have you read TFA? Safari is not tricked by extension, but is tricked by the crafted metadata stored in the __MACOSX folder in the zip file (which contains the resource forks for the compressed files). So metadata is set to reflect the extension, but the "Open With:" option is set to Terminal.app instead of the default application (that is, the embedded resource fork also stores the preferred application to open a certain document, for example Photoshop instead of Preview).

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

    1. Re:Interesting by ceeam · · Score: 1

      I'll send you readme.html.pif file pointing it out.

  31. Hey Safari, Internet Explorer 4 called... by fak3r · · Score: 1

    ...it wants it's exploit back.

  32. 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 daveschroeder · · Score: 1

      Ubuntu can't run shell scripts and can run ordinary productivity software in a commercially supported OS environment from a major vendor?

      Sign me up!

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

    2. Re:Security fix out allready! by tpgp · · Score: 1

      *Woooooooooooooooooosh*

      That was the sound of a joke going over your head - did you feel your hair part?

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

      Did you even read the vulnerability?

      Visiting a malicious webiste can cause arbitrary code to run on your mac. This is not a social engineering trick - its true that it will only run at user priviliges - but that is going to be little consolation if you're home directory is trashed.

      --
      My pics.
    3. 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
    4. 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. :-(

    5. Re:Security fix out allready! by Kristoffer+Lunden · · Score: 1

      You completely missing the joke and going into fanboy mode aside:

      A shell script on Ubuntu can't masquerade as anything else as the contents is analyzed. If there is doubt, as in a conflict between extension and contents, the system refuses to run the file - not limited to executables, but also including opening image or media files or indeed any file. That's why it was a "fix".

      and can run ordinary productivity software

      Yes, plenty. OpenOffice is common enough to be called ordinary today, and there's plenty more. And with some help from CrossOver, plenty more can easily be run, includign Photoshop and MS Office.

      in a commercially supported OS environment from a major vendor?

      Very much so. The Gnome and KDE desktops have many major backers, and Ubuntu itself is commercially supported by Canonical. What defines major?

      Oh, and it's free. So you can just try it and see if it's for you, without losing anything but some time.

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

    7. 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.
    8. Re:Security fix out allready! by daveschroeder · · Score: 0
      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.


      The extended part of the vulnerability that I was talking about in my post, and was the whole point and purpose of my post, whose subject was "Also works in Mail.app", the key word being ALSO, does have everything to do with icons (and resource forks, and the fact that a Mac executable can have any name, etc.)

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

      No. This is what I do for a living. Like I said, I'm well aware of how it works, and I was providing information on ADDITIONAL exposure; the context of the subject of my post (ALSO works in Mail.app) proves that. Also, I've already posted in various forums this morning on this issue (e.g., http://listserv.cuny.edu/Scripts/wa.exe?A1=ind0602 &L=macenterprise). Further, the general Mac news web sites and Mac-focused lists had information about this long before slashdot picked it up. As I said, this is what I do for a living, but thanks for your troll nonetheless.

      Not if the website's been hacked.

      ...

      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.

      Yes, that I agree with. Even though I wasn't talking about this in my initial post, I think the discussion around this assumes that Apple will still try to maintain the "safe" files paradigm, though there is arguably no such thing as a "safe" file.

      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.


      Context. I said:

      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.

      This means "as we all know, that can happen on any platform" is in direct reference to "every other aspect of this just becomes tricking the user to click something". NOT in reference to the auto-execution of malformed shell scripts because of Safari and LaunchServices' bogus handling, to which the "Once fixed (or, in the interim, a single box unchecked)" part of the statement refers.

      Nice attempt to try to paint me as ignorant, but since everything I said is perfectly valid, and since my initial post was clearly describing an ADDITIONAL exposure via this method, I'm sure everyone will be able to see that.

      However, I doubt you'll admit you were wrong and that you totally misread my post.

    9. Re:Security fix out allready! by The+NPS · · Score: 1
      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.

      My Safari came with that unchecked. Anyone else?

    10. Re:Security fix out allready! by tpgp · · Score: 0, Troll

      Last bit first: However, I doubt you'll admit you were wrong and that you totally misread my post.

      *sighs* Sheer arrogance.

      To reply to your post in general terms:

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

      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.

      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

      --
      My pics.
    11. 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.

    12. Re:Security fix out allready! by tpgp · · Score: 1

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

      Genius! You mean if an O/S has no remote execution vulnerabilities it comes down to indirect techniques to compromise a computer? My God - you may have stumbled upon something thats eluded security specialists for years! Quick - email de Raadt and let him know.

      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.

      Nope:

      1) You objected to my 'switch' to ubuntu joke. Ubuntu does do away with the idea of thinking there "are safe files".

      2) Its one of the reasons for the vulnerability. Of course it belongs in this discussion.

      OT: We should do this again sometime - nothing like a couple of one-eyed partisan fanboys talking at cross purposes.

      --
      My pics.
    13. Re:Security fix out allready! by Anonymous Coward · · Score: 0

      Actually, Ubuntu, like just about every linux distro, does away with the idea that an OS should be usable by people without a degree in computer science, and have some unified concept of a user interface across applications.

    14. Re:Security fix out allready! by daveschroeder · · Score: 1

      OT: We should do this again sometime - nothing like a couple of one-eyed partisan fanboys talking at cross purposes.

      Deal. ;-)

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

    16. Re:Security fix out allready! by Anonymous Coward · · Score: 0

      Since we've gone through the whole "download safe files" business a year ago, and Apple provided a prompt fix...

      I sort of remember hearing about this before, but failed to read up on it. Do you have any links? I'm curious as to how Apple fixed the previous issue.

    17. Re:Security fix out allready! by Casualposter · · Score: 1

      No computer operating system does away with the "safe" file concept. Nobody willingly opens a file they think will trash their computer--maybe on accident or through trickery, but not on purpose. So what if you force the user to manually open a file? The user still believes the file to be "safe" so it gets opened. Auto scripting opening a file is not much different. The user thinks the file is X and would open it manually by double clicking on it. I suppose that if you forced everyone to open the application and then select the file to be opened you might prevent this sort of exploit, but maybe not.

      --
      Creative Spelling Copyright (2002). May use without Persimmons
    18. Re:Security fix out allready! by heinousjay · · Score: 1

      What defines major?

      Used by at least 1% of the market?

      I'm not trying to be a dick here, honestly - it's just that when something is niche, it's niche, no matter how much the users want it to be otherwise.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
  33. 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!

    1. Re:Tried on Windows by Anonymous Coward · · Score: 0

      well, if the script were for dos im sure you would see something different XD

  34. Doesn't work in 10.4.1 by mobby_6kl · · Score: 1

    I know it's an ancient version, but I just tried it under VMWare in Safari 2.0 (412) and it only launches Quicktime. Well I guess that's bad enough.

    1. Re:Doesn't work in 10.4.1 by Anonymous Coward · · Score: 0
      I just tried it under VMWare in Safari 2.

      Interesting Apple Macintosh you've got that runs VMware....

    2. Re:Doesn't work in 10.4.1 by gellenburg · · Score: 1

      Considering that VMWare is not available for OSX (PPC or x86), and even VirtualPC does not allow the running of virtual OS X instances (PPC), odds are you are running 10.4.1 from the Developer Preview, a hacked version no less I'm sure, in which case you have broken the 11th Commandment of the Book of EULA: Thou Shalt Only Run OS X on Apple Hardware.

      Your actions have been reported to the Jobs Almighty. May Apple Lawyers have mercy on your Soul.

    3. Re:Doesn't work in 10.4.1 by zoloto · · Score: 1

      Just tried it in VMWare in Safari 2.0 ? Can you explain this?
      You have VMWare working on OS X?
      How did you get Safari IN VMware?

  35. So you're saying any one in their right mind by Neuropol · · Score: 0

    ... would be using Firefox for OS X?

    1. Re:So you're saying any one in their right mind by corvair2k1 · · Score: 1

      All software of sufficient size is going to have a showstopper in there somewhere. This may have been a pretty silly bug to have, but both Camino and Firefox have had their fair share of scares.

  36. 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?
  37. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  38. but, but but.... by Anonymous Coward · · Score: 0
    but how can this possibly be?!? Have the mac/linux/unix fans been lying this entire time claiming that OS X was totally secure and invulnerable?


    Is the end of the world near? Will dogs and cats start living together? Google do evil and MS be good?

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

    1. Re:Yep, this is a genuinely bad bug by argent · · Score: 1

      Also...

      The suggestion in the original announcement of simply moving Terminal.app will probably NOT be enough to keep you safe. I won't go into details, but it should be obvious why.

      Internet-enabled DMGs in zip files opened by Stuffit Expander are another potential problem... I don't know of an explout, but stuffit shouldn't be automatically mounting disk images, ever.

      Nothing should ever be passed off to any component that's not known to implement as strong a sandbox as the original program, and that includes using metadata embedded in the potential exploit to tell how it should be opened.

  40. OSX hole or Safari hole? by Gothmolly · · Score: 1

    Are we so used to MS bundling the browser with the OS that we can't think that they're different things? Granted, Safari does come with OSX, but thats not the point - its the wording of the headline thats trollish.

    --
    I want to delete my account but Slashdot doesn't allow it.
    1. Re:OSX hole or Safari hole? by Carthag · · Score: 1

      As fas as I can tell it's a LaunchServices hole.

  41. Re:Odd... by rylin · · Score: 4, Funny
  42. 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 Lehk228 · · Score: 1

      that is because most posting those arguments are microshaft trolls.

      --
      Snowden and Manning are heroes.
    2. Re:Why isn't Secunia Being Flamed Here by Anonymous Coward · · Score: 0

      Are there not enough details for someone to create their own version?

      We can only hope.

    3. Re:Why isn't Secunia Being Flamed Here by penguin-collective · · Score: 1

      Why isn't Secunia being flamed here for releasing details of an exploit before Apple has had a chance to patch it?

      Because this exploit is beyond stupid. This is the kind of thing even a casual thought about security at Apple should have revealed.

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

    5. Re:Why isn't Secunia Being Flamed Here by Slashcrap · · Score: 1

      Why isn't Secunia being flamed here for releasing details of an exploit before Apple has had a chance to patch it?

      Why isn't Apple being flamed for such a stupid and easily exploitable bug? Oh, that's right - it's Apple we're talking about. Potential thoughtcrime - best shoot the messenger instead. Wouldn't want to get modded flamebait would we?

    6. Re:Why isn't Secunia Being Flamed Here by Anonymous Coward · · Score: 0

      True that.

  43. Camino Showstopper Bug by manastungare · · Score: 1
    I liked Camino better than Firefox (albeit not as much as Safari), but this particular bug has been a showstopper for me -- and it's been open since 2002. Camino can only save one password per domain. This is neither the behavior of Firefox nor Safari nor any other browesr I have used.

    The most value I get out of Camino is for browsing some heavy AJAX sites that have not been tested with Safari. A few more iterations might make it better.

    1. Re:Camino Showstopper Bug by Kyro · · Score: 1

      Yeah that bug annoys me too. And Safari uses about 100MB of RAM for me and Camino uses 130-160MB.

      --
      save the GNUs!
  44. um, get firefox? by djcatnip · · Score: 1
    --
    I make these: http://beatseqr.com
    1. Re:um, get firefox? by dtsazza · · Score: 1

      That only stops the file being automatically opened - something you can also do by turning that option off in Safari (as noted several times above).

      The main problem is in the way OS X handles remote metadata.

      --
      My, that was a yummy potato!
  45. 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.

  46. 10.3 by seann · · Score: 1

    I use 10.3.last revision.

    Nothing happened and even when I clicked on the file.

    --
    I'm a big retard who forgot to log out of Slashdot on Mike's computer! LOOK AT ME.
    1. Re:10.3 by Slashcrap · · Score: 1

      Nothing happened and even when I clicked on the file.

      Maybe you clicked with the wrong mouse button?

  47. Re:Odd... by Anonymous Coward · · Score: 0

    I like how this was modded flamebait when it's so obviously trolling :) ...I was thinking the same thing, though. After months of reading about how great and secure Apple is here on /. I expected at least a bit more apologetics from the zealots.

  48. Re:Totally OT Question by igb · · Score: 1

    I use .Mac to synch Keychains and Bookmarks between the three machines I use regularly. Safari is easier to do that with. Plus it's got native appearance. ian

  49. 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 JazzCrazed · · Score: 1

      Actually, I think the main problem is that Safari uses extensions in some cases to trump the metadata in determining how to treat downloaded files. Correct me if I'm wrong, but, as stated in Ars Technica, the demo of this exploit has a JPG extension, even though the metadata labels it a "terminal type/creator code." If it had prioritized it the other way, then maybe this wouldn't happen.

      So Safari shouldn't judge a book by its extension...or something. But as everybody has said, it seems a simple enough fix, so hopefully a patch will be out soon. In my case, though, we use Firefox and Camino primarily on our Mac.

    3. 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."
    4. Re:This IS a bad one by rthille · · Score: 1

      I guess I'm fairly safe then, since my default shell is emacs :-)

      --
      Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
    5. Re:This IS a bad one by phantomfive · · Score: 1

      It is a problem with having things open automatically once they are downloaded. It allows malicious people to expand their search for vulnerabilities to a whole range of programs, instead of just looking in Safari. Today the vulnerability is in LaunchServices, tomorrow it will be in Stuffit Expander or Preview or something else.

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

    7. Re:This IS a bad one by NSObject · · Score: 1

      A file with this exploit will contain a hard coded path to Terminal.app (/Applications/Utilities/Terminal.app) in a 'usro' resource in its resource fork.

      For a temporary fix, renaming (or moving) Terminal.app will cause the file to be opened in it's default app (Preview, in my case) and present an error that the file is corrupt. Much better than opening Terminal. This includes opening it from Mail.

      Oddly, before renaming the file, control-clicking it in the Finder and looking at Open With... shows Terminal at the top, but still has Preview listed as the default app. This changes if Terminal is renamed; Preview moves to the top and Terminal disappears.

      Terminal.app should be given its proper name and location before using Software Update or running Repair Permissions in Disk Utility. These require paths to match their Receipts.

      I've done this at all of my click-happy clients with no ill effects. They aren't command line kind of people.

    8. Re:This IS a bad one by J.+Random+Luser · · Score: 1

      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

      It doesn't need the type/creator codes, and it doesn't matter if it has shebang or not. Set it in a GetInfo window to open with Terminal.app, and chmod 755 to make it executable. The dirty work is done. A pretty icon and enticing filename extension are just icing. It doesn't need to be zipped as some security sites are suggesting. It just needs to get to your current working directory somehow, email attachment, <meta http refresh, whatever, and you double-click it. Only the truly paranoid right-click every file to GetInfo, then again to Open with...

    9. Re:This IS a bad one by paj1234 · · Score: 1

      > is file type determined by extension or creator code?

      It would be better if file type were determined by Cowboy Neal. :-)

    10. Re:This IS a bad one by kehren77 · · Score: 1
      FTA: Solution: Do not open files in archives or mail attachments originating from untrusted sources.

      So the solution is, use common sense.

      So I say "thank heavens I use Firefox and don't use Mail.app"

    11. Re:This IS a bad one by heinousjay · · Score: 1

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

      Wow, I don't even know what joke to use here. Sarcasm doesn't come across well on the web, picking on you for it is like making fun of a clown, and some form of aghast shock doesn't really convey humor. Bravo, sir, your doublespeak has left me floundering.

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    12. Re:This IS a bad one by Anonymous Coward · · Score: 0

      100% Informative? I think you're 100% wrong when you say it's the missing shebang line that's causing it to work. You don't have a zip file to prove your point. Also, the .jpg or other "safe" extension IS necessary for Safari to automatically open it.

  50. Safari replacing IE by saboola · · Score: 1

    Since IE is no longer supported or being developed on OSX, Safari will have to try harder in creating more backdoors on a monthly basis. They have a long way to go to catch up with IE.

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

    Comment removed based on user account deletion

  52. Re:Transcript of recent telephone phone conversati by Unski · · Score: 1

    Perhaps this was after their honeymoon period in another dimension..

  53. That's funny - it didn't do that for me by alispguru · · Score: 1

    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.

    I just tried the following:

    Safari + open safe downloads ON - Terminal and Calculator opened automatically

    Safari + open safe downloads OFF - file downloads, opening it from the Downloads window does nothing

    OS X 10.4.5, Safari 2.0.3, everything up to date from Software Update.

    This is a nasty one, but turning Open Safe Downloads off seems to pull its fangs.
    --

    To a Lisp hacker, XML is S-expressions in drag.
    1. Re:That's funny - it didn't do that for me by objekt · · Score: 1

      I guess my Safari must be broken because all it does is download the .zip file no matter how I set it.

      But telling people this really isn't a threat seems to be a bit redundant already.

      --
      -- Boycott Shell
  54. I'll bite... by Farmer+Tim · · Score: 1

    Ooh, look, A vulnerability. Another example of why OS X is way behind Windows...

    --
    Blank until /. makes another boneheaded UI decision.
    1. Re:I'll bite... by Slashcrap · · Score: 1

      Ooh, look, A vulnerability. Another example of why OS X is way behind Windows...

      Maybe behind in numbers, but in terms of sheer forehead slapping stupidity this vuln has certainly done a lot to level the playing field.

  55. 3..2..1... by skinfitz · · Score: 1

    Cue raft of posts about how people 'dont use the web much anyway' and how it's 'not important'.

  56. 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.
  57. Remote meta-data? by dtsazza · · Score: 1

    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. It's entirely up to the file creators as to what to put in this meta data, and since it's handily bundled with the file it's persistant across different environments. I know it's not quite as bad as a file telling the OS that it's owned by root and executable (perhaps SUID even?), but as we've seen it's quite exploitable.

    Are there any other meta data attributes that OS X naively reads from the file that could be exploited in this way? Is there a compelling reason to store this data in the file itself and not in some central data store (chmodded 400/600)?

    --
    My, that was a yummy potato!
    1. 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.

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

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

    1. Re:I&T by Photar · · Score: 1

      Not to mention the art of war. It took a _lot_ of skill to design nuclear weopons.

      --
      He who knows not and knows he knows not is a wise man. He who knows not and knows not he knows not is a fool.
    2. Re:I&T by BewireNomali · · Score: 1

      It did take a lot of skill to design nuclear weapons. But I could probably break one - or edit it slightly to alters its behavior with a little bit of knowledge and/or training. This is no way makes me superior to the designers, which is what grandparent asserted.

      --
      un burrito me trampeó.
  60. Re:Odd... by IKillUBad · · Score: 1

    it's not so much that people say Linux is the uber safe as why would you want to hack it...if you want to change something you can, that's the beauty of Open Source. Not to say people won't do it anyway, just doesn't seem super fun to me i guess.

    --
    ph34r teh 1337 on3s
  61. Bad unzippers by gnu-sucks · · Score: 1

    If you're using Stuffit to unzip, you will not experience this problem. The file will not load - quick time player will attempt to open it, and fail.

    Big woop.

  62. Re:Totally OT Question by reikiwes · · Score: 1

    The big issue with me is built-in spell check. My typing is terrible, and I love an integrated spell-checker. AFAIK, Safari is the only browser that utilizes OS X's spell checker while filling forms such as this very comment window. Safari will underline the misspelled words in red a la' MS Word/Pages (or any app taking advantage of OS X spell check. It's a small convenience, but necessary for some. I love Camino otherwise, but tend to use Safari for that feature alone. If perhaps anyone knows of a workaround for this, let me know. Using spell-check (as you type) in Camino or Firefox. Even Opera.

  63. 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.
  64. 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
  65. OR mv /Utilities/Terminal.app by KaeloDest · · Score: 1

    One of the things that I have done as I set Up deploy images is move the sensitive apps into the local admin's home folder as /%yourAdminUser%/Applications/Utilities THEN I filevault (encrypt) the user account. I learned a Loooong Time ago to only use admin tools in the admin account. Also I set the user variable for the shell to /Null whenever possible. This spooked me when I tried to install Fink in 10.2, but the result of both of those suggestions means that I must think about what I do before I do it.
              Now for most users this is not even on the radar but the real solution is not in changing the browser, but in changing the tools that the exploits use.

    --
    --Shaddup and support your local PBS station Plan for it
  66. 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.

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

      It's easy to make Windows reasonably secure.

      Just ban Internet Explorer, Outlook, Windows Media Player, Realplayer, Lotus Notes, and any other applications that use the HTML control on untrusted content.

      It appears that on the Mac, you have to ban Safari. Luckily it's Safari and not Webkit that's screwed up, so you can build a safe shell around Webkit and you don't have to ban everything that uses Webkit.

    3. Re:Earth to Apple: THERE ARE NO SAFE FILES! by Anonymous Coward · · Score: 0

      Do you mean to say that HTML, CSS, JavaScript, JPEG, GIF, PNG, Flash, and PDF aren't safe?

      That's funny, it seems that most browsers will open these types of files on the fly, without asking the user's permission. ... so maybe some files ARE "safe".

    4. Re:Earth to Apple: THERE ARE NO SAFE FILES! by Guy+Harris · · Score: 1
      Do you mean to say that HTML, CSS, JavaScript, JPEG, GIF, PNG, Flash, and PDF aren't safe?

      Unless it's run in a sufficiently restrictive sandbox, and is limited in its abilities to interact with the user (e.g., no popping up dialog boxes that look like standard system dialog boxes asking for your password), no, JavaScript is not safe. I don't know how powerful Flash is, so I don't know whether it's unsafe. The others might be safe (assuming no buffer-overflow or other such vulnerabilities in the code to process them).

      That's funny, it seems that most browsers will open these types of files on the fly, without asking the user's permission. ... so maybe some files ARE "safe".

      He said "The user should always make an explicit request to open any file not handled by the browser itself."

  67. Re:Not bad unless you are a complete frigging idio by objekt · · Score: 1

    Wasn't trying to call the person above me an idiot! :) Sorry if it looked that way.

    --
    -- Boycott Shell
  68. 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!
  69. 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.

    1. Re:Inaccurate to say "just by visiting" a web site by hackstraw · · Score: 1

      Just VISITING the site won't do that.

      Wrong!

      The default in Safari, and I guess most browsers is to not show the URL that you are going to when you hover over the link. Even if the link ends in .html, all it has to do is redirect you to a .zip like this one and you got the fun by VISiTING the website.

      Hell, even blindly visiting a website with a refresh after a few seconds could download and run one of these guys.

      Moral of the story, "Thou shall not arbitrarily download and run stuff off of the net without human intervention".

      That has been known for many, many years to date.

  70. MOD PARENT UP by MustardMan · · Score: 1

    This is the exact behavior I got on my box as well - with safe downloads off, even double clicking the zip doesn't open it. You also have to then double click the .mov file. As others have said, this isn't much different from renaming a file to exploit.mov.exe.

    I expect Apple to implement some sort of icon glow or the like to identify any executable file as such. Perhaps it would even be wise to popup a warning when a file with an extension not normally associated with applications tries to execut.

  71. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  72. This IS Bad.. by matth · · Score: 1, Insightful

    But then again.. you ARE running as a user.. right? Ok.. that's what I thought, so even if you DID launch this app instead of saving it and checking it out first, and it WAS malicious.. it would still only be able to affect stuff in your isolated home directory (Which you DO backup.. right?). The system itself would remain stable.

    1. Re:This IS Bad.. by Anonymous Coward · · Score: 0
      But then again.. you ARE running as a user.. right? Ok.. that's what I thought, so even if you DID launch this app instead of saving it and checking it out first, and it WAS malicious.. it would still only be able to affect stuff in your isolated home directory (Which you DO backup.. right?). The system itself would remain stable.

      If you do daily backups of all your user land files and data, then you probably won't loose much, but someone else may now have the same data, which may include personal data, financial info, (cached)passwords, compromising pictures ;) etc.

      But default user level access can do more than many seems to think, including access programs (like the recent leap OSX exploit) see this post about what a malicious program/script can access with default user privileges on OSX.

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

    3. Re:This IS Bad.. by delirium_9 · · Score: 1

      Maybe my use is atypical, but the stuff in my home directory is way more important than the system. If the system is hosed I can boot up from a rescue disk and copy my files elsewhere. If my home directory goes then the stuff I actually used the computer for is gone. Photos, documents, bookmarks, etc.

      That being said, I backup everything I can't stand to lose to CDs, iPod, mail servers and other server space I have lying around because I kill my system enough without the help of exploits to know it's a good idea.

      --
      Since your UID is smaller than mine, I can only conclude that you're trolling. -s20451 (410424)
  73. Disable auto-open is NOT sufficient by frankie · · Score: 1
    Auto-open prevents zero-click execution (or perhaps one-click, depending on how you enumerate), but a substantial two-click problem remains:

    1. You have a downloaded zip file. Extract it, OS X is invulnerable to zip files.
    2. You have an extracted media file. View it, OS X is invulnerable to media files.
    3. Oops, that media was actually a shell script in disguise. PWN3D!!!

    The actual vulnerability is NOT the auto-open, it is the concealment of zipped metadata. Apple needs to fix the problem by default disallow of downloaded or archived "Open With" settings.
    1. Re:Disable auto-open is NOT sufficient by Kadin2048 · · Score: 1

      Breaking the legacy metadata support might have wide-ranging implications for users that still use Carbon applications (which might use the Type/Creator codes), or boot into/use Classic occasionally.

      Really what they need to do (IMO) is twofold: first, they need to stop the Terminal from just executing a script from a double-click if the script doesn't start with a shebang line. I can't think of any reason why any user (who isn't capable of just editing the file and putting in the line) needs to do this, or any functionality that it would break. This wouldn't affect forced-execution of a shell script without the shebang, if it was done from the command line.

      Also, and perhaps more importantly, they need to give the user some sort of visual indicator that what they're about to click on is an executable file. That would stop a lot of human engineering exploits, or at least shift blame for them from the OS onto the user, where it belongs. I think users would probably pay attention to something like that, since it would be anomalous: people may be stupid, but if something seems wrong or different, they usually notice. If every JPG you've ever seen has looked one way, and all of a sudden you have a JPG that looks different ... that ought to give anyone pause. Maybe not enough pause to stop them from clicking it ... but I bet they won't ever do it again.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    2. Re:Disable auto-open is NOT sufficient by ThePhilips · · Score: 1

      Apple was already criticized on both of this points.

      First of your points was already disabled by most of the savvy users after the bug of Terminal.app with opening of telnet:// links from Safari and problems of parsing command line.

      Second is, well, feature. I hardly see how Apple can safely work it around. (Situation of application called funny.jpg.app with icon of jpeg file.) As a rule of dumb I normally investigate files I download from net before opening them. Guess which OS have taught me the lesson. ;-)

      But well, if you look deep into the problem, it again boils down to user stupidity...

      --
      All hope abandon ye who enter here.
    3. Re:Disable auto-open is NOT sufficient by Charles+Dodgeson · · Score: 1
      You are exactly right and I hope that your post gets modded up. (My post, however, is redundent because all I'm doing is agreeing with you, and adding some speculation.)

      I've just been playing with this, and it is a serious problem. It's sort of like the foo.jpg.exe trick on Windows, but it is worse because in this case the Finder (file browser) can really make the executable look like a JPEG (or whatever).

      I also don't see a fix for this won't break functionality seriously. But I'm confident and hopeful that the people at Apple will be able to. I guess that there will have to be tighter restrictions on how metadata can be manipulated.

      --
      Prime numbers are exactly what Alan Greenspan says they are -S. Minsky
  74. 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
  75. "Fear" is another marketing strategy by Anonymous Coward · · Score: 1, Insightful

    A zip file that extracts a shell script with a movie icon pasted on it? This is a "critical exploit"?

    Secunia must be hurting for sales.

  76. Not just a visitor by Anonymous Coward · · Score: 1, Informative

    It takes more than just visiting the site to be compromised. You have to download a zip file.

  77. 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
    1. Re:I'm stunned.... by lloydtesterman · · Score: 1

      Maybe they are gonna put RISK processors in next years Macs?

    2. Re:I'm stunned.... by An+ominous+Cow+art · · Score: 1

      Or maybe this should be cross-posted to the RISKS list?

  78. Logic exercise: watch how to blame Microsoft by Beryllium+Sphere(tm) · · Score: 1

    Let's see, going through the classic logical fallacies:

    o Haven't you noticed that you never heard about OS X security flaws before Microsoft was founded?

    o Well, of course Microsoft wants you to think this is Apple's fault.

    o If we let Microsoft off the hook for this one, what will they do next?

    o Everyone knows it's Microsoft's fault. You don't want to be ridiculed for your ignorance, do you?

    o Blaming Apple instead of Microsoft is what a luser would do.

    o Who had more motive?

    o Microsoft controls the OS industry, a court said so. With control comes responsibility.

    o Microsoft didn't prevent it, find it or stop it.

    o Just because we haven't found proof yet doesn't mean Microsoft is innocent.

    o Sheesh, I'm tired of this therapeutic culture where everything is "systemic" or "environmental" and nobody will hurt someone's self-esteem by saying "you screwed up".

    o Just because *you* can't prove Microsoft's responsible, that doesn't mean they aren't.

    o So you're saying Microsoft doesn't have security holes?

    o Where do you think security holes come from, anyway?

    Thanks to Wikipedia's "Fallacy" article. And of course the root cause here is yet another instance of trusting data (in this case metadata) from a hostile network.

  79. Talk about misinformation by jscotta44 · · Score: 1

    First, this is a bad hole - that much of the story is correct. However, /.'s comments that you can activate this problem by simply visiting a web site is absolute bunk. You have to download a file to your computer and have the automatic "safe file open" option turned on or you much specifically open the file yourself. You would think a geek site would be more anal and accurate.

    But, this is something that Apple needs to fix. Files that don't match their extension should be handled.

    1. Re:Talk about misinformation by Anonymous Coward · · Score: 0

      >>You have to download a file to your computer and have the automatic "safe file open" option turned on or you much specifically open the file yourself

      You missed the point. Because of the fact that by default Safari downloads and opens ZIP files (without any user interaction) and then OPENS the contents if they have one of the 'Safe documents' file extensions, (as in it checks the extension, not the metadata), all I have to do is get you to visit my site (or any wiki that allows the META REFRESH tag) and I can redirect you to the ZIP file.

      I repeat, you do not even have to click on a link once you open the site.

      If you don't believe me, go here: http://b0n.us/safari/

      I have tested it on 4 seperate 10.4.5 machines and they all ran the shell script with no prompts.

      It is an example script that runs terminal and does an ls. (I would download it and check it in firefox first!) The zip file came from: http://www.4null4.de/110/severe-security-hole-in-a pple-safari-browser/

      And for all you folks that keep saying "it only affects user mode", well duh! But most of the stuff on my system that I care about are ALL MY FILES and my user account can delete them! (Yes I have a back up, but even if you back up every day you could lose a days work.

      When you sysadmins going to learn that on a single user machine, all the value is in the files owned by the user, and the only way they can be protected by the user (or programs running with user priv) is to back them up.

      Jorgie

  80. Didn't work in Mail.app by schvenk · · Score: 1

    I tried this in Mail.app...even modified the script to create a file on my Desktop to be sure...but nothing happened. The JPG script showed up as a file attachment but apparently Mail.app didn't try to display it.

    Hoping that means Mail.app isn't vulnerable after all...

    1. Re:Didn't work in Mail.app by daveschroeder · · Score: 1

      Oh, yeah, Mail.app just doesn't display it and run it on its own...you must still manually click on or otherwise execute it. But, since it appears to legitimately be a simple jpeg image, many users would just click it, at which point Terminal launches and the script is executed.

    2. Re:Didn't work in Mail.app by schvenk · · Score: 1

      Still, way better than what I thought the parent most meant. If Mail.app, in trying to display attached images, executed such a script, then you'd be in a position where you couldn't even view a message without risk. That might have been enough to cause me to switch to Thunderbird.

      As it is, we Mac users just find ourselves needing the same vigilance as Windows users (which many of us probably exercise already) in making sure attachments are legitimate before we open them.

  81. 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 BewireNomali · · Score: 1

      I disagree with you on nothing. However, it doesn't obviate my point, which is that I believe original poster's assertion of coders to be the best programmers as faulty. Clearly, hackers do not supercede the best programmers.

      Great mechanics, with intricate understanding of automotive dynamics, are not automotive engineers, and probably cannot design automobiles. An automotive engineer, however, probably can tinker successfully with his leaky transmission.

      I never said it didn't take skill, time, and/or intelligence to accomplish a hacker's objectives. My point is that it takes less time/skill/intelligence to break code or circumvent security than it takes to design and implement a system. Merely understanding how to code doesn't make you a coder. Understanding a system doesn't put you on par with the designer. This is my point, and you don't refute it.

      --
      un burrito me trampeó.
    2. Re:False analogy by Anonymous Coward · · Score: 1, Insightful

      My point is that it takes less time/skill/intelligence to break code or circumvent security than it takes to design and implement a system. Merely understanding how to code doesn't make you a coder. Understanding a system doesn't put you on par with the designer. This is my point, and you don't refute it.

      I will then. Building code is *easy* compared to circumventing security, because you have everything you need in front of you (documentation, source code, etc).

      Exploiting a flaw in that code requires learning how the code works, either through trial-and-error, or disassembly. Then you have to be able to craft an exploit that takes advantage of it. Some of these are out there already (ex: Aleph1's shellcode) and will just drop in. Sometimes that won't work because you're restricted somehow by the environment you are attacking. You have to discover that also, and modify the exploit, usually in assembly code, to get it working. Finally, the exploits usually require hardware and OS knowledge (x86, PowerPC, Windows, Mac, whatever). And if there is any encryption involved, it may require cryptanalysis as well.

      So I think for the most part, you'll find that writing code is far easier than exploiting it.

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

    4. Re:False analogy by tshak · · Score: 1

      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.

      I agree, but I still think that the OP's point is extremely valid: it is still significantly harder to develop a secure system than it is to break it.

      --

      There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
    5. Re:False analogy by Anonymous Coward · · Score: 1, Interesting
      Bollocks.

      How about another analogy: locksmith vs lockpick. I was taught how to pick cylinder style padlocks by a kid two years younger than me while I was in high school. It was a simple matter of the right tools, a little dexterity and practise. I knew another kid who learnt how to crack the dial-combination style padlocks. All that required some luck, lots of patience and sensitive fingers. In both cases the lockpicker was completely ignorant of the internal design of the lock concerned, and didn't care either.

      When I was a bit older I learnt how to crack DOS games with a hex editor. Yet I could barely code "Hello World" at the time.

      There are some skilled and knowledgeable hackers out there (fewer than you think), but skills and knowledge are not a prerequisite for hacking into a system.

    6. Re:False analogy by xiphoris · · Score: 1

      You're right, I didn't really refute your point. However, I still disagree.

      There have been some pretty elaborate attacks on software. For example, the vulnerability that some colleagues of mine at Rice University found in Google Desktop. They spent a good month analyzing the security of and trying different things on Google Desktop. In the process, they wrote plenty of their own software. Indeed, it would not have been possible to find this flaw had they not been clever engineers themselves.

      There are plenty of other attacks out there, such as cache hit timing attacks, that are very, very complicated -- the idea itself behind that timing attack is insane to me, much less the implementation. (For those attacks, cache hit information was used to extract secret/private keys from inside other applications without having any special privileges!).

      I don't think the situation is simple enough to say that breaking into things is always easier than making them in the first place, even as a generalization. Especially if you include the amount of time looking for vulnerabilities as part of the "circumvention" of one specific flaw, vulnerabilities are quite expensive to find.

    7. Re:False analogy by Anonymous Coward · · Score: 0

      It's not a matter of who's job is harder, it's a matter of who wants it more.

    8. Re:False analogy by springbox · · Score: 1
      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.

      Well, his nephew can also circumvent the car's security system (locking doors) by smashing the window with a cinder block, but that doesn't make him an expert brick maker now does it?

    9. Re:False analogy by rew · · Score: 1

      There are several ways to find a security bug. One that I think is common is: You run a program, and it crashes. If you've got the right security mindset, that immediately triggers: Hey, the program crashes, maybe it has a flaw that can be exploited.

      If something goes wrong, modern programs should display a popup: "can't display page" or something like that. A crash usually means it started scribbling on itself, and that is usually exploitable with the right data-input.

      Attaching a debugger and finding out where the crash happens is the next step.

      Finding a real exploit from there on is not nobel-prize-level work, but also it is more complicated than "stick a scredriver in the moving parts under the bonnet".

  82. Re:Apple, innovative? by hunterx11 · · Score: 1

    I haven't seen this before, but I wouldn't be surprised if it pops up in every Apple-related story on /. now. Better written than "*BSD is Dying," at least.

    --
    English is easier said than done.
  83. Re:My credit card was "compromised" while using Sa by XxtraLarGe · · Score: 1

    :-D

    --
    Taking guns away from the 99% gives the 1% 100% of the power.
  84. Finally... by marshallh · · Score: 1

    Finally, an example of the dangers of 'security by obscurity'.

    Windows took that route, and it looks like Mac OSX could be headed there if they're not careful.

  85. I click the link using safari but... by fusionsquared · · Score: 0

    It downloaded Secunia.mov.zip to my desktop. Thats it. When I hover over the link it says Secunia.mov.zip. Not very mysterious or successful.

    Is this a Tiger only thing? Perhaps I'm too behind the times still using 10.3.9. I can't wait to upgrade!

  86. Re:Totally OT Question by shawnce · · Score: 1

    This is a launch services issue NOT a Safari issue, so it can affect any browser that can download a file followed by the user (or the browser when enabled) openning the file.

  87. Wait a minute...i thought macs just worked?!? by itguru_81 · · Score: 1

    Since when do mac users have to DO anything? I thought it was just an automated experience... having to change a setting sort of undermines the whole thing don't you think? Welcome to the world of windows... Guess Mac really does have windows envy, I'm sure this was intentional just to give their users something to do... soon all mac users will have to learn to mark check boxes, but no worries, 1 step at at time! Whats next? Complex thought processes?

    1. Re:Wait a minute...i thought macs just worked?!? by aftk2 · · Score: 1

      Did you really just register a Slashdot account to post that tirade? Wow.

      --
      concrete5: a cms made for marketing, but strong enough for geeks.
    2. Re:Wait a minute...i thought macs just worked?!? by itguru_81 · · Score: 1

      Nope... been registered awhile... just bored enough to post today... Think about it... a MAC has to check a box and its "see perfect OS"... A windows user has to set a preference to prevent the same problem and its lawsuit time... I just find it ironic...

  88. Mr. Mackey Says by bill_mcgonigle · · Score: 1

    "AUTORUN is Bad, M'kay"?

    I thought we learned this in 1996. I thought Apple learned this with the "Quicktime Worm"?

    Somebody lobbied for this feature and he should be transferred to a non-security related division.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  89. Cause of the problem by Kadin2048 · · Score: 1

    Actually that's not really the cause of the problem.

    The problem here is a combination of two mis-behaviors: one, that the Terminal will still execute a shell script if you double-click on it, even if that script isn't marked as being an executable file; two, that Safari thinks a shell script is "safe" as long as it doesn't start with a shebang line.

    The second is more serious: Safari will only automatically open files that it thinks are "safe," if you tell it to (I'm not sure if this is the default or not). A properly formatted shell script -- one that starts with a shebang line -- is correctly recognized as "unsafe" and not automatically launched. However, a shell script WITHOUT the shebang line is interpreted as being "safe," and thus automatically opened after it completes downloading. Thus, Terminal opens it and attempts to run it in the user's default shell. Since most Mac users use Bash, it's not hard to write a script that will function on almost any Mac OS box out there.

    There are a number of ways to remove the vunerability: disable the "Automatically open Safe Files" feature in Safari is the easiest. I've also heard it suggested that moving the Terminal.app bundle out of the Applications folder will screw up most scrips that rely on absolute paths in order to work, although I'm not sure I trust that. (Or I suppose that you could just change to some really obscure default shell that uses a syntax so different from Bash that a Bash script will never run...)

    This exploit doesn't rely on the user -- at least as I understand it -- to click on anything or be "fooled" by a icon. That certainly still exists, although I'm not sure whether I'd agree that it's a flaw or not. It's simply a consequence of having icons that are editable and don't necessarily reflect the type of file they're attached to. Personally I think the solution to that problem is to make some sort of overlay (similar to the ones used for aliases) for executable files. A few days ago this came up in discussion and someone with a knowledge of the subject said it would be fairly easy to do. That would go a ways in fixing the similar issue in Mail that you described.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    1. Re:Cause of the problem by daveschroeder · · Score: 1

      I'm speaking of the Mail.app and associated social engineering aspects of this vulnerability, not the Safari auto-execution, which I thought was clear from my message. I'm fully aware of how the Safari portion of the vulnerability works. I'm providing an *additional* way this can work.

    2. Re:Cause of the problem by JoeCommodore · · Score: 1
      (I'm not sure if this is the default or not)

      From my frantic adjusting on 10.3 it's on by defaulkt, on 10.2 it looks like it's off by default.

      --
      "Enjoy what you're doing! If it becomes drudgery, you're doing it wrong!" - Jim Butterfield
  90. Old news? by Anonymous Coward · · Score: 0

    Isn't this old news? We were all told to uncheck the open safe downloads box back in 2004.
    http://secunia.com/advisories/11622/

  91. It's the 'virus' stupid... by djrogers · · Score: 0, Troll

    This 'discovery' by secunia is nothing more than a retelling of how the 'first mac osx virus' was spread last week. Nice job secunia - wait for a virus/worm/trojan, get yourself infected, then tell the world how it happened and claim it as your own 'research'. Typical media hype...

    --
    Think outside the... Hey, where'd the friggin' box go?
  92. 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?
  93. Scunia = Chicken Little by catdevnull · · Score: 1

    My goodness! The sky is falling!! The sky is falling!!

    I clicked on it and nothing....,m r ofe4behghg##@@@@@@@ echo "UR 0wn3d b330tch" ; sudo rm -rf /

    --

    I might know what I'm talkin' about, but then again, this is Slashdot...
  94. UTTERLY WRONG. UNSAFE by goombah99 · · Score: 1

    no I tested this as an unprivledged user and the exploit runs. I notice that the exploit may fail if terminal.app is already running. It runs but then fails to open the calaculator.app as promised.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  95. No, this is a new one... by argent · · Score: 1

    The worm was a tgz file that propogated over instant messaging.

    This one is a zip file and opens the calculator to demonstrate an exploit.

  96. How to fix this without a patch by wealthychef · · Score: 1

    According to TFA, "Users can mitigate the threat by disabling the "Open safe files after downloading" option in Safari.". FYI

    --
    Currently hooked on AMP
  97. Proof of Apple's growing market share? by objekt · · Score: 1

    Leaving aside the fact that this is not really as bas as the press would have us think, I guess my Mac-bashing PC friends will stop making that lame joke that "the reason there's no viruses on the Mac is because nobody uses Macs."

    --
    -- Boycott Shell
  98. In fact, since so many things must go just right by blueZ3 · · Score: 1

    to ensure a nuclear reaction, it is quite easy to "break" a nuclear bomb, and extremely difficult to make one. Merely deforming the conventional explosives would be enough, since the "squeeze" required to initiate the chain reaction relies on precise timing and force.

    --
    Interested in a Flash-based MAME front end? Visit mame.danzbb.com
  99. 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.

  100. Good info - Mod parent up! by Anonymous Coward · · Score: 0

    Not sure if "mod up" ever works, but parent deserves it and I don't have points. Knowledgeable non-fud info in an OSX thread for once.

  101. I'm sad by trintron · · Score: 1

    Finally the internet has cought up with OS X. Welcome to the real world. :(

  102. It's the metadata by billpenn · · Score: 1
    Who wouldn't try clicking on a movie icon?

    Exactly, that is why the real problem is that metadata can be used to override the file extension. I looked at the exploit in action, and the problem is that Safari opens a terminal file that has had it's file and creator bits (or whatever they are called now) set to point to terminal, while the extension says "jpg". The solution would be always open *.jpg in preview or whatever the user chooses as the default. Regrettably, this selection is not allowed, as the always open with application selection in the finder does not work that way. Even if you set all non file/creator bit *.jpg files and all Photoshop file/creator bit *.jpg files to open in Preview, when a terminal file/creator bit *.jpg file shows up, it opens in terminal NOT Preview.

    Trust in Steve, he was right when he was getting rid of file/creator bits. The file extension gives a visual cue to the user and the computer of what will be opened and where, allowing file/creator bits to override that leads to the result of users and automated processes not getting what they ask for or might expect.

    Let us consider this exploit with Safari open "safe" files set to ON without file/creator bits overriding the file extension. Hapless user clicks on zip archive containing killer terminal file designed to wipe out the home directory. Safari downloads then extracts the zip, then opens the offending terminal file in, wait for it, wait for it... that is right Preview, and Preview complains. The user is confused because the thing they wanted did not appear. The user goes and double clicks on the killer.jpg file. Again Preview attempts to open it and complains that it is not really an image. The user grunts, and trashes the thing with home directory intact. No problem, no exploit. This is good.

    Now consider that same hapless user with the same killer terminal file, but this time, the file/creator bits override the file extension. The user even listened to their grandchild who said "fear the web, like you fear the reaper" and turn off the open "safe" files option. The user clicks on killer.jpg.zip. Safari downloads the file. The user now goes to the zip file and double clicks. A jpg file appears. The user is savvy enough to look at the extension and thinks, "oh how charming, all those pictures from my grandchild sends me are jpg's this will be something nice." The user clicks on the jpg file, and terminal starts up, her home directory is wiped. The user becomes enraged, turns against technology, moves to an one room cabin, and becomes the next uni-bomber. This is bad.

    Remember it is the metadata babe, and by babe I mean you. (Apologies to Harry Shearer for stealing the babe thing.)

    --William Penn
  103. Re:Apple, innovative? by Anonymous Coward · · Score: 0

    Yeah and it is also very true...Innovative my ass.

  104. BS Disinformation by newzooreview · · Score: 1

    Seems like a disinformation smear is being launched against Apple. Maybe Tiger (and Leopard) are too much of a threat now that they run on Intel?

    These so-called "security holes" or "viruses" are nothing of the sort. They rely on users choosing to open files that they download. These things are not exploiting any deficiency in the system. If you choose to open a file and it contains a script or trojan horse application then you have hosed yourself (not Apple).

    Any Mac user out there who is being into the "now we have viruses/malware/etc." on the Mac frenzy here, at Digg, and elsewhere is just feeding the cycle of baseless fear on this issue. No system will ever be "secure" from users who want to open stuff that is from unknown sources.

    Contrast this with the typical Windows security holes, that allow changes, virus propagation, and malware installation without any permission from the user. Windows is designed to allow corporate IT managers to fully control the computer remotely. As long as this is true, Windows will be vulnerable and insecure. Macs are built around the principle that the user should be in control, hence no security holes except human engineering to trick people into allowing bad code.

    And remember, none of these "critical" security problems has actually damaged anyone's system. This is just BS propaganda.

    1. Re:BS Disinformation by Slithe · · Score: 1

      >> Windows is designed to allow corporate IT managers to fully control the
      >> computer remotely.

      So is *nix. Ever heard of SSH, X11, VNC? I believe Darwin supports those three utilities. Apple has created remote administration tools for Macs.

      --
      ---- "XML is like violence. If it doesn't fix the problem, you aren't using enough."
  105. Worse than the widget one... by argent · · Score: 1

    That one only set up a boobytrap.

    This one pulls the pin on the grenade and releases the handle.

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

    Not to mention:

    1. Stuffit still automatically mounts disk images by default, including "internet enabled" disk images.

    2. Apple still uses the same set of bindings for LaunchServices for opening files from Finder and Safari.

    3. Now Apple's unzipper makes the LaunchServices problem almost moot, by letting the zipfile specify the helper application by path!

    Apple needs to hire a competant security geek and give him authority to issue smackdowns on bad design.

    1. Re:Worse than the widget one... by rahrens · · Score: 1

      "Apple needs to hire a competant security geek and give him authority to issue smackdowns on bad design."

      I couldn't have said it better!

      --
      "Money is truthful. If a man speaks of his honor, make him pay cash." Notebooks of Lazarus Long, Robert A. Heinlein
  106. Because it wasn't Secunia by argent · · Score: 1

    'nuff said. Someone else let the cat out. Secunia just reported it.

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

    Filename extensions.

    1. Re:Two Words: by geoffspear · · Score: 1

      UNIX had filename extensions before DOS existed. I hardly think it's fair to blame Windows.

      --
      Don't blame me; I'm never given mod points.
    2. Re:Two Words: by dustmite · · Score: 1

      Good grief, what ignorant misinformation. UNIX did not have file extensions. There is an attribute for executable content and the filetype is otherwise determined from the contents. Check out the "file" command ("man file"), which has been included in every UNIX since at least 1973: It does not even look at the file extension.

    3. Re:Two Words: by geoffspear · · Score: 1

      The file command doesn't look at extensions, therefore they don't exist? I can write a Windows program that doesn't look at file extensions, too. Poof, they no longer exist, either. Whee!

      --
      Don't blame me; I'm never given mod points.
    4. Re:Two Words: by dustmite · · Score: 1

      Where did I say they don't exist?

    5. Re:Two Words: by geoffspear · · Score: 1
      UNIX did not have file extensions.

      That would be where you said Unix didn't have file extensions.

      Try passing an old version of cc(1) the name of a file that doesn't end with ".c" and see if it "determines from the contents of the file" that it's C source code.

      I stand by my assertion that Unix had file extensions before DOS existed. I never claimed they worked the same way, but they were certainly there.

      --
      Don't blame me; I'm never given mod points.
  108. Re:Not bad unless you are a complete frigging idio by Khuffie · · Score: 1

    I believe the issue from what I remember correctly is that Safari, by default, automatically unzips .zip or .sit files, and if there is a file in there that it deems safe (ie, a jpg or a mov) it would launch it. So it sees the executable file masquarading as a mov and runs it.

  109. Struck by a hole? by Kelson · · Score: 1

    This just goes to show the difference between the real world and the virtual world.

    In the real world, it would be impossible to be stricken by a hole. A hole is the absence of substance. You could strike something with the edge of a hole, I suppose. Or maybe a donut hole.

    Hmm, there's an idea. You could throw donut holes at computers and see what sticks.

    (Hmm, the fact that I'm writing this suggests that I either haven't had enough coffee, or I've had too much.)

  110. Is this new or unexpected? by plasmacutter · · Score: 1

    Every browser has developed these things once in a while, and because of the similar structures across many browsers, the exploits have sometimes been cross browser and even cross platform.

    how does it happening to safari make it different or special?

    --
    VLC FOR MAC IS DYING! IF YOU DEVELOP, PLEASE SAVE IT!!
  111. Golly... by Anonymous Coward · · Score: 0

    Steve Jobs told me my Mac was invulnerable to all exploits...

  112. Malware can hide in ~/Library by argent · · Score: 1

    If a worm or other nastiness hid itself as ~/Library/Internet Plugins/Adfilter.plugin how many people would notice?

  113. Here's some information... by argent · · Score: 1

    They rely on users choosing to open files that they download.

    Not this time. If you have "Open safe files after downloading" enabled (which is on by default in Safari) and are using Apple's unzipper (which is default in Tiger) you just have to hit a web page and you're owned.

    ALSO, even if the "that's an executable" check caught it, "granting permission for an operation requested by a remote site" is not "choosing to open".

    "Open Safe Files" is a handgrenade without a pin. It just went off.

  114. Re:UTTERLY WRONG. UNSAFE by Weedlekin · · Score: 1

    Same here. Ran it as a "standard" (i.e. non-admin) user, and the calculator popped up after
    clicking the link.

    --
    I'm not going to change your sheets again, Mr. Hastings.
  115. I love flamebait by zpok · · Score: 1

    In other news, Windows is good for you, and Linux, ready for the desktop?
    And why not link to Thurott when we're at it?

    Disclaimer: depending on your sense of humour, you may get angry at this, but at least I've been able to get a laugh out of this great post, all by my self!

    --
    I think, therefore I am...I think.
  116. Another workaround by wackymacs · · Score: 1

    Calculator.app did not open for me when I tried the test - this is because I do not keep my apps all unsorted in /Applications/, I have them organized in subfolders such as /Applications/General - this exploit isn't clever enough to know if I've moved Calculator.app, its tied to a specific file path. It's not as serious as everyone is making out, make sure to turn off the automatic opening of "safe" files after downloading in whichever browser you use.

  117. Uhummm.... by Savage-Rabbit · · Score: 1
    Conclusion: remote metadata should not be trusted. This bug would not occur if downloaded files could only belong to their default app.

    Even the humble 'file' command recognizes it correctly as a suspicious item, though not as a shellscript:
    SomeMac:~/Desktop aUser$ file secunia.mov
    secunia.mov: ASCII text
    Even so this should be relatively easy to plug, at least temporarily, by adding a test in Safari and other apps that examines the content of the file it self and not just the the remote metadata. Of course I would expect something more elegant as a long term solution.
    --
    Only to idiots, are orders laws.
    -- Henning von Tresckow
  118. 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)

  119. 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.
  120. Doesn't solve the problem. by argent · · Score: 1

    I do not keep my apps all unsorted in /Applications/, I have them organized in subfolders such as /Applications/General

    The exploit isn't in Calculator, it's in Terminal, but even moving Terminal won't help. Looking around the system I can see quite a few potential candidates that aren't as simply avoided.

  121. Re:Apple, innovative? by hunterx11 · · Score: 0, Troll

    It is true that Apple really invents very little, but what they do instead is to take innovations and package them in a form available to (and desired by) consumers. Apple did not invent the GUI, nor USB, nor Unix, nor the mp3 player, nor online music distribution, nor home movie editing. However, they were the first to deliver some of these thing consumers (GUI, USB), and are the most successful in the rest. Edison didn't come up with the light bulb, nor Bell with the telephone, but we recognize their accomplishments. "Innovating" is probably an inaccurate term, though; I think, "pushing the envelope" would be better.

    --
    English is easier said than done.
  122. OK, let's be accurate. by argent · · Score: 1

    The problem happens when you choose to download a file from a web site.

    1. Following any link will "choose to download a file".
    2. There are a number of ways websites can "force you to choose" to download a file.

    There is a problem in Safari. There is a problem in the fact that Safari uses LaunchServices. There is a problem in the fact that Apple's unzipper can override LaunchServices. There is a problem in the fact that Apple's unzipper automatically executes code.

    EVERY ONE OF THESE PROBLEMS must be fixed, separately.

  123. Account management by David+Rolfe · · Score: 1

    > All the more reason to not do your everyday work in an administrative account.

    In this same vein, this exploit could never affect my wife even if Safari was "opening safe files" -- I have Terminal turned off for her account. She'd know better anyhow (Hi, honey!).

    There you go again -- using system granularity to mitigate the attack surface. It's painfully easy to turn off Terminal for user accounts. If you are the sysadmin for your family you should be doing this. What interests me is if your tricky payload could be an Applescript. It's trivial to wrap a bash script in an Applescript (i.e., can you get applescripts past the safe-file filter with rename/metadata tricks).

    (Anyhow, we all backup to offline storage, right?)

    --
    Read Heinlein's 1953 Revolt in 2100, now more than ever.
  124. "ASCII TEXT" is not "suspicious" by argent · · Score: 1

    I would expect something more elegant as a long term solution.

    Like, removing "Open Safe Files After Downloading", removing the way the unzipper handles metadata, and removing automatic opening of files.

    1. Re:"ASCII TEXT" is not "suspicious" by ShavenYak · · Score: 1

      Can someone who's been using Macs longer than I give any reason why you would need to store metadata in a .zip file anyway? Shouldn't content that requires the metadata to be intact be transferred in a disk image?

      --

      Hey kids, there's only 5 days left 'til Yak Shaving Day!
  125. I think you mean 1997 by argent · · Score: 1

    I think you mean 1997. That's when Active Desktop showed up.

  126. Security flaw? I don't get it by Anonymous Coward · · Score: 0

    All of the latest "Security Threats" aimed at OSX seem to be nothing more than "Lets get them to download a file and then run it". My five year old will tell you, if you can't confirm the source of a file don't run it.

    I can create a simple .exe for Windows that will run the Calculator app.

    Where are all the cool, machine-disabling, zombie-maker, virii for OSX? I feel let down by the cracking community at large. :(

  127. My guess would be: by Anonymous Coward · · Score: 0

    Because Apple cares more about fixing their security than they do about attacking people who find flaws in their security.

    (This is just my guess. Apple may prove me wrong in the next couple days.)

    The reason why Secunia is not being flamed here is that flaming people for releasing information about a bug so obvious as this is stupid. The only reason anyone flames for information release is because their desire to defend Microsoft overrides their common sense. Microsoft isn't here to defend, therefore not so much on the flames.

  128. Re:Transcript of recent telephone phone conversati by Anonymous Coward · · Score: 1, Funny

    On behalf of slashdot, please stop posting. You are a fucking annoyance, you're not funny, you're not insightful, and knowing you've posted a comment is like hitting my dick into a pile of broken glass with a pick axe.

  129. Mac OS X Server vunerable as well. by nexcomlink · · Score: 1

    I currently tried the demostration and it only works with the built in Mac OS X zip archiver. It fails to unzip in stuffit expander. Also you are presented with a .mov file which is actually just a shell script which executes the calculator application but you can modify it to open almost any application. So this is not really a safari problem but more of a zip archiver problem which does not properly check the files being unzipped and even if it where unzipped the user will need to click on it since it does not really take any administer privilages to open a application I wonder how much access can you really gain from shell. If it requires a password and your terminal is launched then this as well like both other worms are limited to the damage they can really do. But that's just my 2 cents.

    1. Re:Mac OS X Server vunerable as well. by CottonEyedJoe · · Score: 1
      "I wonder how much access can you really gain from shell."

      How about deleting all your files. OSX is highly scriptable and with AS studio, Automator etc, more accesible than ever. I fear that Trojans will become a popular method for "evil doers" on OSX. This is not a problem you can explain away with "it isnt safari's fault".

      Note: I'm a fanboy posting from a Mac with safari (which now has open trusted files unchecked). I'm not some naysaying windows nurd looking to put Apple down.

    2. Re:Mac OS X Server vunerable as well. by nexcomlink · · Score: 1

      Well I was trying to say the shell script not the actual shell. But anyway the max damage it can do is erase the files on that account but the rest of the system would remain untouched. I was just trying to point out that it's not an issue with safari but with the zip archiver built into mac os x. Either way it's still from Apple so I am not trying to pass the blame to anyone. I do believe as well that that would be the way OS X is going to be targeted but again it's hard to keep a balance from ease of use and security.

  130. THERE ARE NO SAFE FILES by argent · · Score: 1

    Safari's fault for attempting to execute an unsafe file

    Yes, it's Safari's fault for attempting to execute an unsafe file.

    Safari should treat all files as unsafe files.

    Files should only be opened by the web browser itself, or by plugins and applications that are EXPLICITLY registered for use BY A WEB BROWSER and are thus declaring they do not treat any files as "safe".

    OS X's fault for executing files themselves instead of opening them in the appropriate application.

    Two steps missing here.

    1. The unzipper's fault for accepting metadata that specifies the location of the handler for a file.

    2. The unzipper's fault for opening the contents of the zipfile automatically.

    After it had done that, OS X was doing the right thing. LaunchServices was told to run Terminal.app and pass it the name of a command. Terminal.app opened bash (as it should) and passed it the command. Bash executed the command passed to it.

    There are all kinds of other scenarios I can see for getting to the same place, once the three conditions specified above (open safe files, poorly defined metadata, automatic execution) are satisfied. Once the OS (LaunchServices) got involved, the exploit was already over.

  131. Driveby downloads. :) by argent · · Score: 1

    Can someone remind me what is the point of a browser allowing "driveby downloads" and automatically launching the content of the download?

    "Microsoft does it"?

    (nice phrase, by the way)

    Is it too much to ask for normal users to double click on a file to launch it?

    I don't know, but somehow just suggesting to some computer users that they make ONE EXTRA CLICK is enough to get you flamed for being a security nazi.

  132. You're correct, and that IS scary by alispguru · · Score: 1

    I missed the secunia.mov file because my desktop is a mess (and it's usually completely covered by emacs X windows), but it's there and just as innocuously evil as you said.

    Get Info on secunia.mov says it's a Terminal document. So apparently you can hard-code OS X metadata in a zip file, and that metadata can differ from the extension's. Yecch!

    --

    To a Lisp hacker, XML is S-expressions in drag.
  133. OH NO! by fithmo · · Score: 1

    OH NO! My outrageously expensive false sense of security!!!

  134. PDF workaround and solution by argent · · Score: 1

    The point for me is PDF.

    PDF viewers do not trust that PDFs are "safe". opening a PDF in a PDF viewer isn't opening a "Safe File", it's opening an "Unsafe File" in a safe application.

    Safe applications could be registered EXPLICITLY as handlers for "Unsaf Files".

    For now, Schubert|it's PDF Browser plugin seems to be the best workaround.

    The solution would be a "WebServices" counterpart to "LaunchServices", for handlers of "Unsafe Files", and Safari could remove the "Open Safe Files" option completely.

    1. Re:PDF workaround and solution by lee1 · · Score: 1

      For now, Schubert|it's PDF Browser plugin seems to be the best workaround.

      I'm not clear why a "workaround" is needed here, given what you've pointed out. Is there a danger in having Acrobat (reader) automatically open a PDF? Also, the last time I tried this plugin it was pretty good, but didn't handle enough of the PDF spec for me to want to use it.

      The solution would be a "WebServices" counterpart to "LaunchServices", for handlers of "Unsafe Files"

      I use a System Preferences plugin called "RCDefaultApp" (http://www.rubicode.com/Software/RCDefaultApp/) that lets you make arbitrary associations between file types and applications. Is that what you mean?

    2. Re:PDF workaround and solution by argent · · Score: 1

      Is there a danger in having Acrobat (reader) automatically open a PDF?

      No.

      There is a danger in having Safari trust LaunchServices to open a PDF, assuming that LaunchServices will make the same decision as to the type of the file that Safari did. So, for example, if someone could create a PDF that would appear as a file used by a different and unsafe application to LaunchServices, there would be a danger there. Note that this attack would probably work with a PDF-that's-really-a-script embedded in a zip file as well as a Movie-that's-really-a-script.

      Safari (or some component that Safari uses) should have its own database of applications that are trusted to handle files, and a way to handle them that doesn't involve calling LaunchServices.

      "RCDefaultApp" [...] Is that what you mean?

      No. That's a tool to let you change the configuration of LaunchServices, it won't help if someone manages to trick or override LaunchServices choice (as happened here)... I'm talking about a completely parallel mechanism that doesn't involve LaunchServices at all. This could be implemented as a separate "WebServices" API, or a flag passed to LaunchServices that would tell it to use the "Safe Handlers" database.

      Presumably RCDefaultApp or some similar tool would let you edit and modify THAT list of files as well.

  135. Good news/bad news. by argent · · Score: 1

    Shouldn't content that requires the metadata to be intact be transferred in a disk image?

    The good news is "Yes".

    The bad news is that you don't want Safari or anything Safari calls automatically mounting disk images either, because the metadata in disk images has also been involved in attacks.

  136. Makes it harder for malware to hide. by argent · · Score: 1

    What could be done - I don't know what, frankly - to prevent then propagation of trojans (with or without user assistance) between sandbox levels?

    Well, not running as root removes a lot of ways for malware to hide and propogate later.

    It makes it harder. Not impossible, but harder. It's good security, but it's not a magic bullet. really, there are no magic bullets, you have to remember to lock your front door *and* your car door *and* your back door *and* your trunk. :)

  137. The Simple Fix by podperson · · Score: 1

    OS X (as of 10.4? 10.3.?) has a very good, simple security feature which causes a dialog box to appear the first time a program is run (this program is running for the first time -- are you sure?).

    It seems to me that this needs to be implemented for executable scripts. It's a simple fix and would deal with all the obvious points of entry -- you're trying to feed stuff to a shell from a place heretofore unseen; confirm it with the user.

    Yes, the bug itself needs to be fixed (with the archive handling functionality -- oh while they're at it can they support late model zip files? thanks) but the OS should also treat ANY script with as much suspicion as it currently treats executables.

  138. It's not the FILE that's safe or unsafe... by argent · · Score: 1

    Safari gets the zip file, and sees it contains a JPG, which is "safe" because JPGs can't spread a virus.

    See, that's the problem.

    It's not the FILE that's safe or unsafe, it's the application that opens the file.

    If the file is a JPG, Safari opens it with ... Safari, which doesn't trust the contents of files, and is therefore safe.

    If the file is a zipfile, Safari opens it with ... LaunchServices, which doesn't know anything about "safe" or "unsafe". Safari *believes* that LaunchServices is going to open the zipfile in something that's safe, but it doesn't *know* that. As it turns out, on Tiger, it's not. It was closer to safe on Panther (but there were still problematic issues in Stuffit), but it's not safe on Tiger.

    If the file is a PDF, Safari opens it with LaunchServices, which opens it with Preview. Preview doesn't trust PDFs, so it's safe. BUT not because the file is a "Safe File", but because preview is a "Safe Application". And LaunchServices doesn't have any real reason to care if an app is "safe" or "unsafe".

    Apple needs to create a registry like LaunchServices for "Safe Applications" to open files with, and let users explicitly disable applications they don't want to trust.

  139. Re:Odd... by cypherz · · Score: 1

    "The more secure you say it is the more people will want to find a way to break in."

    Hey everybody! All my shit is totally insecure!

    --
    This sig kills fascists.
  140. It's not the FILE that's safe or unsafe... by argent · · Score: 1

    It's not the FILE that's safe or unsafe, it's the application that opens the file.

    If the file is a JPG, Safari opens it with ... Safari, which doesn't trust the contents of files, and is therefore safe.

    If the file is a zipfile, Safari opens it with ... LaunchServices, which doesn't know anything about "safe" or "unsafe". Safari *believes* that LaunchServices is going to open the zipfile in something that's safe, but it doesn't *know* that. As it turns out, on Tiger, it's not. It was closer to safe on Panther (but there were still problematic issues in Stuffit), but it's not safe on Tiger.

    If the file is a PDF, Safari opens it with LaunchServices, which opens it with Preview. Preview doesn't trust PDFs, so it's safe. BUT not because the file is a "Safe File", but because preview is a "Safe Application".

    But... LaunchServices doesn't have any way to tell if an app is "safe" or "unsafe", so it's possible for an unsafe PDF viewer to override Preview.

    Apple needs to create a registry like LaunchServices for "Safe Applications" to open files with, and let users explicitly disable applications they don't want to trust. Preview could be registered there, along with other applications that are designed to deal with potentially untrusted content.

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

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

    --
    -- Boycott Shell
    1. Re:Solution found! by argent · · Score: 1

      Which means you'll leave "Open Safe Files" enabled, keep using BOMArchiver to unzip files... and get caught when the bad guy uses [REDACTED] or [REDACTED].

  142. mod parent +5 Insightful ! by javaxman · · Score: 1
    This is very very like naming a Windows file foo.jpg.vbs... and I'm not sure, but I think this has always been around. In OS X, both the file extension and the icon are independant properties of the application the file opens with.

    The default setup for OS X is to not even show the file extension, isn't it ? The file extension in this 'attack' is almost a side note.

    Most importantly, I think it's a good thing to notice that there's no real fix possible to this issue. Always using Lauch Service's default file mapping ( doing what windows does, essentially ) just 'limits' the problem to files with .jpo or .jpg._weirdextension_ extensions, and users who don't 'show extensions' by defaults are still going to go by the icon and double-click that file... a virus-scanning program won't detect these files, they're *data*...

    The only 'ultimate' workaround to this would be what, to prevent any application from running a script as part of it's data file?

    Ultimately, this just boils down to not double-clicking on random files loaded off of the internet, and keeping good backups as the only real way to protect your data... it sucks, but it's reality...

    Not running as an Admin user is a good idea, too, but that just protects your system files, and it's the user data files that are most precious to your typical user...

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

  145. Naw by Anonymous Coward · · Score: 0

    Fortunately the Mac is 100% completely secure against virus, trojan or worms. So this flaw isn't really an issue.

    1. Re:Naw by mr_zorg · · Score: 1
      Fortunately the Mac is 100% completely secure against virus, trojan or worms. So this flaw isn't really an issue.

      While you're trying to be funny, there is an element of truth to this. Yes, this can trick a user into running arbitrary code, but that code will not be able to modify any system files without prompting for an admin password because of OS X's security. That is a critical distinction. The only thing such code could do without alerting you to its presence is wipe out YOUR user data. The OS itself would be unaffected. Other users files would be unaffected. Therefore, this could never be used to spawn a virus or worm. Only one-off malware...

    2. Re:Naw by Anonymous Coward · · Score: 0

      So you package it as an app that's disguised to look exactly like Software Update, and innocently inform the user that a new update is available, please enter your admin password.... Boom! Software+Social engineering wreaks havoc. It's a deadly combination, folks!

    3. Re:Naw by mr_zorg · · Score: 1

      Admittedly, this could work on the novice user. Hopefully one could be educated that anything looking like a software update should not originate on any website or email, but only through the Apple Software Update utility. While there are no guarantees in life, the truth is this kind of thing required much less effort on Windows as compared to OS X. Heck, even my wife (who pretty well knows better about such things) managed to get infected with spyware on her Windows computer, despite running Firefox, anti-spyware and anti-virus utilities. And we know darn well she didn't download and double click on some JPG file that actually ran a program...

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

  147. Stupid Virus has me working OT by Ace26_805 · · Score: 1

    I work for a college and today, after a 3 day weekend, every one of our "test" Macs we have in our IT shop for learning/troubleshooting has been infected with that Inqanta virus or whatever its called. So far almost 1/2 our Macs on campus got infected (while the campus was closed, no one was even using the Macs as they were locked up) but luckily we have Sophos AV installed on the Macs and it picked em all up. Still have to click 20+ times per Mac to clear the virus warning messages and deal with every phone call from users about it. Funny thing is we still have some Mac teachers who "swear on their life that Macs do not, and can not get a virus" lol.

  148. Attacked by a worm, not infected by a virus. by argent · · Score: 1

    First, that was a different exploit and attack than this one.

    So far almost 1/2 our Macs on campus got infected (while the campus was closed, no one was even using the Macs as they were locked up)

    How did someone run the infected app while the Macs were locked up?

    I suspect that the Macs were *attacked*, but the worm didn't get a chance to run... it was sitting there waiting for someone to step into the booby trap when the AV software detected it.

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

  150. Spot on !! by Macka · · Score: 1


    I'm right with you. I disabled the "Open Safe Files" way back when I first discovered it was automatically opening dmg's I'd downloaded. I remember being quite shocked that that was the default behavior.

    Apple have made a classic security gaffe here ... there is no such thing as a "safe file". And assuming its so is just setting the stage for a disaster waiting to happen.

    After all the historical problems the Windows world has had with auto executing this and that, you'd have thought that someone at Apple would have swallowed a clue pill and had the common sense to take that option out!

  151. Left Click? by Vollernurd · · Score: 1

    The Secunia test asked me to "left-click". What is this "Left-click" of which you speak? I only trust one mouse button, you insensitive... oh never mind.

    --
    Smokey, this is not 'Nam, this is bowling. There are rules.
  152. Doesn't work on my machine.... by Anonymous Coward · · Score: 0

    I went to the website, and took their test. My machine is not vulnarable (Did not launch the application)

    Running Safari 2.0.3 and Mac OX 10.4.5

    1. Re:Doesn't work on my machine.... by La+Camiseta · · Score: 1

      Then odds are that you've disabled the "open safe files" option in the general tab of preferences. You have to have that activated in order to be vulnerable.

    2. Re:Doesn't work on my machine.... by Anonymous Coward · · Score: 0

      Doesn't work on my machine either...and I didn't disable the "Open Safe Files" option. Sounds like a non-starter to me...just more FUD.

      Has anyone tested this on a mac and had it work as advertised?

    3. Re:Doesn't work on my machine.... by La+Camiseta · · Score: 1

      Yeah, it happened for me.

      10.4.5

  153. Sophos was giving false positives about Inqanta by hayne · · Score: 1

    Apparently the Sophos anti-virus software had a problem in its signature files that resulted in false-positives relating to Inqanta. Sophos has since (a few hours ago) issued an update that fixes this problem.

  154. 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!
    1. Re:Yes, bug by hackstraw · · Score: 1

      there is not supposed to be any auto-run (as opposed to auto-open of non-executable media files

      BUT, it it executes executable files ...

    2. Re:Yes, bug by Arru · · Score: 1
      BUT, it it executes executable files ...
      ...and that would be the bug.
      --
      There's no 'on' position on the Slacker switch!
  155. To change some badness... rename Terminal.app by CBravo · · Score: 1

    Within the zip file of another example, there is a file called Secunia.mov which starts with /Applications/Utilities/Terminal.app. Terminal.app is by far the most powerfull tool in the system, so any bad guys should/would use it.

    Terminal.app can be easily renamed to something different. Most people never use it (i think) and it can be easily undone.

    --
    nosig today
    1. Re:To change some badness... rename Terminal.app by grikdog · · Score: 1

      >Terminal.app is by far the most powerfull tool in the system, so any bad guys should/would use it. Au contraire! The most powerful tool in the system is /bin/sh, or any other executable beastie which can spawn a subshell. You might as well blame Unix itself, which was designed in an ivory tower by academics and implemented by graduate students who instantly subverted the specs. The issues are pretty much well-understood and pretty much worked-around by everyone else. Maybe Apple should buy a book.

      --
      ``Tension, apprehension & dissension have begun!'' - Duffy Wyg&, in Alfred Bester's _The Demolished Man_
    2. Re:To change some badness... rename Terminal.app by argent · · Score: 1

      There are other components that would do just as well and are harder to get away with moving.

    3. Re:To change some badness... rename Terminal.app by CBravo · · Score: 1

      I guess I wasn't thinking strait at the moment of posting.

      --
      nosig today
  156. Dirty Little Secret by Anonymous Coward · · Score: 0

    I view "Mac" pages on my windows box and "windows" pages on my mac (still on the same box, just with vnc) - the exploits targeting each platform do not run on the opposite platform.

    Yeah, it's weird, but I laugh at how many times I've seen failed attempts.

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

  158. Skill of hackers by Z34107 · · Score: 1

    Clearly, hackers do not supercede the best programmers

    It all depends. Not checking buffers and blindly blitting bits everywhere is a sign of a novice programmer, and how many programs are broken - the difference between using strcpy() and strcpy_s(). Not a lot of skill on the programmer. Finding the overrun from a decompiled binary is infinitely more difficult, much less finding a way to exploit it. Much more skill on the hacker's part.

    Of course, the reverse is also true - programming the Windows GDI to work with nearly every conceivable hardware, software, and driver configuration was/is a work of great difficulty. Yet, how skilled of a person did it take to put malevolent, non-aborting code in AbortProc() and cause the whole WMF scare? Not very. You were supposed to put code there; it just hadn't occured to anyone, hacker or otherwise, to put something evil there. Much more skill on the programmer's part.

    Guess my point is "it all depends." Creation is not necessarily a greater work than destruction in coding.

    --
    DATABASE WOW WOW
  159. Safari goes a step further by superposed · · Score: 1

    The key difference between Safari and Camino, when both have "Automatically open safe files" turned on is this: When Camino downloads an archive, it opens it, leaving the contents in your download folder. Safari goes a step further: it removes the archive, leaving only the contents, and then (this is the key point), if the archive contained only one file and the file is deemed "safe," Safari will open that file.

    This works well for some things, like recursively opening .tar.gz files, or maybe for opening some safe files. But Safari doesn't seem to be asking the operating system how the file will be opened -- it just assumes that if the extension is "safe," then the file must be safe. However, since these archives can hold metadata that will change the way the file is opened, this assumption can be incorrect (as shown in this exploit).

    This couldn't happen with an unarchived file downloaded directly from the Internet, since the only metadata is the file extension. But when the file is stored in an archive (or e-mailed via Apple's Mail.app), extra metadata can go along that makes the file open with a different application (e.g., Terminal). This makes it possible for a web page to induce Safari to open any file it wants, without any user action, other than going to that web page.

    If I were Apple, I'd redesign the code in Safari that checks what files are really "safe" to open. With their dual metadata system, they need to use the same routines everywhere to identify how a file will be opened, and avoid this kind of mix-up.

    I would also change the file-opening code at the system level to give a warning anytime an executable-type file is opened, if it has a misleading extension. This would probably go in the same place as the code that currently prompts you when you open a document that will cause an application to open for the first time.

  160. Anon Coward: those are not "safe files" by argent · · Score: 1

    Do you mean to say that HTML, CSS, JavaScript, JPEG, GIF, PNG, Flash, and PDF aren't safe?

    Yep. None of them are "safe files".

    They're files that are typically displayed by "safe applications". Files that claim (to Safari) to be safe types but aren't... well, that's exactly the problem we have now.

    It's OK for browsers to open (directly or through a "safe applications" API like internet plugins, not through LaunchServices) handlers that claim to safely handle certain file types. It's NOT OK for browsers to treat some file types as "safe files" and hand them off to an unsuspecting desktop shell.

  161. What's worse... by rulethirty · · Score: 1

    What's worse than finding a whole worm in your Apple? Finding out that the worm got their by simply visiting a website through the platforms default browser. Ouch! Old joke, new spin! Thanks Bil.. I mean, Steve!

  162. Doesn't work with StuffIt or unzip by macserv · · Score: 1

    If you use something other than Mac OS X's "BOMArchiveHelper" (great name... how about "Archiver" or something?) to extract the file's contents, you end up with a "__MACOSX" folder which contains the naughty bits. Unfortunately, on new versions of Mac OS X, BOMArchiveHelper is what gets launched by default when you double-click a .zip file.

  163. Re:Not bad unless you are a complete frigging idio by ATPTourFan · · Score: 1

    I did the same. Created a new "standard" non-admin acct. Opened Safari and downloaded the link. My system handles .zip with Stuffit Expander. Calculator DID launch through the shell script.

  164. Won't happen if... by Anonymous Coward · · Score: 0

    you use unzip to open zip files. Unzip ignores the __MACOSX folder (and puts it alongside the rest of whatever you unzipped.).

    BOMArchiveHelper doesn't ignore it.

  165. Remember the Auto Play Worm? by Anonymous Coward · · Score: 0

    That was also easy to defeat. You just turned off the Auto Play in QuickTime.

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

  167. Because Apple has known about this for Five Years by J.+Random+Luser · · Score: 1
    There was comment on the security pages when people looked at MacOS 10.0: OMG they haven't FTFF (Fixed The Fscking Finder) Worse Apple decoupled the executing app for files from the type/creator metadata, which had to stay for backwards compatability with Classic. The desktop icon and filename extension (if any) will usually follow the type/creator. You can change these with /Developer/Tools/SetFile. But the executing app. is determined from other metadata.

    Even worse: Welcome to the World of Unix. Any File can be Executable. Open your favorite text editor. Type in
    /Applications/Calculator.app/Contents/MacOS/Calcul ator; exit

    Note there should be a Return at the end of that line, & /.'s submit script has thrown an unwanted space in the middle of the line. Now save it on your desktop as strange.txt Select it, GetInfo, change Open with... to Terminal.app. Now comes the tricky (for Mac weenies ;-) part: in a Terminal session,
    sudo chmod 755 strange.txt

    You have just recreated the Secunia PoC, no zipping, no downloading, mail it to your friends as a joke - no don't, that's just stupid. Apple have had 5 years of being stupid on our behalf about this...
  168. LaunchServices' Left Hand... by macserv · · Score: 1

    ...doesn't know what its right is doing. If you get info on the file, look at its Kind in List view, or right-click it and hover over "Open With", the system definitely knows that this file will open with Terminal.app. It is getting confused, choosing to display the icon for the default app for that extension, instead of what LS is getting from the resource fork.

    Indeed, you can change the extension to whatever you want (.txt will give you a TextEdit Text File icon), but the file's 'usro' resource decides what application will actually open the file.

  169. Re:Odd... by abdulla · · Score: 1

    It's what happens when you're homeschooled.

  170. Reply 410 Stating Obvious ... and some insight by ta+ma+de · · Score: 1

    My OSX laptop recently blew-up. I thought it was a virus. I found previously invisible executables all over the place in the back up file. I suppose some one could use this shell script to save source code to disk, compile, execute, destroy. In my case DNS was broken. My machine wouldn't resolve a DNS lookup in safari or mail. However I could call lookupd in the terminal just fine. It was really weird. I gave up trouble shooting and installed sys from scratch.

  171. Re:Not bad unless you are a complete frigging idio by argent · · Score: 1

    My system handles .zip with Stuffit Expander.

    Which is not standard for Tiger. :)

  172. Paranoid Android 1.3 by alphasubzero949 · · Score: 1

    Paranoid Android has been updated in order to deal with this exploit. More info here. Of course, you need Unsanity's Application Enhancer (APE) for this to work.

  173. Isn't this old news? by Anonymous Coward · · Score: 0

    I am somewhat surprised that this made the news..again. I remember when the Open Safe 'exploit' was reported some time ago. I haven't used Safari in over a year so it was probably back in 2004. Actually I don't count convenience settings as major security flaws, but I did follow the advice at the time and disabled that feature. I personally think its a shame that the press and security firms like to use sensationalism to drum up business for themselves rather than try to help to educate users track down the perpetrators who are claimed to be all around us. In my 20 years computing using CPM, DOS, UNIX, Windows, OS/2, Linux, & OSX I have only been hit by two.. count them two.. viruses (both in Windows). Most of the damage I have seen has been caused by unpatched (Windows) machines, lack of firewalls and email attachments. Perhaps it is time to concentrate on educating users rather than crowing about the dangers of life in the internet age.

    >> A foolish faith in authority is the worst enemy of truth - A.Einstein

  174. Duh. by skinfitz · · Score: 1
    Lets see...

    • Apple move to an Intel architecture
    • OSX is compiled for Intel architecture
    • Unsurprisingly, patches appear for OSX to make it run on generic PC hardware
    • World + dog 'obtain' OSX and tinker with it to see what it's like
    • Haxx0rs that previously could not justify the $$$ to buy a Mac just for the privilege of hacking it, suddenly find that a spare partition is all they need to start hacking OSX. Apple even provides a free development environment (xcode)
    • People are confused as to why we are suddenly seeing a raft of OSX exploits?
    • This is only the beginning.
  175. Actually, a *bug* in Terminal is what does it... by javaxman · · Score: 1
    Ohh... I know I made an earlier comment here, but I just learned a little tidbit which is actually very important.

    The real bug is in Terminal.app - it runs scripts even if they don't start with the shebang ( #! )... and that #! is what Safari and Mail would ( and, to my surprise, do ! ) look for to spot a script and warn the user that this file is an executable of sorts.

    So, there is a real, live, no-good bug with security implications here... it's just in Terminal.app. The general problem of scripts as data doesn't go away, but such things ( outside of maybe MS Office macros ) tend to be far and few between, and are very much application-specific security issues that users of those apps will, I suppose, just have to be aware of...

  176. OS X is Unix... by leonbrooks · · Score: 1

    ...and trusting wild content is not a particularly clever survival strategy, so why doesn't OS X use file magic, like file(1), to check that incoming files are what they claim to be?

    --
    Got time? Spend some of it coding or testing
  177. OSX 10.2.8 not vulnerable? by jhesse · · Score: 1
    --

    --
    "I have also mastered pomposity, even if I do say so myself." -Kryten
    1. Re:OSX 10.2.8 not vulnerable? by argent · · Score: 1

      Regardless of whether this particular exploit works on 10.2.8, if you use Safari on any version of Mac OS X you should still disable "Open Safe Files After Downloading" to prevent any related attacks that may be devised that do work on 10.2.8...

  178. I can't recreate by ne0nimda · · Score: 1

    I understand that you can double click on the "mov" file once you download it and unzip it and it will open calculator. it is of note, however, that if you right click the icon, OS X will tell you ahead of time that the recommended application is teminal based on the contents -- that's because the application chosen to run a file is based purely on the contents of the file, not the extension. Renaming "myVirus.app" as "index.html" is social engineering (note that if the file were an actual application, you would still get a warning in 10.4. You didn't with this because it was a shell script wich is technically not an application... whether that's a secure idea or not).

    The supposed ability of this file to automatically open and execute upon download was what caught my attention. I work at a computer store and tried the feasability demo on an eMac, iMac G5, PowerMac G5, 12" and 17" PowerBook, and a 14" iBook running 10.3.5, 10.3.8, or 10.4.3-10.4.5 - none of these computers have any security software installed and none of them were "vulnerable" to this. They all downloaded a zip file that did not automatically unzip. The file then had to be unzipped and double clicked - no surprising news there.

  179. "Little Snitch" by Anonymous Coward · · Score: 0

    This may be a good time to point out an OSX application that will let you know any time a program tries to make an outgoing connection (even in the background), and to deny said program the ability to do so if you choose...

    http://www.obdev.at/products/littlesnitch/index.ht ml

    It won't protect you from an exploit like this. But it would (AFAIK) let you know if malware was trying to "call home."

  180. I knew there was a reason... by ummit · · Score: 1

    ...I left the "Open 'safe' files after downloading" option turned off.

  181. Would someone explain to me ... by ScrewMaster · · Score: 1

    how you can be struck by a hole?

    --
    The higher the technology, the sharper that two-edged sword.
  182. Washing your hands by Anonymous Coward · · Score: 0

    Not running as root, requiring the admin password to access system files even from an admin account, having a good auto-patch system... these are all the equivalent of washing your hands. You can still catch something, sure, but you're a less likely to, and you're a *hell* of a lot less likely to pass something on.

    Simple measures like these are the difference between our world, where a bug goes around the office, and the worlds of the past in which cholera, plague, tb and the rest ran rampant.

    Right now Windows doesn't wash its hands, doesn't use a condom, and fucks 85% of the computers out there. It suffers epidemics.

    Some people will tell you that eventually the Mac platform must have an epidemic if its marketshare increases. Ditto linux. This is like saying that you're sure to catch the avian flu eventually if you move to a city instead of a farm. It's more likely, but it's far from certain.

  183. A Terminal Fix. by TomAnthony · · Score: 1

    Disabling the auto-open in Safari is all well and good, but opening a file from mail is still a problem, as are the other ways people will think up to send this.

    Here is a much better solution for now:

    1) Open /Applications/Utilities/Terminal
    2) Select "Preferences..." from the "Terminal" menu
    3) The top item lists 2 options. Select "Execute this command" and enter:

    /sbin/nologin


    4) Close Preferences and quit Terminal.

    That will prevent malicous code from auto-running, be it auto-opened from Safari, opened from Mail or double clicked from the Finder. You are done and protected for now.

    If you are someone who uses Terminal, then you will want a way to open Terminal windows. In which case do this before you do the above steps (just revert to the first option of 2 in the Preferences window if you already did it):

    1) Open a new Terminal window.
    2) Select "Save" from the "File" menu.
    3) Save the file as "default" or your preferred name.
    4) Open "Preferences..." from the "File" menu.
    5) Check the "Open a saved .term file when Terminal starts"
    6) Use the "Select..." button to save your file from step 3

    Now Terminal with give you a functioning Terminal window when it launches (but still won't running those nasties). If you need another window just go File>Library>default.

    I've tested this with Safari, Mail and Finder versions of 2 exploit samples, and it worked nicely.

    --
    Tom Anthony
    1. Re:A Terminal Fix. by dayhox · · Score: 0

      Following the above doesn't completely remove the Terminal's abilities. Following the instructions above and then running an AppleScript with the do shell script command, allows command execution behind the scenes without the need for Terminal to activate on the users desktop.
      d

      do shell script "defaults write com.apple.Safari AutoOpenSafeDownloads 0"

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

  185. Darn, it still doesn't work for me by Anonymous Coward · · Score: 0

    I have OSX 10.2.8 , firefox 1.5.0.1 and Safari 1.0.3(v85.8.1) and neither were able to make my calculator appear. firefox asked me if I wanted to download the file.mov.zip and safari automatically downloaded it... It appears to my system as a zip file, and wants to use stuffit to open it. I suppose if I decided to unstuff it it may work...let me see...awww still no good. It unstuffed into a folder containg a folder called "__MACOSX " and the quicktime movie "Secunia.mov" I looked at each file and neither let me see a preview. The "__MACOSX" just opened up to show me an empty folder. and the movie gave me the error that quicktime couldn't play this file.

    So how can I make your hacker script open my calculator? I continue to not worry about mac malware. If I have to open your file, and then reprogram it do do the damage, then due to my laziness and unwillingness to damage myself I guess I am safe.

    My system also gets a perfect score over at Shield's up. All my ports are stealth.. oooooohhhhh. stealthy.

      But by far the neatest part of mac os is that when I visited a pal's house , full of their dirty windoze machines, I was able to see their entire file sharing zones or whatever. Yet they couldn't figure out how to share files among themselves. I guess it takes a mac to make a windows LAN work.

    Apple may have dirty lawyers and stupid business practices, but their system is better than windows. I never worry about "defraggin" or "virus scanning". That is for the rest of you suckers. Also JAP seems to run perfectly so websites don't get to see me.
     
    Have a good day all you fellow linux/BSD users, and somebody with a more physical connection pass along my friendly sentiments to the windows users who aren't going to be able to read this due to their computers not working. ;)

  186. Re:OS X 10.4.4 by mrgreen4242 · · Score: 1

    I'm on 10.4.4 still... and have the run safe files checked... and it doesn't do anything for me either. It tries to open in QT, gives an error and that's it. Does the same thing if I run it manually. I even tried it with an admin account and nothing.

  187. Don't be so sure Dave. by Anonymous Coward · · Score: 0
    Right, because you're sending it to yourself. Try sending that 'jpg' file to someone else's Mac. I nearly reported a similar issue as a security hole in the 10.4 pre-release myself because obvious stuff wasn't giving me a warning. I emailed a terminal command "c.command" to myself and clicking it executed without warning. I emailed the same terminal command file to someone else and they received the message:
    The attachment "c.command" is an application. Since applications can contain viruses or be harmful to your computer, be sure this attachment is from a trustworthy sender before saving or opening it.

    Now, I'm just guessing here, but I'll wager if you mail that fancy little shell script to someone besides yourself, they'll get the same warning.

    In regards to this 'new' security hole... it doesn't look new to me. It looks like that Leap-A iChat zip trojan thing that they were declaring was 'the end of the world' for Mac users last week. The one where you actually had to be on the same LAN for it to work because it only contacted Bonjour buddies. This would certainly help propagation some, since it'll reach a lot further than the previous Mac 'virus'. I would imagine quite a few porn sites will take advantage of this, but they'll still have to come up with some privilege escalation to do system damage/compromise system security. On a lighter note, the test link didn't touch me on OmniWeb with the default "Open files in 'safe' applications" enabled [yes, with QuickTime Player added to the list of safe applications since it isn't there by default] so Nyuh! See, some things are worth paying for ;-)

    As one poster mentioned last week, Apple could fix the underlying any file/any icon problem that you mention pretty easily by making the names of all executables appear in bold and aliases appear in italics. As for Safari, it needs to check for which app will actually handle the file according to Launch Services and only hand off to safe apps, rather than just reading file extensions and judging the files themselves as safe. This one slips by because it isn't an application, it's a terminal document. Executable all the same, but no surprise there. Otherwise, it would have been caught by the fix Apple made for the Help.app/runscript/disk: hole several months ago.

    How do us poor Mac users combat this terrible plague that will surely destroy all that is Macintosh? Um, well, keeping a good backup is handy. If you notice Terminal.app just pop up and run commands, that's a pretty good clue that you've just been borked. Then there's always the option of wiping your drive and reinstalling clean from the OS X disk. So... not the end of the world, not for this Mac user anyway :-) Apple will have a fix out in a few days.

    BTW, does anyone know if these guys even bothered to report these issue to Apple first? I mean, isn't it customary to give the vendor 30 days or something before you go blabbing about it to the world? I guess finding a security flaw in OS X and telling *anyone but Apple* helps sell your antivirus software though, huh guys? I suppose Secunia and Sophos should feel lucky Mac users aren't used to this whole virus crap. Windows users would be satisfied with flaming the shit out of them for such an offense, but Mac users are *NUTS*!! That bunch of 'cultists' might just rally and burn their headquarters to the ground ;-)

  188. Easy fix by Anonymous Coward · · Score: 0

    A better headline would be: Obviously Unsafe "Open Safe Files" Feature Proves Unsafe

    There are no safe files. There are no safe files. There are no safe files.
    Yeah, the neat way that "Internet Enabled" disk images and widget zip files work is pretty cool, but not cool enough to leave such an obvious point of entry for exploits like this.

    I hope Apple just says "fuck it" and removes the option entirely.

  189. Wrong. by alphasubzero949 · · Score: 1

    Oompa Loompa could not run on x86 Macs; only PowerPC based. This exploit is also not specific to x86 as it is specific to the classic Mac OS leftovers hardwired into OS X. Your dubious implication of OSx86 hackers being behind these incidents shows how much you really have been following along.

  190. No, you're wrong. by skinfitz · · Score: 1

    Leap-A can not spread on x86. It runs just fine, which shows how much you have been following along really doesn't it? Also why would any exploit written for OSX on x86 necessarily be specific to x86? The whole point of universal binaries is that they run on both architectures.

    My statements stand.

  191. About time it aint true by Sithgunner · · Score: 1

    About time getting tired of hearing people say 'Mac OS X is more secure, Windows are wrecked'
    As soon as more eyes go into looking at security holes, wow, truth revealed.

  192. Re:Actually, a *bug* in Terminal is what does it.. by psergiu · · Score: 1

    Its in fact a problem of BASH running shell scripts without #!

    This is clearely GNUsabotage from RMS

    --
    1% APY, No fees, Online Bank https://captl1.co/2uIErYq Don't let your $$$ sit in a no-interest acct.
  193. Widgets... Karma? ;) by Ilgaz · · Score: 1

    From what I understand, the "ZIP File auto extract (even via stuffit expander) and launch if data" exists because "Dashboard" widgets use this functionality to get easily installed.

    From Konfubulator (now Yahoo widgets), it is like Karma is doing its job :) First publically available security flaw was directly widgets, now the functionality to easily decompress,install them is used in vulnerability.

    I am really happy that an Antivirus company didn't discover this flaw too. Or we would see "conspiracy" "snake oil" comments instead of the "real thing".

    I am not getting into the very wrong decision by Apple to use ZIP instead of bzip2 if they _had to_ give end user "one click archive" option which apperantly taken because windows users treat sitx, bz2 as sort of viruses. Yes, OS X uses ZIP because of Windows users. Another example of how windows choices effects other OSes and platforms.

  194. Whew! by cciRRus · · Score: 1

    Good thing I'm using Windows.

    --
    w00t
  195. MOD PARENT +6 (Re:Paranoid Android 1.3) by Ilgaz · · Score: 1

    I am kind of amazed the utility author (freeware,opensource) still at bottom of page while providing a total protection to this vulnerability and even the future vulnerabilities of this kind. FOR FREE that is :)

    I installed the APE module and I noticed very very interesting thing which makes this vulnerability look more "evil" than it is already.

    Your great module works perfect and even shows another "evil" thing. It says (when I right click to the extracted file via finder)

    "The application "Finder" is attempting to open the file: /Users/ilgaz/Desktop/Secunia.mov
    using an application other than the default. The file will be opened using the application: /Applications/Utilities/Terminal.app"

    It is ONLY right click. I don't left click or double click.

    Very interesting though my comment is trivial, hope you contacted Secunia about this and updated your version at versiontracker and macupdate, apple downloads.

    1. Re:MOD PARENT +6 (Re:Paranoid Android 1.3) by MonkeyBoy · · Score: 1

      Are you in column view mode? It's possible that any click will cause Finder to call the originating app so it can preview the contents in the right-most pane.

      If that's true, it doesn't mean the application is executing the contents of the file on right-click, just reading it so it can spit back the appropriate preview to Finder for the right-most pane.

      'course I could be wrong... then again, I'm still running 10.3.9, don't use Safari, and pay attention to the files I download...

      --

      Moof!

    2. Re:MOD PARENT +6 (Re:Paranoid Android 1.3) by Ilgaz · · Score: 1

      Oh, thanks for the info, yes I keep column view as default.

  196. Corrections... by argent · · Score: 1

    Safari thought it was a JPEG file.

    Safari thought it was a Video.

    That would have been no problem at all if the Finder had agreed

    LaunchServices, not Finder.

    Safari should not be using general application LaunchServices to open unsafe files. Safari should be using its own list of applications, or using a service like LaunchServices that only contains applications that are intended for using with unsafe files.

  197. It's like using system() to open files in UNIX. by argent · · Score: 1

    In UNIX, well-written applications that are dealing with unsafe content do not call "system()" to open files. They call the responsible application directly, using "fork()" and "exec()", or they pass the input to the application through another mechanism than the command line.

    LaunchServices has the ability to launch any application in the system. No well-written application should use LaunchServices and let it decide how to open a file. They MUST open the file directly, using their own table or using a utility similar to LaunchServices that only contains safe applications. AND they MUST NOT include in their table any application that does not enforce the same restrictions: BOMArchiver, for example, is right out.

  198. 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
  199. Bad solution: trust apps, not documents by argent · · Score: 1

    Files are not "trustworthy" or "not trustworthy". Applications are "safe" or "not safe", and attempting to make applications like Terminal that _have to be able to do dangerous things_ "safe" will just make normal use of teh system much more inconvenient (as it has on Windows, where COM (via ActiveX) is the commonly abused interface) without solving the problem (which signed content HAS NOT done on Windows).

    Applications are safe, or not safe. Safe applications assume that ALL documents are untrusted, and only pass documents to other safe applications (for example, as plugins). Only the user, by requesting an unsafe application (like Finder) open a document, can make the decision as to whether to trust a file or not.

    Mixing up trusted and untrusted documents in the same interface is doomed to failure. Even if the code is perfect, it makes social engineering so much easier it's trivial (as it has on Windows).

    1. Re:Bad solution: trust apps, not documents by geggo98 · · Score: 1
      Applications are safe, or not safe. Safe applications assume that ALL documents are untrusted, and only pass documents to other safe applications (for example, as plugins).

      This would either be very inconvenient or it would need a very savvy user. I want to be able to open scripts in the terminal. But the system should warn me, when I erroneously try to open a script loaded from the net. Whith the concept of "safe applications" this is either not possible or I must carefully examine each script, before clicking it. There is no way to tell the systems, which scripts to run and when to refuse to run the script. Using the concept of safe documents, this is easily possible. The differentiation between documents and programs becomes somewhat artificial with scripts and macros. Therefore I am convinced the concept of safe applications won't work.
      The concept of safe documents has some advantages:

      1. It is safe by default, because every foreign document is considered unsafe and modified documents become automatically unsafe
      2. It is convenient because the user has the last word. The user can any time override the default and mark an arbitrary document as safe.
      3. It is robust, because documents preserve their state when they are moved around on the local system.
    2. Re:Bad solution: trust apps, not documents by argent · · Score: 1

      This would either be very inconvenient or it would need a very savvy user.

      And having to mark every file as "safe" before it could be run every time it's edited wouldn't be inconvenient? It wouldn't just be inconvenient, it would completely break any compiler, script generator, or other software development tool that wasn't modified to create "safe" files, including thousands of programs that create executable files in the normal course of their execution, as well as adding multiple burdensome steps to the software development process.

      I want to be able to open scripts in the terminal.

      You don't open scripts in the Terminal, you open scripts in the shell. The shell doesn't use LaunchServices to open scripts, and LaunchServices doesn't use either the Terminal or the shell to open scripts.

      The only scripts normally opened in the terminal are scripts created and run by already-trusted applications that are already executing locally and can only be involved in an exploit if they were _already compromised_.

      But the system should warn me, when I erroneously try to open a script loaded from the net.

      The browser will not allow you to open a script loaded from the net. Neither will Finder, or any other application using LaunchServices, unless you install a handler for scripts. Terminal is not the handler for scripts, it's the handler for ".term" files, which are XML files saved by Terminal itself, and not something that a non-sophisticated user would ever need to download from the net.

      If you download an ordinary Applescript from the net, and open it in Finder, it's opened in the script editor, it's not run. Should the script editor refuse to open "unsafe" applescripts? If so, how would you examine the applescript to determine if it's "safe" or not, since you need to open it in the script editor to read it? You would have to mark it as safe before you opened it to see if it was safe!

      So obviously some applications (applications that can run files) check to see if the file is safe before opening it. Others (applications that edit or view files) can open unsafe documents, so you can see if they're safe before you mark them as safe.

      BUT...

      The last two exploits of this kind didn't involve applications that normally run scripts. They involved a help viewer and a manual page viewer. Since these applications are viewers, they wouldn't have checked, and the exploits would still have worked.

      I am convinced the concept of safe applications won't work.

      In 30 years as a programmer and system administrator, designing applications that deal with untrusted documents so they do not even have a mechanism by which a document can request it be opened by an unsafe application (even with some kind of 'approval step' by a user) is the only one I've seen that does work.

      Your scheme still depends on safe applications - editors and viewers must be assumed to be safe - and falls down there.

      It's also one that I've seen people attempt to implement on systems with discretionary access control (like UNIX, Windows, and every other commonly used OS) and failed. It requires a system with mandatory access controls... an "Orange book" B or A class system. There are very few of these implemented, and they are rarely used by anyone outside the military because they're VERY difficult to get right and impose a huge amount of inconvenience.

    3. Re:Bad solution: trust apps, not documents by geggo98 · · Score: 1
      And having to mark every file as "safe" before it could be run every time it's edited wouldn't be inconvenient?

      That's the nice thing about arbitrary attributes: You can just add some more attributes to define exceptions and refine the scheme. There are two possible solutions:

      1. Remember which program created that file and allow the same program to open the file again. For this, you must just add an additional attribute to the file. Like the "trusted" attribute, this attribute must be tied to the system, e.g. by using digital signatures or adding an unique id to the name.
      2. Add an attribute to the program so every file created with that program is safe by default. I don't like this one, because it breaks the "safe by default" aspect. But this might be nice for development tools --- something generated by development tools on the local computer would just be marked trustworthy by the system.

      Of course, one could also bundle applications to suites, that can open each others files. There would be an internet suite, an office suite, a system tools suite, a developer suite and so on. Then the system would warn you, if you try to open an office document created by an program of the internet suite --- this warning is inconvenient but absolutely necessary.

      The last two exploits of this kind didn't involve applications that normally run scripts. They involved a help viewer and a manual page viewer. Since these applications are viewers, they wouldn't have checked, and the exploits would still have worked.

      Fair enough, my proposal won't stop such exploits in the first place. But when adding some kind of "trustworthy revocation list" such an security hole could be fixed in about 15 minutes. When a safe application has a security hole, just don't consider it trustworthy any more until it becomes patched. Your system becomes secure again, you can still use that application, but using it becomes a bit more inconvenient because the system might warn you from time to time.

      It's also one that I've seen people attempt to implement on systems with discretionary access control (like UNIX, Windows, and every other commonly used OS) and failed. It requires a system with mandatory access controls... an "Orange book" B or A class system. There are very few of these implemented, and they are rarely used by anyone outside the military because they're VERY difficult to get right and impose a huge amount of inconvenience.

      Yep, you got me on this one. I had MAC in mind. Building such a system provable secure is indeed very complicated and for most real applications nearly impossible. But one can use these ideas to build a system that is almost secure. Better, one buid a system where security holes can be easily fixed. It's important to avoid security holes in the first place, but it is also important to make it very easy to fix security holes. And last but not least: Security must be as convenient as possible or the user will circumvent the security measures.

      Thanks for the nice discussion, you helped me to refine these ideas!

    4. Re:Bad solution: trust apps, not documents by argent · · Score: 1

      You can just add some more attributes to define exceptions and refine the scheme.

      You can't fix this scheme, not without ending up with "safe" applications anyway.

      No, I'm not adding more attributes, I'm describing what would be required if you actually implemented this scheme.

      If I edit "/etc/rc" in "vi" then the next time the system comes up "/bin/bash" will open "/etc/rc" and go "/etc/rc was edited by vi, I'm not going to run" and you won't even be able to get into single-user mode.

      If I edit the configuration file for Apache (shipped by Apple) with TextEdit (shipped by Apple) then Apache won't run.

      This situation, where a program is created by one application and used by another is all over the place.

      Now you have to have both "safe applications" (such as viewers) and "safe editors". So your scheme reduces to a "safe application" model, but one that is intrusive and provides a false sense of security, because...

      Fair enough, my proposal won't stop such exploits in the first place. ...applying the "safe application" model from the browser absolutely prevents those exploits and any variation of those exploits from happening, and when a bug *is* found in a safe application it takes less than 15 minutes to fix it... without forcing the user to deal with the problem outside the browser.

      Microsoft has been attempting to get the scheme you're proposing working since 1997, and they're only trying to do it for a *subset* of the domain you're talking about. When they implemented it in the first place they did such a bad job that they created the worst storm of viruses and email worms the net had ever seen. Over a couple of years the number of active exploits of Microsoft's trust model turned viruses from a minor problem that you could easily avoid by a few simple habits to the biggest problem on the net... I'm seeing gigabytes of just rejected viruses and worms a month.

      The only way to make "trusted files" work is to go to mandatory access control, and the amount of inconvenience that imposes is insane.

      Security must be as convenient as possible or the user will circumvent the security measures.

      Which is why limiting untrusted documents to only trusted applications unless a human explicitly requests that the document be opened outside the sandbox is the only model that works for a large population of users. It's convenient, and effective.

      It requires a minimal level of sophistication from the user, yes, but people are actually LESS likely to mistakenly tell the system to trust something they shouldn't than in the scheme you propose.

    5. Re:Bad solution: trust apps, not documents by geggo98 · · Score: 1
      Microsoft has been attempting to get the scheme you're proposing working since 1997, and they're only trying to do it for a *subset* of the domain you're talking about. When they implemented it in the first place they did such a bad job that they created the worst storm of viruses and email worms the net had ever seen. Over a couple of years the number of active exploits of Microsoft's trust model turned viruses from a minor problem that you could easily avoid by a few simple habits to the biggest problem on the net... I'm seeing gigabytes of just rejected viruses and worms a month.

      Nope, they try something different: They try to implement a zone model. On the first glance, this looks quite similar, but there is a big difference. Their zone model is insecure by default. When Internet Explorer looses track on a file downloaded from the net, this file becomes member of the local zone and is suddenly considered trustworthy. With a "secure by default" approach, a zone model could possibly work.

      But it is quite interesting, that Active X is somewhat similar to the safe application model. In Active X components can be marked as safe for scripting. Such components can be embedded in IE and controlled by script code. Numerous exploits based on the fact, that unsafe components were marked as safe for scripting. Without some kind of online "trustworthy revocation list" the secure application idea will only work in a perfect world.

      The IE zone model also shows, that there is indeed no border between applications and documents. One can easily create a HTML with active code. Although this page should be a document, it is indeed a program. When you save such a page, you have a ticking time bomb on your system. When you open the page from your local disc, the page is "executed" with your user privileges. It's not the application that is not trustworthy, it's indeed the document.

      I don't want to have a full blown rigorous mandatory access control (MAC)security model on my Mac. I have some work to do and don't want to struggle with the system. GRSecurity and SELinux show how difficult these monsters are to configure, especially on a desktop system. But I want a lightweight, extensible mixture of a MAC and a zone model that warns me when I try to do something stupid. The system should interact with most of the existing tools, should be easy to understand and should let the user the last word. I think that extensible attributes with some simple rules built into the system might indeed fulfill the job. It's not a perfect tool, but it might help.

    6. Re:Bad solution: trust apps, not documents by argent · · Score: 1

      Nope, they try something different: They try to implement a zone model.

      They also implement a Zone model, as well as using signed "safe" documents that may contain active content. Originally the "safe documents" model unconditionally overrode the zone model - signed documents were trusted in all zones. That enabled exploits piggybacking on trusted documents, so the zone model (which I agree is broken) now overrides the "safe documents" model.

      Active X is somewhat similar to the safe application model.

      Not in any sense. Active X components are documents in the "safe application" model, not applications. Safe applications are applications that are installed by the user or the system vendor and registered by the creator after explicit installation as providing a "sandboxed" environment in which unsafe documents can be examined. Any object received from an untrusted source is an "unsafe document" regardless of whether it contains active content or not.

      I don't want to have a full blown rigorous mandatory access control (MAC)security model on my Mac.

      Anything less creates a false sense of security.

      The system should interact with most of the existing tools, should be easy to understand and should let the user [have] the last word.

      The "safe applications" model satisfies all these requirements, AND over the past 10 years since Microsoft made 'drive-by execution' the norm it has proven itself time and time again.

      I have more than 100 users that range from the naive to "top geeks". I have had people repeatedly come to me and say "um, Peter, I clicked on the wrong button again and I think I have a virus" same people, over and over again, because the zones-plus-trusted-documents model requires the user to routinely approve potentially dangerous actions... so they're trained to hit "yes", "open", "launch", "infect me", or whatever the interface-of-the-week pops up. I've never had someone come to me more than once and say "Peter, I downloaded a file, opened my downloads directory, and double clicked on the file, and now I'm infected". Not once, not even the people I have to walk through selecting a printer every week.

      Most of the infections we got were from people reflexively approving an infection... despite the fact that most of the time IE (along with its related apps) was banned and only half a dozen *technical* people were allowed to use it.

      The "safe documents" model requires all new tools, is complex and hard to understand, and - unless it's made grossly inconvenient by forcing the user to back out of partially completed actions and return to the Finder to explicitly change the state of applications - it will train the user to reflexively approve annoying dialog boxes.

  200. DO NOT USE "SAFE TERMINAL" by argent · · Score: 1
    I just ran across an application that tries to solve the problem in the wrong place, by restricting Terminal.app.

    1. Applications use Terminal.app in normal use... for example, some installers use it to run installation scripts.

    2. Terminal.app is not the only possible application that can be used for this kind of attack, and others would cause even more disruption if you blocked them.

    The problem is NOT that terminal is unsafe. Your system is full of unsafe apps, that's normal, most apps are never intended to be used on utrusted content.

    The problem is...

    1. Safari considers untrusted content safe because it's _normally_ run in safe apps, but doesn't ensure that it's really doing it. BOMArchiver is not a "safe app", and doesn't try to be. The previous unzipper was trying to be safe, but it didn't really do a good job.

    2. Safari considers containers safe if it can't see any unsafe content inside the container. That's the wrong choice for a security system, it should assume containers contain unsafe content, and NEVER automatically open them... AND, again, it should take responsibility for making sure that a "safe application" is really used for opening unsafe files after downloading them... or not open them at all.

    My letter to the author of "Safe Terminal":
    The security problem is not in _Terminal_, it is in _Safari_ and _BOMArchiver_.
     
    Preventing terminal from executing files will break installers and other
    application sthat use Terminal this way _legitimately_, and will not
    prevent people from using _BOMArchiver_ into tricking LaunchServices
    into running scripts under other applications that _correctly_ and
    _legitimately_ accept commands.
     
    It is _not_ safe to use "Open Safe Files AFter Download".
     
    It has _never_ been safe to do this.
     
    PLEASE withdraw this application, or at least remove the claim that it makes
    "Open Safe Files" safe. It isn't. It will never be. There are no "safe" files,
    there are only "safe" applications, and LaunchServices is not (and can not be)
    limited to running only "safe" applications.
     
    Known Issues
     
      This application breaks all Installers that use Terminal.
      This application breaks "Open Terminal Here" and other Applescripts for
    Finder that use Terminal.
      This application breaks many utility programs that launch applications
    in Terminal.
      This application breaks Terminal shortcuts.
      This application does not actually solve the security problem in Safari
    and BOMArchiver.
  201. DO NOT DO THIS by argent · · Score: 1

    This will disable any applications that use Terminal.app to run shell scripts (which includes some installers, and a number of utility programs and menu extras), and will not prevent the attack. Terminal.app is not the only application that can be used to launch an unrestricted script.

    The two things you should do are:

    1. Use Stuffit expander or some other application that doesn't support the __MACOSX hack as your handler for ZIP files, instead of BOMArchiver. This will prevent this attack in any application (including Mail.app and Finder).

    2. Disable "Open Safe Files After Downloading" in Safari.

    3. Don't open attachments in Mail.app, save them to disk and examine them. Also, don't follow links directly from Mail.app, copy them somewhere first to make sure you're not being phished. Mail.app's handling of untrusted content is pretty skanky in general.

    4. Contact Apple and ask them to provide a "Safe Applications" equivalent of LaunchServices that programs like Safari, Firefox, and other programs that have reason to pass untrusted documents to sandboxed applications can use. I have been calling for this for at least a year and a half, every time "Open Safe Files" and other interfaces that use LaunchServices for untrusted documents leads to a security hole, and every time Apple has simply applied another patch that handles one possible attack.

    That's what Microsoft has been doing for *their* horrendous security holes in the HTML control since 1997, and they STILL haven't gotten it to work.

    It's not possible to find and track all the new holes (this one was opened up by switching from Stuffit Expander to BOMArchiver for zip files, for example), and patching the holes by finding the 'last responsible application' and restricting that only makes the system less reliable and convenient to use... and leaves the fundamental security hole unplugged.

    An older post on the same topic.

    1. Re:DO NOT DO THIS by TomAnthony · · Score: 1

      Which utilties and installers does this disable?

      --
      Tom Anthony
    2. Re:DO NOT DO THIS by argent · · Score: 1

      It probably kills the "Open Terminal Here" Applescript in Finder.

      It certainly will disable at least a couple of open source apps that I've run into that open a Terminal.app window to run a command line install dialog from their installer, because they're ports of apps that have interactive install dialogs on UNIX.

      There's at least a couple of programs that use Terminal.app to run scripts to edit system configuration text files. One of them was the one I used to enable Quartz Extreme on my PCI Radeon.

      You may never use any of these programs. If you do, they'll fail and you won't know why. And since it doesn't actually solve the underlying problem... why bother?

    3. Re:DO NOT DO THIS by TomAnthony · · Score: 1

      You clearly know what you are doing, so you aren't the sort of person who will need the safety net. Most people never run anything that uses the terminal, and these are the people who do need the safety net. I'm aware you can launch any app with this exploit, but Terminal is the likely candidate and the one that could most likely cause the most trouble. My suggested fix is meant to save the majority of people (albeit, probably not the sort who would be reading the comments on slashdot..) from the likely sort of attack. I guess if someone is clued up enough to bother implementing a fix like this, they would be clued up enough not to open any old file, but I thought the value was there in suggesting it.

      --
      Tom Anthony
  202. This has nothing to do with X86 by argent · · Score: 1

    This is a new instance on an old and well known security hole in the way Apple uses LaunchServices for untrusted content that I have been talking about for years. The underlying flaw (the idea that "files" rather than the applications that open them need to be "safe") has been exploited before, and will be exploited again if Apple merely fixes this particular instance.

    My comment on this from May 2004, getting on for two years ago now.

    Microsoft has been in denial about their own (and much nastier and harder to fix without breaking existing code) problem in their browser for almost 10 years now, I hope Apple is smarter.

    1. Re:This has nothing to do with X86 by skinfitz · · Score: 1

      If this particular incident is the result of whoever exploited it discovering it because they were playing with OSx86 then it is related to the switch.

      Of course this particular incident could simply be a PPC based haxx0r doing their thing, but I guarantee you that right now a lot of people will have OSX installed on generic PC hardware purely for the sake of curiosity. Haxx0rs being haxx0rs will be poking and prodding it to see what interesting things they can do with it. Since OSX was patched to run on generic hardware, gone are the days that one had to spend money to play with OSX.

    2. Re:This has nothing to do with X86 by argent · · Score: 1

      If this particular incident is the result of whoever exploited it discovering it because they were playing with OSx86 then it is related to the switch.

      Please provide the evidence that you have for the claim that this exploit was the result of someone playing with OSX86.

    3. Re:This has nothing to do with X86 by skinfitz · · Score: 1

      Do you not understand English or something?

      Considering that you appear to have done some programming in your time I find it quite ironic you seem to not understand the meaning of the words 'if' and 'then'.

    4. Re:This has nothing to do with X86 by argent · · Score: 1

      Do you not understand English

      I understand logic.

      "if (any false proposition) then (any proposition)" is always a true statement regardless of the truth of (any proposition), so it is pointless to make it. I assume you're not making a pointless statement, so you must have reason to believe the statement is not false. If you don't, then you have no point to make.

    5. Re:This has nothing to do with X86 by skinfitz · · Score: 1

      Ok allow me to spell it out to you seeing as you obviously have comprehension difficulties.

      Somebody said regarding a particular exploit 'This has nothing to do with X86' .

      I pointed out that ' If this particular incident is the result of whoever exploited it discovering it because they were playing with OSx86 then it is related to the switch.'

      Alternatively if we are not allowed to say anything without evidence, then I must ask you to please provide the evidence that you have for the claim that this exploit was not the result of someone playing with OSX86, as otherwise by your own logic you are making a pointless statement.

    6. Re:This has nothing to do with X86 by argent · · Score: 1

      Somebody said regarding a particular exploit 'This has nothing to do with X86' .

      That was me.

      You responded by repeating a claim made by a previous message in the thread, wrapped in this "if-then" construct. I assumed that since you were repeating a comment previously made (and that I would presumably knew, since I must have read it before replying to it), you had some reason for it. The only reason I could think of would be that you knew something about the author of the original article, and that's all I was asking for. If you're just playing language games, include me out.

    7. Re:This has nothing to do with X86 by skinfitz · · Score: 1

      OSX86 has been patched to run on generic PC hardware.

      A number of people have now obtained it and installed it on said hardware.

      Some of those people will be haxx0rs who previously would have had to spend $$$ on a Mac just to play with OSX, but now just need a spare partition.

      Universal binaries will run on both PPC and Intel architecture.

      Result: OSX can now be being scrutinised by haxx0rs for free, and code written will run on both platforms.

      I suggested that due to the switch, OSX will now be receiving a lot of extra attention, and that a recent exploit could be the result of this attention.

      You said the exploit 'has nothing to do with the switch'.

      I said that IF the person who wrote the exploit wrote it as a result of being able to run OSX86 on a PC, THEN this is related to the switch.

      You demand to see 'evidence' that I have that it is related to the switch in a tone that clearly suggests that I am somehow 'wrong'.

      You are the one making the concrete claim ('it is nothing to do with the switch'), not me.

      'If it was written...' != 'It was written...'. Call that a 'language game' if you wish but you are putting words in my mouth which makes you a player too in that case.

  203. Re:UTTERLY WRONG. UNSAFE by jdbartlett · · Score: 1

    True, but the command was just to load 'calculator.app', that doesn't require the current user to be on sudo list. So, how many potentially malicious commands can be executed on terminal without sudo privileges? (Please excuse my ignorance on this, I'm an OS X newbie.) Deletion of user documents maybe? (Script may not be aware of user name, but terminal loads inside the current user's directory)

    I'm not trying to downplay the threat, I think Secunia were right to call it 'extremely critical', I'm just curious what, in worst case scenario, this thing could do to a standard user. Is there a way we can set up OS X so that certain commands (delete, for example) require a superuser?

  204. DO NOT BREAK TERMINAL. Use Stuffit Expander. by argent · · Score: 1

    Most people never run anything that uses the terminal, and these are the people who do need the safety net.

    Most people do not intentionally run anything that uses the terminal.

    That doesn't mean that applications they use don't use the terminal.

    This isn't a "safety net". This is a childproof cap that granny has to ask her 7 year old granddaughter to open for her.

    Installing Stuffit Expander so that BOMArchiver isn't used to open ZIP files and thus can not be tricked into using Terminal is a "safety net". Turning off "Open Safe Files In Safari" is an even better safety net. Do both, for a big win that does not break anything.

  205. What about DMG files as archives? by argent · · Score: 1

    Safari goes a step further: it removes the archive, leaving only the contents, and then (this is the key point), if the archive contained only one file and the file is deemed "safe," Safari will open that file.

    Is Safari doing that or is BOMArchiver doing that?

    If it's Safari, then what does it do for an Internet-enabled Disk Image containing a single safe file?

    If it does the same thing, then it may be possible to embed the same exploit in an Internet-enabled Disk Image that unpacks itself to a single file (as, for example, the Unsanity disk images do).

  206. Correcting self... by argent · · Score: 1

    The Unsanity disk images don't unpack to a single file, but the way I wrote it can be read as implying they do. Apologies. Bad editing.

  207. Setting bad precedent... by argent · · Score: 1

    Microsoft is the company that set the precedent that browsers should treat some files as safe because they're certain kinds/in safe zones/signed/whatever. Apple is being quite a bit less trusting when they follow this daft precendent, but would they have been encouraged to implement "Open Safe Files" if Microsoft hadn't blazed the trail?

  208. Plus, Camino warns you not to be stupid... by argent · · Score: 1

    [ecode]
    Camino Preferences --> Downloads --> When Downloads Finish:

    [] Open downloaded files.

    Downloaded files can be passed off to other "helper" applications. While convenient, enabling this feature makes your computer vulnerable to damaging programs.
    [/ecode]
    1. Not enabled by default.

    2. Tells you that enabling it is a stupid idea.

  209. Re:Actually, a *bug* in Terminal is what does it.. by javaxman · · Score: 1
    Its in fact a problem of BASH running shell scripts without #! This is clearely GNUsabotage from RMS

    Cool, I don't know if that's Funny or a Troll !

    It may be a BASH problem ( that would be news to me ). If BASH will run a script without #!, that is a dumb thing... there *should* be some sort of way to tell if a file is going to execute in some manner, or that in itself is a security problem. If Apple can't change BASH, perhaps they should prevent Terminal from executing scripts from files that don't end in .sh or something like that.

    I'm afraid we won't see a fix for this for a while, as it might take some time to get people to agree what the problem/fix really is...

    BASH aside, though, it's Terminal.app that gets the Open command and loads the file, so it *does* have a chance to check for #! before handing off the script. I mean, maybe what comes after #! isn't /bin/sh, anyway.

  210. Re:Odd... by argent · · Score: 1

    If you feel that your computer is involnerable to hacks you will get hack eventually.

    Not necessarily. Marcus Ranum's Perfect Firewall is still 100% effective, as far as I know, and I can't imagine a network-based attack that could bypass it. But I doubt someone who can't spell "invulnerable" would know about it.

  211. The Truth by argent · · Score: 1

    As soon as more eyes go into looking at security holes, wow, truth revealed.

    Errrr... let's see.

    OS X: all related automatic execution attacks are prevented by changing one setting in the default browser.

    Windows: the only way to prevent comparable automatic execution attacks is to remove the browser, which disables software updates, many control panel applets and other essential system tools, and several unrelated applications.

    I'm not sure I understand your point, can you elaborate?

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

  213. There is... by argent · · Score: 1

    there *should* be some sort of way to tell if a file is going to execute in some manner

    There is. It's called "the execute bit". If the execute bit is set, then the file it's set on is executed. If it can't be executed by the kernel (based on the magic number on the first to bytes of the file), it's executed by the shell directly.

    1. Re:There is... by javaxman · · Score: 1
      There is. It's called "the execute bit". If the execute bit is set, then the file it's set on is executed. If it can't be executed by the kernel (based on the magic number on the first to bytes of the file), it's executed by the shell directly.

      Again, you seem to somehow miss my point... won't a script ( let's call it foo.sh ) still execute ( even without the execute bit set ) if you give the command "bash foo.sh" ? That's a whole lot more like what happens when you double-click on a file; before that double-click, there is no shell. Launch Services checks the file meta-data, finds that it says "Terminal.app" then says "Terminal.app open foo.sh", roughly. So I don't think the execute bit helps or even comes into play here, and if it does, it's useless. The execute bit is a little ( but not much ) like the "open with" meta-data here, isn't it?

      That might be one way to deal with this, though... rather than require the #! as I'd suggested, require an execute bit be set for Terminal.app to open a 'command file' as the Terminal help file stupidly calls them. Since there doesn't appear to be a UI for setting the execute bit, you'd have to do it _from_ the shell, and so although the attack would still be possible from a local file share ( or CD, etc ) it would be more difficult from a web browser or something that doesn't preserve permissions... meaning that downloaded scripts can't be executed with a double-click, which I guess fixes the problem, though if you *meant* to download a script you might be slightly inconvenienced, I suppose it'd be a fair trade-off.

      I'd still prefer to be able to look at a file, or have a web browser or mail program look at a file, and tell me if it's going to run as a script or macro, or if it's actually a JPEG file. I realize that's actually a tall order, though.

    2. Re:There is... by argent · · Score: 1

      won't a script ( let's call it foo.sh ) still execute ( even without the execute bit set ) if you give the command "bash foo.sh"

      Yep, because you executed the command "bash" and passed it "foo.sh".

      Now imagine that foo.sh starts with "#!/bin/bash"

      When the loader sees that, it reads the first (16-byte) word of the file (#!) and reads a line "/bin/bash".

      So now it executes the command "/bin/bash" and passes it "foo.sh" as an argument.

      Which is EXACTLY what you ran when you typed "bash foo.sh".

      All the execute bit does is tell the loader (not the shell, the loader, in the kernel) to look in the first 16-bit word of the file to see how to load it.

      require an execute bit be set for Terminal.app to open a 'command file' as the Terminal help file stupidly calls them

      Dude, THE EXECUTE BIT IS SET, otherwise bash wouldn't have tried to run it as a command (rather than as an argument to /bin/bash).

      I'd still prefer to be able to look at a file, or have a web browser or mail program look at a file, and tell me if it's going to run as a script or macro

      You can. If the execute bit isn't set, bash won't run it _as a command_. It will still run it _as an argument to the bash command_, but Terminal.app passes it as a _command_, not as an _argument_.

      -----

      And none of this matters, because the browser SHOULD NOT be using LaunchServices to run commands in the first place.

    3. Re:There is... by javaxman · · Score: 1
      Dude, THE EXECUTE BIT IS SET, otherwise bash wouldn't have tried to run it as a command (rather than as an argument to /bin/bash).

      Ah, I see... sorry for being dense, I didn't think bash had a chance to check the execute bit once Terminal grabbed the file. Now I see the sample attack does have the execute bit set; Terminal's .term files don't need to have the execute bit set, I thought the same was true here, but it's not. This begs the question... why the heck doesn't Safari or Mail notice that ( even just one file of ) the attachment has the execute bit set and sound the warning bell ? That seems like the most basic check- what, it only gives you the warning if there's an actual .app package with a .app suffix?!? That's stupid, sorry Apple...

      I also see your point that even Safari checking for the execute bit is not enough, but uh... I also see the point that people in general ( and some people specifically ) are a lot less paranoid about security than you and I are. I'm sure you think they are idiots, and I would agree, but there are plenty of people out there who would rather have a word file open when downloaded than be safe against this sort of attack. That shouldn't be the default option, but if you want to go motorcycle riding without a helmet, Apple shouldn't be the one to stop you, really...

      All that being true, I should *still* be able to tell from looking at a file in the Finder if the execute bit is set. Like I said, forget Safari and Mail. If this file is sitting on a file server or CD, and I'm using Finder to look at it, there should be some visual indication that it's executable, as there is when you type 'ls' in a shell!

      ~/Desktop% ls Heise.jpg
      Heise.jpg*

      To me, the fact that the Finder and any other in-application ( say, Mail attachment ) representation of the file gives no indication of that important feature of the file is, IMHO, the *real* problem... forget Safari and Mail, they're just ways of getting the file, what I need to know as a user is "data or executable", and I should always be able to tell at a glance.

    4. Re:There is... by argent · · Score: 1

      why the heck doesn't Safari or Mail notice that ( even just one file of ) the attachment has the execute bit set and sound the warning bell ?

      That's the wrong question, because there's other ways to sneak a script past Safari using LaunchServices that don't involve having the execute bit set or any other indication that the document is a script, that don't involve Terminal or /bin/bash. I'm not going to go into details, but if you think about all the other scripting languages available on OS X you should be able to think of some approaches.

      LaunchServices has been involved in two other exploits similar to this one in the past, and the changes that Apple made to "fix" them were superficial... this exploit is proof of that.

      The right question is, why does Safari or Mail have to trust LaunchServices, when LaunchServices is by design not a safe way to open untrusted documents?

  214. Fixes by argent · · Score: 1

    there's no real fix possible to this issue.

    Abandon Finder and start over with the NeXTStep File Manager. Stop using metadata for icons and file handlers and keep all that info separately from the files. Abandon "Open Safe Files After Download" and replace it with a system like LaunchServices but restricted to applications that are intended to handle "unsafe" files.

    1. Re:Fixes by javaxman · · Score: 1
      Abandon Finder and start over with the NeXTStep File Manager.

      You're preaching to the choir on that one... not going to happen, we realize, but amen, brotha.

      Stop using metadata for icons and file handlers and keep all that info separately from the files.

      Possibly appropriate, but creates other problems and restricts what you can do with icons in a way that a lot of people would be unhappy about. Personally, I am not thrilled with the idea of icons being completely arbitrary ( as they are ), I think it causes too many problems, but... meh... some people like icons for JPEGs being previews of those jpegs, and I'm not sure enough that this helps...

      Abandon "Open Safe Files After Download" and replace it with a system like LaunchServices but restricted to applications that are intended to handle "unsafe" files.

      Like a Launch Services that has a list of apps like Terminal ( and what else, Word because of VB macros? Safari because of plugins that could write to your file system? Any developer tools? How do you enforce that ? ) and raises a warning if a downloaded file targets one of the apps on that list? Hmmm. Maybe.

      Your list of fixes points to what a big problem this is, though. I thought slapping a band-aid on by requiring #! at the start of script...er , "Terminal command files" so that Mail and Safari could flag them was making a big change, your list is huge and not without it's issues!

      really, I agree, though. There should be a preview ( image, or something else ) and an icon, and the two should not be the same. For a data file, the icon should tell you what application it's going to open with, anything else is broken; I'm pretty sure we definitely agree on that much.

    2. Re:Fixes by argent · · Score: 1

      Like a Launch Services that has a list of apps like Terminal [...]

      No, other way around.

      Like a LaunchServices that ONLY HAS a list of aps that are designed to be safe, and anything else is an error. Not a "warning", a big bleeping "There is no safe application to handle this file. If you really want to open it, save it and open it by hand with another application, I ain't touching it". Call it "WebServices".

  215. The definition of "safe file" & a bit of histo by argent · · Score: 1

    The problem is that someone used the wrong definition of "safe file".

    That's true.

    There's no definition of "safe file" that can be stretched to include any file recieved from outside the local protection domain. All files recieved from outside the local protection domain (the local computer and any servers in the local protection boundary managed by someone trusted by the owner of the computer) are assumed unsafe, and must only be opened outside a sandboxed environment by request of a human.

    The sandboxed environment in this case consists of the web browser, internet plug ins, and any applications explicitly defined as capable of safely handling untrusted/unsafe files. LaunchServices is not explicitly defined as capable of safely handling untrusted/unsafe files (that's why Safari limits 'open files after downloading' at all). Therefore, Safari should not be using LaunchServices to open files automatically... it should wait for a human to request the files be opened, or it should maintain its own database of safe applications *and* its own mechanism for opening files that doesn't involve the use of an unsafe interface, or it should use a system-maintained database of safe applications.

    The rest of this message is a historical note, you can ignore it.

    Safari used a different definition: Executable files, and files that contain a pattern that is typical, but not required, for script files.

    Er, no. Safari used a different definition: Files beginning with a 'magic number'. The first two bytes of any executable file on UNIX determiine which loader the kernel will use to load the file. For example, on PDP-11 UNIX if the first two bytes were octal 04 and 07 the file was a normal a.out format executable. If they were 04 and 011 it was a split-instruction-and-data executable. If they were '#' and '!' the loader read the rest of the line to find the name of the program to execute the file.

    The thing is, that on V6 unix and early V7, the #! magic number wasn't magic at all... but shell scripts still had to be executed. What happened then was that the shell would open and execute the file as a series of shell commands... for the early shells (V6 and earlier) it literally set standard input to the script and just continued running, if the file had the execute bit set.

    And THAT is why the shell (/bin/bash) inside the Terminal ran the file as a script. Because it's retaining compatibility with the way the V6 shell _had_to_ work in 1976.

    How the '#!' string came about, that'll be a story for another day.

  216. Why drive-by downloading exists by a1291762 · · Score: 1

    As far as I can tell, the point of drive-by downloading is for things like Java Web Start. With this setting off, you cannot just click a JWS link and have it open. Instead, you have to manually navigate to the file and open it from the Finder.

    Older browsers (eg. IE and anything that used "Internet Config") had a list of specific mime types/extensions that should be opened by apps rather than downloaded. Mozilla browsers have this too but it's not pre-populated so the default action is to ask if you want to open or save the file.

    Personally, I prefer the old behaviour. The only annoyance was having to remove all the file types when you first setup your browser (there must have been about 50 entries for stuffit!).

  217. Be Paranoid, but not for this reason. by argent · · Score: 1

    I recommend preventing the whole class of exploits by turning off "Open Safe Files", installing Stuffit Expander (but turning off "Mount disk images" in there) and not worrying about "Watch non-default application launches".

    But turning "Watch URI schemes" on is worth considering, because Apple's solution doesn't actually prevent the exploit that led to its creation.

    1. Re:Be Paranoid, but not for this reason. by smeger · · Score: 1

      Your recommendation doesn't handle the sample exploit in Mail.app, unfortunately. Grab this (benign exploit, warning!). Unzip it and then mail the resulting file to yourself. Click the jpg you receive and you're nailed.

    2. Re:Be Paranoid, but not for this reason. by argent · · Score: 1

      Your recommendation doesn't handle the sample exploit in Mail.app, unfortunately.

      If Mail.app doesn't use BOMArchiver the "jpg" file don't have the metadata that says "open in Terminal.app".

      I tried it, it said: "/Users/.../Heise.jpg : Illegal image format".

      AND in any case, Mail.app has more than enough other problems that need to be fixed, starting with "no overtext or status line showing actual destination of link".

  218. Open Office "common"? Yeah, right! by Anonymous Coward · · Score: 0
    Dude, have you looked at:
    a.) How much of a pain in the ass it is to install Open Office on a Mac
    ("wtf is X-11 and why should I care" is guaranteed to be enough to dissuade most potential users all by itself)

    b.) How much RAM Open Office needs? I can run every app I need at once, including Photoshop, InDesign, QuarkXPress, Safari, Mail, BBEdit, and a half a dozen others but I do not have half a fucking gig of RAM and neither do a lot of Mac users. Don't need it. Won't pay for it.

    c.) How many Mac users want to start over with another UI again.

    Nice theory but you're reaching.


    -the perfessor (Rustin)

  219. Re:Transcript of recent telephone phone conversati by Anonymous Coward · · Score: 0

    Ass Master:

    Why did you pretend to be someone else? That just goes to show how unbelievably lame you are. What really gives it away is your belief that there is only ONE AC who bashes you, when I know for a fact there are many. Don't be a douche and defend yourself while pretending to be someone else, knob gobbler.

  220. rm my Mac by Anonymous Coward · · Score: 0

    Mac OS X's security is obviously terrible locally. http://rm-my-mac.widopenbsd.org/ A Mac with all the latest updates from Apple got owned in only a couple of hours. I think even a Windows computer would more secure than that.

  221. Re:UTTERLY WRONG. UNSAFE by Anonymous Coward · · Score: 0

    There are privledge escalation threats you may not be aware of. If they can execute users code they can get root. If the user is an admin user it's even simpler to do.

  222. Simple fix by M-RES · · Score: 1

    I suppose the real fix (other than unchecking an option in prefs) is just simply to stop double-clicking files to open them. Personally I've always been of the drag n drop school of working. I wanna open a JPEG? I drag n drop onto the relevant app, because there's a real chance that I'll be wanting to open it into Photoshop rather than Preview... either that or right-click and 'Open with...'. If it aint a JPEG you'll find out soon enough - and relatively safely. Simple enough protection from socially engineered shell scripts for now.

  223. Maybe not a fix, but a damned smart habit... by argent · · Score: 1

    stop double-clicking files to open them.

    Yep, dragging them or selecting the app using "open with" is definitely recommended, particularly for files you just downloaded. Not just for security, but also to avoid annoyances.

    One thing I've found is that a lot of files in disk images or stuffit archives (by the by, stuffit archives ALSO maintain the dangerous metadata) have the "wrong" default application anyway. I use Camino as my browser, for example, and for a long time I used the PDF plugin for PDFs so Camino was my PDF viewer as well. Typically, HTML help files and PDF docs would open in Safari (or, in some cases, Internet Explorer!) and Preview if I didn't override them.

  224. Unix doesn't use file extensions. by argent · · Score: 1

    First, the "." chaarcter in a UNIX file name doesn't separate the name from the extension. It's just another character. UNIX applications have traditionally used the first or last few characters of the name for a variety of reasons, but that's just a convention and you find things like "s.file" or "file,v" or "file~" or "._file", as well as applications using 'magic numbers' in the first few characters of the file... like "#!" or "%!PS" or ": ".

    And the UNIX shell didn't use filename extensions to determine the application to run files. The UNIX shell uses a verb-noun syntax, not the object-action syntax of modern GUIs. The application was explicitly named in the first word of the command.

    The extended UNIX 'ls' command from BSD, the one that established the convention of using "*", "/", "@", and so on at the end of file names to indicate the file's metatdata, payed no attention to the name itself to determine how to display a file.

    Many individual GUI file managers on UNIX have, but the majority of GUI file managers on UNIX are copied from Windows, one way or another. The ones that are older typically made "deeper" decisions... I've had mail folders with no extensions at all show up as a little 'in tray', based on the contents of the file.

    Windows file extensions are based on the DOS 1.x "8 character name plus 3 character type", which was based on the CP/M 6+3 filename, which was based on the ISIS 6+3 filename, which was based on DEC's RT- and RSX- operating systems that used 6+3 filenames.

    They started out as a genuine file type, like the Mac creator and type Finder Info, which is why they are considered "strong" type information rather than "weak" type information. It's a pity that the OS X Finder didn't follow the early UNIX precedent of considering all 'creator/content' meta-information as "weak", and using the file itself as the primary source... the way the UNIX commands "ls" and "file" do.

  225. Re:UTTERLY WRONG. UNSAFE by goombah99 · · Score: 1

    Is there a way we can set up OS X so that certain commands (delete, for example) require a superuser? What you are asking for specifically would be impractical since you could not change any documetns. But look up access controll lists on tiger if you want to know about fine grained control of user priv.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  226. Re:Transcript of recent telephone phone conversati by Anonymous Coward · · Score: 0


    Ass Master:

    Why did you address this to yourself?

    Why did you pretend to be someone else?

    What makes you think I'm T/\/\/\/\? I'm an AC, just like you are. You are just as likely to be the TripMaster as I am (you could also be CmdrTaco, but that's beside the point).

    That just goes to show how unbelievably lame you are.

    You are a hypocrite. Y'know that? You want to call me lame when you are the one spending your time stalking Monkey.

    What really gives it away is your belief that there is only ONE AC who bashes you, when I know for a fact there are many.

    You know for a fact, do you? Prove it. Give some usernames of people who stalk TMM (>900k blank UIDs don't count).

    Don't be a douche and defend yourself while pretending to be someone else, knob gobbler.

    You could uncheck that Post Anonymously box and reveal yourself, rather than pretending to be a legion of faceless AC trolls. I'll be waiting...

  227. It works with single-file .dmg archives too by superposed · · Score: 1

    Safari is doing this (not BOMArchiver). And it does it for .dmg files too, so those could be exploited as easily as .zip or .sit.

    This is unfortunately a rather Microsoft-like behavior -- building too much "intelligence" into the way the system handles an operation, rather than using a simpler, more transparent approach. Safari identifies archive files when you download them (.sit, .zip, .dmg, ...?). Then, it tries to make .sit or .zip files act like Internet-enabled DMG files -- it extracts the contents and deletes the original archive file. Alternatively, it will simply mount any regular, non-Internet-enabled .dmg file.

    Finally, if the archive (.sit, .zip or .dmg) contained only one file, and Safari deems that a "safe" file (subject to extension/creator spoofing) Safari will launch that file.

    If you download any of these archive files in Camino, the behavior is different, and more like a regular social exploit (with file-type spoofing). The archive file will be dumped in your download folder. Then, if Camino is set to open "safe" files, or if you choose "open" in Camino's download window, or double-click on your download in the Finder, the archive will be handed off to the operating system. Then the operating system will treat it differently from Safari -- it will just mount the .dmg, or extract the contents of the .zip or .sit file. After that, it's up to you to find the enclosed file and open it.

    1. Re:It works with single-file .dmg archives too by argent · · Score: 1

      And it does it for .dmg files too, so those could be exploited as easily as .zip or .sit.

      So... since, as has been demonstrated elsewhere, you CAN slide exploits in theough DMG files that don't involve Terminal. So... disable "Open Safe Files" and leave it disabled. And do the same thing for Camino, heed the warning Cemino puts under that option: it's NOT something you should be doing.

      By the way:

      Then, it tries to make .sit or .zip files act like Internet-enabled DMG files -- it extracts the contents and deletes the original archive file.

      Why does ANYONE think this is a good idea? The idea of downloading a ZIP file and having it replaced with the contents is utterly abhorrent to me. I archive the applications I download so I have a good copy of the original if I need to reinstall it, and I keep the downloads compressed to save space.

      I automatically turned off "Open Safe Files" for security, now I'm glad I avoided the inconvenience of the insecurity as well!

  228. YASF (Yet Another Simple Fix) by gselfridge · · Score: 1

    I have learned this a while ago and I have not had problems by saving what I download to the disk or particular folder, then open it with a suitable application. Having an application automaticlly open what is downloaded increases the threat of a comprimised system.