Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Safari "Carpet Bomb" Attack Code Released

Posted by timothy on Wed Jun 11, 2008 02:56 PM
from the nogoodniks dept.
snydeq writes "A hacker has posted attack code that exploits critical flaws in the Safari and Internet Explorer Web browsers. The source code can be used to run unauthorized software on a victim's machine, and could be used by criminals in Web-based computer attacks, security experts say. The public example of the attack code allows attackers to litter a victim's desktop with executable files, an attack known as 'carpet bombing.' In combination with bugs in Windows and Internet Explorer, attackers can run unauthorized software on a victim's computer."
+ -
story

Related Stories

[+] Microsoft Urges Windows Users To Shun Safari 502 comments
benjymouse writes "The Register has picked up on a recent Microsoft security bulletin which urges Windows users to 'restrict use of Safari as a web browser until an appropriate update is available from Microsoft and/or Apple.' This controversy comes after Apple has officially refused to promise to do anything about the carpet bombing vulnerability in the Safari browser. Essentially, Apple does not see unsolicited downloads of hundreds or even thousands of executable files to users' desktops as being a security problem." Now while downloading a hundred files to your desktop won't automatically execute them, Microsoft's position is that a secondary attack could execute them for you.
[+] IT: Apple Fixes Safari "Carpet Bomb" Windows Vulnerability 99 comments
Titoxd writes "Apple has released a new version of Safari that fixes the carpet bomb vulnerability in Safari 3.1 for Windows. This comes in the heels of Microsoft recommending against using Safari in Windows, as well as the release of code exploiting this vulnerability."
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • Wrong section, eds! (Score:5, Informative)

    by himself (66589) on Wednesday June 11 2008, @03:11PM (#23752865)
    This is a _Windows_ Safari problem, not an _OS X_ Safari problem. And yes I RTFBlogPost.
    • by Qwerpafw (315600) on Wednesday June 11 2008, @03:34PM (#23753275) Homepage
      It's a Windows Internet Explorer problem, not a Mac OS X Safari problem.

      the "bug" is that Safari has the users desktop as the default download directory, and will automatically download files if you go to some websites. This is normal and fine behavior. The problem is that Internet Explorer loads files from the desktop on launch, which means if you craft a malicious library and put it on the desktop Internet Explorer will happily load it.

      Microsoft should fix IE to avoid loading files from the Desktop.
      • "This is normal and fine behavior."

        No, it isn't.
      • Re: (Score:3, Insightful)

        No, the problem is that Safari doesn't utilize the functionality Windows has for marking files as safe or unsafe when it downloads something, thus allowing IE to open said files.

        Safari isn't implementing the basic security that is implemented in Windows.
      • by Chas (5144) on Wednesday June 11 2008, @04:43PM (#23754425) Homepage Journal
        No. It's a problem with Windows Internet Explorer that's exacerbated by a problem with Windows Safari.

        Safari should NOT be auto-dumping files onto the Windows desktop. PERIOD.

        There's enough blame to go around everywhere.
        • by ClassMyAss (976281) on Wednesday June 11 2008, @11:53PM (#23759029) Homepage

          Safari should NOT be auto-dumping files onto the Windows desktop. PERIOD.
          Totally agreed. I'd go further - no website should be able to trigger any action on my computer that persists after I close the damn browser window without my explicit permission, apart from saving cookies and leaving an entry in my history log (even then, only if I've enabled both of these things).

          That said, IE is worse here - downloading files without my permission is bad form, but a pre-installed system app loading DLLs from any old place that it finds them, especially one of the most common places to dump downloaded files, is just idiotic.

          Shame on all.
  • by Manip (656104) on Wednesday June 11 2008, @03:12PM (#23752885)
    Here are two very quick temp' workarounds for the issue.

    1) Launch IE from a location other than your desktop (e.g. Start Menu, Quick Launch Tray).

    2) Go to Program Files\Internet Explorer, Create Shortcut, and then place that shortcut on your desktop. Make sure the "Start In" setting is set to any location other than your Desktop.

    • Best workaround is to use Firefox.
    • by CastrTroy (595695) on Wednesday June 11 2008, @03:34PM (#23753269) Homepage
      For me it runs even when launching from the quick launch bar, or from the start menu. For some reason, IE seems to like to load things from the desktop by default. For instance, to change your "view source" application from notepad to notepad++, you can put the following in a notepad.bat file on your desktop.

      C:\Program Files\Notepad++\notepad++.exe %1

      This problem seems to be two fold. First, Safari will automatically download stuff, to your desktop, without asking you. Secondly, IE will load DLLS from the desktop, just because they happen to have the same name as some other DLL it is looking for. I think the bigger problem here is with IE, because it doesn't matter how the dll got on your desktop, it shouldn't be using it.
  • Best Solution (Score:3, Interesting)

    by Skye16 (685048) on Wednesday June 11 2008, @03:22PM (#23753073)
    Clearly the quickest way we can get Apple to fix this is to host this attack on all of our own websites, with the .exe in question being the uninstall program for Safari.

    As soon as the attack centers on an Apple product, they'll start moving their ass. Until then, it's "not [their] problem".
    • Re: (Score:3, Insightful)

      It's something Microsoft has to fix. The article is your friend.
      • Re: (Score:3, Informative)

        I'm sorry, but allowing a malicious website to provide hundreds or thousands of executables on my desktop is *still* an Apple bug. What's worse, it's the root cause. Yes, Windows and IE have a flaw that allow that file to be executed, but it wouldn't be there in the first place - especially in such quantity - if the flaw in Safari didn't exist first.

        As you say, the article is your friend.

        "The Safari bug, originally disclosed on May 15 by security researcher Nitesh Dhanjani, allows attackers to litter a vi
        • Re: (Score:3, Insightful)

          Half of the problem is with Safari, the other half is with IE. Let's give credit where credit is due.

          If it weren't for Safari downloading the files to the desktop by default, they wouldn't get there.

          If it weren't for IE opening these files from the desktop by default, they wouldn't open.

          Now, if you'll excuse me, I'd like to feel completely secure. I'm going to go install my old copy of OS/2 Warp v3 and Netscape Communicator.
  • by wattrlz (1162603) on Wednesday June 11 2008, @04:56PM (#23754595)

    Personally I think the bigger issue is that Safari will auto-download, auto-mark-safe, and auto-run files silently. IE's broken too, but either one of the players involved could render this exploit moot. Let's see who responds first before stoning someone to death.

    I still don't see why someone would be browsing around in safari and then open up IE. A regular user's likely to only use his favorite browser and a dev who needs to view the same site in multiple browsers would probably notice that there're a bunch of new .dll files all over the desktop.

    • by spud603 (832173) on Wednesday June 11 2008, @03:03PM (#23752733)
      RTFA. Actually, it looks like this is a windows problem. Safari automatically downloads a file to the desktop. Then when you start Internet Explorer it runs the file on your desktop and there is the problem.
      So the real issue is that Safari can be told to automatically download a file while internet explorer will automatically run a malicious dll from the desktop. actual post and proof-of-concept code here [fc2.com].
      seems like a misleading summary to me.
      • by Colonel Korn (1258968) on Wednesday June 11 2008, @03:12PM (#23752893)

        RTFA. Actually, it looks like this is a windows problem. Safari automatically downloads a file to the desktop. Then when you start Internet Explorer it runs the file on your desktop and there is the problem.
        So the real issue is that Safari can be told to automatically download a file while internet explorer will automatically run a malicious dll from the desktop. actual post and proof-of-concept code here [fc2.com].
        seems like a misleading summary to me.
        IE won't run anything "automatically." It sounds like the problem is that Safari both autodownloads to the desktop and then tells IE to open that file on its next load.
        • Re: (Score:3, Informative)

          IE will load its DLLs automatically. If the current PATH contains the DLL, IE will use that version instead of the system version.
        • by spud603 (832173) on Wednesday June 11 2008, @03:21PM (#23753039)
          from TFA:

          The problem originated from an error that Windows Internet Explorer will load some program library files(DLL) from user's Desktop instead of its own library file folder(usually C:\WINDOWS\SYSTEM32). Apple's Safari for Windows downloads and saves requested file to user's Desktop by default - this default behavior itself does not constitute a mistake.

          The 'workarounds' suggested by MS include "Change the download location of content in Safari to a newly created directory". I don't actually know what's going on with this, but it seems like it's IE opening an improperly-named (or maybe there's some bad meta-data that comes along with it?) file from the desktop, no matter how it got there.
        • by FatMacDaddy (878246) on Wednesday June 11 2008, @04:07PM (#23753827)
          You know, this is pretty clearly explained in the article. To quote: "Microsoft's advisory says that the vulnerability has to do with the way Windows handles desktop executables and recommends that Windows users "restrict use of Safari as a Web browser until an appropriate update is available from Microsoft and/or Apple."

          So yes, IE is in fact autoloading executables from the desktop. It's Safari's vulnerability to carpet bombing that sets the stage, but it's IE and Windows that cause the big boom.

      • Read Slashdot: Microsoft Urges Windows Users To Shun Safari [slashdot.org] - it explains what happens in more detail.

        Basically, on Windows Safari automatically downloads files, in imitation of its behavior on OSX, but whereas on OSX it downloads them to a nice ~/Downloads directory on Windows it downloads them to the desktop. Also, on OSX Safari tags the downloaded file as 'unsafe', but it fails to use the Windows functionality to do the same on Windows. This leaves a whole load of files that you never asked for or wanted lying around on your computer in a state that is one step away from being executed.

        This 'attack' allows a malicious person to force Safari to dump thousands of files on your desktop, which in and of itself is not a nice thing, but when coupled with other exploits it can lead to code execution of these files you never wanted in the first place - whether those exploits are patched by the vendor (Microsoft) or not, we both know that a significant portion of desktops are not kept fully up-to-date with security releases.
        • mod parent up (Score:5, Insightful)

          by spud603 (832173) on Wednesday June 11 2008, @03:28PM (#23753177)
          very informative.
          If Windows has an "unsafe" flag for files, it should be used by Safari. Also, I find using desktop as default download space incredibly annoying (yes, i'm looking at you firefox).
          That said, IE should also know better than to execute random files from the desktop, which seems like the nastier issue here.
          • There is one (Score:4, Informative)

            by Titoxd (1116095) on Wednesday June 11 2008, @04:13PM (#23753919) Homepage

            If Windows has an "unsafe" flag for files, it should be used by Safari.
            Windows has it. It's the Attachment Execution Service [bartdesmet.net], located in the Alternate Data Streams [wikipedia.org] in NTFS.
              • Yup! (Score:5, Informative)

                by nobodyman (90587) on Wednesday June 11 2008, @08:17PM (#23757139)

                It would be easy enough to test this out though. manually download this DLL using IE (which marks the file as unsafe), then fire up IE7.
                I tried it out: the exploit still works when you manually download the file using IE instead of Safari. So either IE isn't marking downloaded executables as unsafe either, or IE ignores this flag when loading DLL's. Either way it undermines the"Apple is at fault" argument.

                Carpet bombing is still an issue, if for no reason than it is an annoyance.