Slashdot Mirror


Safari "Carpet Bomb" Attack Code Released

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

118 comments

  1. Secure from the ground up! by HerculesMO · · Score: 0, Flamebait

    Oh wait..

    --
    The price is always right if someone else is paying.
    1. Re:Secure from the ground up! by spud603 · · Score: 5, Informative

      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.
      seems like a misleading summary to me.

    2. Re:Secure from the ground up! by Entropy2016 · · Score: 0, Redundant

      Maybe it's just me, but this looks like it's just Safari for Windows. I tried to click on the live example and it just downloaded an exe file.

    3. Re:Secure from the ground up! by Colonel+Korn · · Score: 3, Informative

      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.
      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.
      --
      "I zero-index my hamsters" - Willtor (147206)
    4. Re:Secure from the ground up! by bluelip · · 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.

      --

      Yep, I never spell check.
      More incorrect spellings can be found he
    5. Re:Secure from the ground up! by Anonymous Coward · · Score: 0

      Mod parent down -1, idiot.

    6. Re:Secure from the ground up! by Anonymous Coward · · Score: 0

      Safari shouldn't download files automatically, If His Royal Highness Jobs can't cope with the obvious, there should be an option to disable this cock-up.

    7. Re:Secure from the ground up! by spud603 · · Score: 4, Informative
      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.
    8. Re:Secure from the ground up! by Richard_at_work · · Score: 5, Informative

      Read Slashdot: Microsoft Urges Windows Users To Shun Safari - 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.

    9. Re:Secure from the ground up! by peragrin · · Score: 1

      um safari at least for me downloads directly to the desktop. then again when the download finishes instead of auto opening the file OS X pops up a dialog to manual confirm that I downloaded an application/disk image/zip file. where as jpgs, gifs, pdfs just save automatically.

      --
      i thought once I was found, but it was only a dream.
    10. Re:Secure from the ground up! by Pope · · Score: 1

      but whereas on OSX it downloads them to a nice ~/Downloads directory

      No it doesn't. It downloads to ~/Desktop by default. You have to change that yourself. (Unless 10.5 has a new folder that 10.4 doesn't)
      --
      It doesn't mean much now, it's built for the future.
    11. Re:Secure from the ground up! by Jabrwock · · Score: 2, Informative

      Yes, the "Downloads" folder was introduced in 10.5.

      --
      Magic doesn't work in my presence. My power of disbelief is too strong.
    12. Re:Secure from the ground up! by @madeus · · Score: 1

      In Mac OS X 10.5 downloads are placed in ~/Downloads, and a shortcut to the downloads folder is automatically created in the Dock.

      You can read about this functionality here.

      It's been out since last year, which in Mac OS X release terms is quite a while (10.6 seeds are just being released). It would be wise to upgrade when updates for Mac OS X are available, there is a real point to upgrading, both for developers and end users, particularly because of the number of under the hod improvements each release has seen.

    13. Re:Secure from the ground up! by Anonymous Coward · · Score: 0

      10.5 does indeed have a ~/Downloads directory, and that is where downloads go by default. It also puts them in the downloads "stack," which is quite convenient.

    14. Re:Secure from the ground up! by FatMacDaddy · · Score: 3, Informative
      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.

      --
      This space intentionally left blank.
    15. Re:Secure from the ground up! by Anonymous Coward · · Score: 0

      Well, fair point. Safari's flaw is giving Windows a connection to the internet. That's glib, but I have to ask how much responsibility a third-party application is supposed to have for how Windows works. Keeping away from politics just for a moment, is there anything like a generally-agreed technical reasoning, and precedence, for how responsibility should be divided here?

      I'm looking at it as: Application A downloads package but does not run it. Application B auto-runs it. Package p0wns system.

      How do you logically decide A or B has a security flaw? Or the system? Or a security application C?

    16. Re:Secure from the ground up! by mweather · · Score: 1

      It shouldn't, but absent any idiotic vulnerabilities in other software, it's just an inconvenience to clean up the downloaded files. No damage is done.

    17. Re:Secure from the ground up! by mweather · · Score: 2, Insightful

      In this case Application B and the system are one in the same.

    18. Re:Secure from the ground up! by profplump · · Score: 1

      It maybe shouldn't automatically download files by default. But I had better be able to tell it to automatically download files with certain MIME types -- I do not want a dialog box for every file I download.

    19. Re:Secure from the ground up! by Anonymous Coward · · Score: 0

      Inconvenience? Jesus fucking christ. You realize that all local exploits just became remote, right? You realize that some dumb twat can stuff your fucking desktop full of ten million files for giggles, right? Jesus fucking christ.

    20. Re:Secure from the ground up! by Anonymous Coward · · Score: 0

      Yes, it does. Running 10.5 here, everything from safari goes to Downloads by default.

    21. Re:Secure from the ground up! by Lars+T. · · Score: 1

      Also, on OSX Safari tags the downloaded file as 'unsafe', but it fails to use the Windows functionality to do the same on Windows. Wrong. Safari does use the Attachment Execution Service of Windows XP SP2 - unlike Firefox.
      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    22. Re:Secure from the ground up! by yabos · · Score: 1

      That's a really crazy bug. Hey, here's a random dll on the desktop, let's load it in memory! WTF is with that?

    23. Re:Secure from the ground up! by Anonymous Coward · · Score: 0

      it makes me wonder whether this should have been posted under "mac" or not.

  2. Wrong section, eds! by himself · · Score: 4, Informative

    This is a _Windows_ Safari problem, not an _OS X_ Safari problem. And yes I RTFBlogPost.

    1. Re:Wrong section, eds! by Qwerpafw · · Score: 4, Informative

      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.

    2. Re:Wrong section, eds! by oyenstikker · · Score: 3, Insightful

      "This is normal and fine behavior."

      No, it isn't.

      --
      The masses are the crack whores of religion.
    3. Re:Wrong section, eds! by IntlHarvester · · Score: 1

      Even aside from the IE issue and "carpet bombing", silently downloading things to the desktop makes it very easy to create a hack such as a fake "My Computer.exe" icon.

      It really is bad UI behavior (on both Mac and Windows).

      --
      Business. Numbers. Money. People. Computer World.
    4. Re:Wrong section, eds! by Khyber · · Score: 2, 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.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
    5. Re:Wrong section, eds! by Chas · · Score: 4, Informative

      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.

      --


      Chas - The one, the only.
      THANK GOD!!!
    6. Re:Wrong section, eds! by ruinevil · · Score: 1

      Read the bolded text over there to your left. It says Apple, not OS X. Safari is made by Apple, and is needed for the attack. Most Windows users didn't even know what Safari was until it became part of an Itunes update, which was decided by... you guessed it, APPLE.

      Don't forget, Firefox/Gecko penetration is a lot lower on Windows than in Mac OS X. Windows users generally don't change their browsers from Internet Explorer.

    7. Re:Wrong section, eds! by Anonymous Coward · · Score: 0

      perhaps people running windows should stick with their own kind! What are they thinking, encouraging apple to come on to their PCs. Its bad enough having itunes on almost every PC...

    8. Re:Wrong section, eds! by gerardrj · · Score: 2, Informative

      Marking the file safe or unsafe will likely not fix the issue. You aren't launching the DLL and IE isn't "opening it" like it would a bookmark or web archive or .jpg. It's including the DLL's code in to the execution environment of the parent process (IE) and thus bypassing any unsafe filesystem flag.

      Then again, maybe I'm wrong. If you download and install a printer driver, are you warned the driver is unsafe the first time your try to print?

      --
      Article X: The powers not delegated... by the Constitution...are reserved...to the people
    9. Re:Wrong section, eds! by Anonymous Coward · · Score: 0

      Mod parent down! If automatically downloading files is normal and fine, how do you like some websites scatter your desktop and personal directories with zillion random junks?

      Now this is carpet bombing! A Safari bug!

    10. Re:Wrong section, eds! by ClassMyAss · · Score: 3, Informative

      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.
    11. Re:Wrong section, eds! by ProfessionalCookie · · Score: 1

      Silent is a misnomer. Safari opens it's download manager and starts its work. The other option is to do the whole OPEN or SAVE dance...and then open the download manager.

    12. Re:Wrong section, eds! by IntlHarvester · · Score: 1

      The download manager stays in the background and does nothing to notify the user, so it is effectively silent.

      And yes the "Open/Save Dance" is exactly what is supposed to happen before files are saved to the disk.

      --
      Business. Numbers. Money. People. Computer World.
    13. Re:Wrong section, eds! by Khyber · · Score: 1

      I'm warned the driver is unsafe if it's not signed upon installation, BEFORE I ever print.

      Also, IE's behavior for anything unsafe (Unless you SPECIFICALLY changed the setting in options) is to ask you or outright deny it, without regard to the parent process. Has been since IE5.5.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
    14. Re:Wrong section, eds! by gerardrj · · Score: 1

      During the installation program's operation and printer setup process, yes.

      The process described is providing a raw DLL file that is being included from an insecure location without any verification, authorization or authentication.

      This has been verified by another poster in another thread: download the file with IE and put it on the desktop and the next time you launch IE, the exploit it enabled.

      --
      Article X: The powers not delegated... by the Constitution...are reserved...to the people
    15. Re:Wrong section, eds! by deke_kun · · Score: 1

      That is untrue. The Download Manager pops to front. The only situation in which it does not, is if it is already open from a previous download.

      As for the Open/Save Dance somehow being the ultimate solution to this, what do you think the average user (read: almost all users) does when they see an Open/Save box? They jam that OK key until it goes away and stops asking them a hard question. This effectively nullifies the criticism of the feature. It is worth noting that Firefox by default downloads files to the desktop, so with an average user at the controls, the "bug" is just as dangerous.

    16. Re:Wrong section, eds! by IntlHarvester · · Score: 1

      "Users are dumb", so let's make it even easier to rape dumb users! Yeah that makes perfect sense.

      Even aside from the security aspects, Safari's UI behavior is just stupid. Users can sit there pounding on a "Download" link with absolutely zero visual confirmation that something is actually happening. Love to see where that's spelled out in Apple's HIG.

      (Also forgot that this is the default behavior of Firefox (it can be turned off), and yes the social-engineering aspect is equally a problem there too.)

      --
      Business. Numbers. Money. People. Computer World.
    17. Re:Wrong section, eds! by Khyber · · Score: 1

      It doesn't have to be IE run from the desktop - IE gives preferential treatment to loading what's on the desktop by default (Remember "Active Web Content" for your desktop back from Win98? That's where this problem comes from.)

      I've known about this attack vector for years. Even FAT-based systems are vulnerable. It's actually one of the flaws responsible for WinME dying so much (there was a hidden DLL on the desktop that if corrupted would totally fry ME because of the default being to load active web content on the desktop)

      Period, integration leads to insecurity.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
    18. Re:Wrong section, eds! by Lars+T. · · Score: 1

      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. No, the problem is that you are confusing Safari with Firefox. Oh yeah, and that IE doesn't check the basic security that is implemented in Windows when it starts any old DLL on the Desktop.

      Don't believe me? Download the DLL from the page to your Desktop and restart IE - presto.

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    19. Re:Wrong section, eds! by Anonymous Coward · · Score: 0

      ...and will automatically download files if you go to some websites. This is normal and fine behavior.

      Are you on crack?

    20. Re:Wrong section, eds! by Anonymous Coward · · Score: 0

      Are you on crack? Probably Kool-aid.
  3. Quick Workaround... by Manip · · Score: 4, Informative

    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.

    1. Re:Quick Workaround... by CastrTroy · · Score: 4, Insightful

      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.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    2. Re:Quick Workaround... by Khyber · · Score: 2, Interesting

      Do you know WHY IE likes to load stuff from the desktop?

      If you disable active web content on your desktop (thus only allowing .bmp backgrounds, IIRC) I'll bet half this wouldn't happen. IE is integrated into the desktop so for it to run shit from the desktop makes sense.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
    3. Re:Quick Workaround... by Fast+Thick+Pants · · Score: 2, Informative

      Red herring. It's got nothing to do with "Active Desktop". It's just the way Windows executables typically look for .dll files -- starting with the current directory and then each path listed in the PATH environment var.

      In this case the shortcut to IE is launching the program with the user's desktop as current directory. First of all, it shouldn't -- probably it should be one level up from, there, in the user's home directory. Second, MS might want to rethink the way they hunt for .dll files for system-installed apps. Loading them from a user-writable directory is probably a bad idea. Loading them from a location that tends to fill up with random shit is *definitely* a bad idea.

      That said, Apple should take initiative here and change the default download directory, especially after the way they hard-sold the Safari installation to so many people to begin with.

    4. Re:Quick Workaround... by Fast+Thick+Pants · · Score: 2, Interesting

      In this case the shortcut to IE is launching the program with the user's desktop as current directory. Hold the phone -- after several tests using CastrTroy's method, it appears that it doesn't matter one lick what the current directory is: IE will always give preference to executables on the desktop. 1) Eating crow and 2) Yikes! I still think Apple will be able to fix this first, and should.
  4. This is a longstanding Windows flaw. by argent · · Score: 1, Insightful

    This is not a security flaw in Safari, it's using what SHOULD be no more than a DOS attack on Safari to make an attack on the longstanding security flaws inherent in the Windows browser-desktop integration. The same flaws can be attacks with minimal social engineering ... convincing a significant number of users to download a file despite any warnings is NOT a hard process... the majority of malware over the past decade that have used related flaws in the Windows security model have managed to propagate using social engineering tricks.

    I am still boggled by the fact that Microsoft didn't fix the deep problems here ten years ago.

    1. Re:This is a longstanding Windows flaw. by A+beautiful+mind · · Score: 1

      I am still boggled by the fact that Microsoft didn't fix the deep problems here ten years ago.
      The simple solution would be to provide a damn package manager, with public repositories and trustworthy install mechanism. People need to be educated out of grabbing any software from third party sources, unless they can't find it in the repository and they really need it and verified that it's a legitimate copy from a legitimate source.
      --
      It takes a man to suffer ignorance and smile
      Be yourself no matter what they say
    2. Re:This is a longstanding Windows flaw. by initdeep · · Score: 1

      Well killing off stupid users is sort of self defeating isn't it?

    3. Re:This is a longstanding Windows flaw. by brunascle · · Score: 5, Insightful

      I'd say it is a security flaw in Safari, but for different reasons. As the same blog explains, you could have Safari download an executable to the desktop that pretends to be e.g. Internet Explorer. If they normally launch IE from the desktop, they could click the fake IE next time, running arbitrary code.

    4. Re:This is a longstanding Windows flaw. by anomaly256 · · Score: 2, Insightful

      Just FYI, it's not the browser-desktop integration causing the problem with IE, it's how the win32 dynamic linking mechanism works

    5. Re:This is a longstanding Windows flaw. by argent · · Score: 1

      As the same blog explains, you could have Safari download an executable to the desktop that pretends to be e.g. Internet Explorer. If they normally launch IE from the desktop, they could click the fake IE next time, running arbitrary code.

      Yes, that's a standard part of a social engineering attack. This does make social engineering attacks easier, and should be fixed (let's start by downloading to something like %PROFILE%\Downloads instead of the Desktop). This is similar to the problem where Safari on OS X will install Dashboard widgets for you... that should not be possible.

      But next to having downloaded files execute automatically? That's a minor issue.

    6. Re:This is a longstanding Windows flaw. by argent · · Score: 2, Insightful

      Is it this one? "While trying to load some of those files, it does not provide the full path of the DLL file to the function which loads the DLL file to the memory, and therefore Windows will search for this file in the user's machine using the directories provided in the PATH environment variable, and will load the first match it will found."

      If so, why is %PROFILE%\Desktop in %PATH%?

      Oh, no, it's this one: "While this is true, the behavior of the "DLL Search Order" (when it's disabled) is to look for the DLL in the current directory, right after the Internet Explorer's directory. As most users execute Internet Explorer from the Desktop, the current directory will be of course the user's Desktop (see screenshot below)."

      Why is Internet Explorer's current directory the desktop?

      It's not because Internet Explorer is in %PROFILE%\Desktop, because it isn't.

      It's not because Internet Explorer is a shortcut on the Desktop, because that would run it with the current directory in the destination directory of the shortcut.

      Perhaps it's because the Internet Explorer icon on the desktop is a special case, because of the browser-desktop integration?

      Nah, that's crazy talk.

    7. Re:This is a longstanding Windows flaw. by Sloppy · · Score: 2, Informative

      you could have Safari download an executable to the desktop that pretends to be e.g. Internet Explorer. If they normally launch IE from the desktop, they could click the fake IE next time, running arbitrary code.

      I'd call that a fundamental flaw with the Windows environment itself. It sounds like this "desktop" thing is used as both a temporary scratchpad for miscellaneous data from arbitrary untrusted sources, and as a repository for locally trusted executables. Someone at Microsoft needs to get it straight in their head, and figure out just what this "desktop" thing is for.

      When I think of my experience with Unix-type systems, I don't think it has ever occurred to me to put PATH=/tmp in my .bashrc. I think I have done dumb things like PATH=. back in the 1980s when I was young and foolish and didn't know better, though. Personally, I think it's delightful that a bunch of teenage amateurs are trying to create an operating system. So what if they haven't yet learned what everyone else had known for decades? Let's not discourage their creativity with our stodgy pragmatism. Maybe some day it will really pay off. If they really think it all through and work hard, 2009 could be the year of the Windows desktop.

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    8. Re:This is a longstanding Windows flaw. by menace3society · · Score: 1

      Or, it could be a security invulnerability in Safari. Think about it: if everyone set up their websites so the latest Windows patches and a free anti-virus program would automatically download to the desktop and run the next time IE was opened, we could take down all the botnets and malware!

    9. Re:This is a longstanding Windows flaw. by pauljlucas · · Score: 1

      I am still boggled by the fact that Microsoft didn't fix the deep problems here ten years ago.
      Why? Microsoft has the dominant market share. They got there (and are remaining there) even with the bugs, so there's really no incentive for them to devote developers' time to fix the bugs. Until their myriad of bugs start to erode their market share in a serious way, nothing will change.
      --
      If you reply, do so only to what I explicitly wrote. If I didn't write it, don't assume or infer it.
    10. Re:This is a longstanding Windows flaw. by Kalriath · · Score: 1

      Perhaps it's because the Internet Explorer icon on the desktop is a special case, because of the browser-desktop integration?

      Nah, that's crazy talk. You're right. It is. If you set Firefox to be your Internet icon (from "Set Program Access and Defaults") Firefox could potentially do exactly the same thing - because the Internet icon is a special case (like My Computer, Recycle Bin, My Network Places, and My Documents).

      The same issue could be raised using Windows Explorer (which has no integration with Internet Explorer).

      --
      For a site about things like basic rights, Slashdot users sure do like to censor "dissent".
    11. Re:This is a longstanding Windows flaw. by argent · · Score: 1

      Every time I think I'm a cynical bastard some cynical bastard comes along and one-ups me.

    12. Re:This is a longstanding Windows flaw. by argent · · Score: 1

      the Internet icon is a special case (like My Computer, Recycle Bin, My Network Places, and My Documents).

      Which is to say that it's the fault of browser-desktop integration, yesno?

    13. Re:This is a longstanding Windows flaw. by Kalriath · · Score: 1

      No. It's nothing to do with browser-desktop integration. Especially since the browser does not integrate with the desktop (though Explorer will render a single Shell Document Viewer interface on the desktop if Active Desktop is enabled).

      --
      For a site about things like basic rights, Slashdot users sure do like to censor "dissent".
    14. Re:This is a longstanding Windows flaw. by argent · · Score: 1

      Tell me, Mister Bones, when did they make Internet Explorer a special case on the desktop?

      Why, it was in 1997, when they started the whole browser-desktop integration mess.

      Without that, they wouldn't have had any reason to treat it any different from any of the other apps they included on the desktop by default.

      Especially since the browser does not integrate with the desktop

      That's not what "browser-desktop integration" refers to.

  5. Better yet... by HerculesMO · · Score: 3, Insightful

    Best workaround is to use Firefox.

    --
    The price is always right if someone else is paying.
    1. Re:Better yet... by unspokenchaos · · Score: 0, Redundant

      i totally agree there are better browsers than IE, period.

    2. Re:Better yet... by IdeaMan · · Score: 1

      Nobody seems to be making the other point:
      There's no reason they can't start going after other applications, say Microsoft C runtime, or a host of other system dlls.
      In that case it is likely that any application launched could have the problem.

      You would deliver the binary attack this way:
      1: Download evil comctl32.dll from malicious.nl to \downloads
      2: Download Utility.exe from opensource.org to \downloads
      3: Run Utility.exe from \downloads
      4: Machine is infected
      5: P.. nvm.

      Solution is to educate users that dlls/ocxs/vbs etc are just as dangerous as .exe files.

      --
      They ARE out to get you simply because They are in it for themselves and they don't care about you.
    3. Re:Better yet... by deke_kun · · Score: 1

      Firefox, whose default download directory is where?

      Granted it gives you an Open/Save dialog first, but since when do people read let alone understand dialog boxes?

  6. Best Solution by Skye16 · · Score: 2, Interesting

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

    1. Re:Best Solution by Entropy2016 · · Score: 2, Insightful

      It's something Microsoft has to fix. The article is your friend.

    2. Re:Best Solution by Skye16 · · Score: 2, 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 victim's desktop with executable files, an attack known as "carpet bombing.""

    3. Re:Best Solution by oahazmatt · · Score: 2, 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.

      --
      Those who believe the Internet is private,
      find their privates are on the Internet.
    4. Re:Best Solution by Anonymous Coward · · Score: 0

      It's something Microsoft has to fix. The article is your friend. I don't know of any other browsers that allow a malicious website to dump a shiteload of crap on my desktop. Sounds like a browser problem.
    5. Re:Best Solution by Khyber · · Score: 1

      No, the TOTAL problem is with Safari, which refuses to use Windows' ability to mark files as safe or unsafe after being downloaded. If Safari utilized that feature, this wouldn't happen in this particular fashion.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
    6. Re:Best Solution by Entropy2016 · · Score: 2, Insightful

      The person I was responding to was talking about executing unauthorized exe on on another person's computer (to uninstall Safari). That part of the attack is a Windows+IE issue that Microsoft has to fix.

      Sure, Safari (on Windows) can carpetbomb & spam your desktop. That's potentially annoying (but ultimately doesn't harm your system).

      There's a distinction between Safari "making available" the malicious executable versus it actually being executed, which like I was saying, the person I was responding to was talking about.

    7. Re:Best Solution by Doctor_Jest · · Score: 1

      Then why isn't Windows doing it itself? Regardless of browser used.

      Would this happen with Firefox? Would this happen with Seamonkey? I'm just wondering... I don't honestly know, because I don't use Windows...

      It doesn't seem like Safari would turn off such a feature...

      --
      It's the Stay-Puft Marshmallow Man.
    8. Re:Best Solution by Anonymous Coward · · Score: 0

      Less filling!

    9. Re:Best Solution by Anonymous Coward · · Score: 0

      Tastes great!

    10. Re:Best Solution by Kalriath · · Score: 1

      The browser must do it itself, by writing an Alternate Data Stream (ADS) with the Zone Identifier (3 for Internet) the file came from.

      --
      For a site about things like basic rights, Slashdot users sure do like to censor "dissent".
    11. Re:Best Solution by PC+and+Sony+Fanboy · · Score: 1

      It doesn't seem like Safari would turn off such a feature... Yes, clearly, this is something apple would NEVER try to do... you know, apple is against crippling competition. They're all about interoperability.

      They've even decided to let us use exchange on the new iphones!
    12. Re:Best Solution by Doctor_Jest · · Score: 1

      ...Just like Microsoft?

      --
      It's the Stay-Puft Marshmallow Man.
    13. Re:Best Solution by ClassMyAss · · Score: 2, Informative

      Someone else posted somewhere here that it doesn't matter if the file is marked or not, and that if you download the file from IE or Firefox it is STILL picked up and loaded from the desktop by IE. Sounds like part of the problem is that dll's aren't being checked for safety before loading; whether this is a general "feature" in Windows or something IE specific, I have absolutely no idea, I haven't used Windows in a while so I can't check myself...

    14. Re:Best Solution by SanityInAnarchy · · Score: 1

      Then why isn't Windows doing it itself? Regardless of browser used. Because an OS has no concept of a "download". All Windows knows is that some program (probably called safari.exe) is pulling bits in from the Internet, and writing them to disk. For all it knows, this is a logfile, or a cached certificate, or anything.

      It doesn't seem like Safari would turn off such a feature... No, it just didn't turn the feature on.
      --
      Don't thank God, thank a doctor!
  7. mod parent up by spud603 · · Score: 4, Insightful

    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.

    1. Re:mod parent up by SoupIsGoodFood_42 · · Score: 1

      Call me weird, but I prefer downloads to appear on the desktop. I use the desktop as a dumping ground for anything new that I haven't yet sorted or looked into. The downloads folder is a sensible default, though.

    2. Re:mod parent up by gerardrj · · Score: 2, Informative

      Even if Windows has an "unsafe for execution" flag for files, the DLLs in question aren't really being launched through the new process/application launch APIs that would implement such a flag.
      These files are being loaded as trusted libraries of shared code that likely bypass anti-virus and other such protection apps.

      --
      Article X: The powers not delegated... by the Constitution...are reserved...to the people
    3. Re:mod parent up by nobodyman · · Score: 1

      Are you sure? Seems crazy that there would be a mechanism for marking files as unsafe when the OS (or at least IE) doesn't respect it. But this is microsoft we're talking about here.

      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.

  8. Correct section, eds! by Anonymous Coward · · Score: 0

    The section is not "OS X". It is "Apple", the folks who make Safari.

    1. Re:Correct section, eds! by Darkness404 · · Score: 1

      But you *need* IE for the attack to be successful, its as much if not more of a MS/IE problem then an Apple/Safari problem. Granted, Safari is needed for the attack, but it is IE that executes the attack much as if downloading something in Firefox and then having another program execute it, Firefox is needed but it isn't as much of Firefox's problem then the other software.

      --
      Taxation is legalized theft, no more, no less.
    2. Re:Correct section, eds! by Anonymous Coward · · Score: 0

      That's right. Safari is needed for the attack. Hence the Apple section. That's all I was saying.

      BTW, this either/or bickering of one camp saying "It's IE's fault", and the other camp saying "It's Safari's fault" is really stupid. It is BOTH Microsoft's AND Apple's fault. A pox on both their houses for this one.

  9. Dear Apple, Please stop sucking by sootman · · Score: 1, Insightful

    Why oh why, in two-thousand-freaking-whatever, do we still have issues like this? It's bad enough that Apple has "Open 'safe' files after downloading" enabled by default (and yes, they are the ones who put 'safe' into quotes, so it's not like they don't know) and being set to download files without prompting for confirmation is just as bad. We're getting into MS "Hey, let's automatically run attached executables!" territory here. Internet-related things need to be secure by default, period. (Yes, I know 'secure' is not a single magical setting, but if the choice is between "convenient, but obviously a potential attack vector" and "has at least one step between 'click' and 'pwn3d!' " then the default setting should be for the more secure of the two.)

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
    1. Re:Dear Apple, Please stop sucking by Anonymous Coward · · Score: 2, Informative

      First, read the article.

      Second, this is about a Windows flaw that Safari has not addressed (rather Apple) in its current iteration. Apple's browser can be considered a "patsy" in this... and MS is trying to pass the buck (so to speak.)

      Third, the "open safe files after downloading" is old news. Get a new schtick. ;)

      And Fourth, grow up. This isn't about Apple's security, it's about Microsoft's... and Apple's inability to prevent "stupid is as stupid does" on a Windows machine. They're good... just not miracle workers. ;)

    2. Re:Dear Apple, Please stop sucking by anomaly256 · · Score: 1

      Silly mods. This may be flamebait, but it's far more insightful than it is incite-full ;) I vote for a re-tag.

    3. Re:Dear Apple, Please stop sucking by sootman · · Score: 1

      First, I did read the article. In fact I read the first article last month.

      Second, how is "Safari will gleefully download whatever the hell you throw at it" not an Apple issue? IE doesn't do this. Firefox doesn't do this. It only happens with Safari. How again is this not Apple's fault? True, it's up to IE to run the files, but it's Safri that allows them to be put there in the first place. I'd say both are equally to blame.

      Third, it's "old news" but it's still happening and it's still stupid. If there was a murderer loose in your neighborhood for a year, would you tell your wife "Don't worry honey, that's old news"?

      Fourth, nice ad hominem. Let me repeat this: the files wouldn't be there for IE to execute if Apple's product didn't put them there in the first place. Ooh, yeah, Apple devs have to be real fucking miracle workers to make a preference checkbox NOT CHECKED BY DEFAULT. (OK, this isn't a switchable preference, but it would be the very definition of "trivial" to a) not make the app download by default, b) pop up a dialog saying "where do you want to save this file?", and, if they wanted to get really fancy, c) make this a changeable preference.)

      --
      Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  10. More FUD by Anonymous Coward · · Score: 0

    For crying out loud:

    This is Windows-only.

    The Safari problem only enables littering the desktop with files.

    It's the WINDOWS and IE problem that enables running unauthorized software.

    So, bottom line, if you're using a Mac, you're still just fine.

  11. Conspiracy?? by FataL187 · · Score: 0

    Sounds like a "Feature" to me.. If Apple is adding exploits to the "PC" then they get to make more commercials about how insecure windows is.

  12. Closest resources first by RingDev · · Score: 1

    Sounds like a scope issue. Microsoft apps are designed to look for resources/references closer first, then further as needed.

    For example, if IE needs to use mm.dll it will first look in the working folder, if it doesn't find it there, if will check the system's path variable and see if it can find the library in any of those folders.

    In this specific case, if you are running Safari, it can auto download a new file, say, 'mm.dll' to your desktop. Safari doesn't care about it, BUT, the next time you start IE from the desktop (a shortcut on the desk top, not the quick launch or start menu), it treats the desktop folder as the working folder, and seeing that nice and shiny new mm.dll in it's working folder it doesn't bother to check the system's path variable to pull the real mm.dll out of the system32 folder.

    At least, that would be my assumption of how this is happening.

    -Rick

    --
    "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    1. Re:Closest resources first by deke_kun · · Score: 3, Informative

      This is exactly what is happening.

      And yet this is listed as a Safari flaw?

      Come on, how insanely insecure is it to run executable code from the desktop! Hasn't windows had protection on the windows and system32 directories for about 6 billion years now for this very reason? And then they go and make it pull executable code from just about the least secure place on any PC.

      From where I'm sitting this is a massively Microsoft problem, but their suggested "fix" is still the easiest solution by far. But its a bandaid to a gaping oversight.

      Safari on the mac defaults to /Users/user/Downloads. Wouldn't be hard to change WinSafari to do the same, but it would almost be an admission of fault to all the IE fanboys.

    2. Re:Closest resources first by clang_jangle · · Score: 2, Insightful

      But it is a Safari flaw. If I wrote a browser and released it for multiple OSs I'd consider it my responsibility to eliminate all possible security breaches individually for each version. Though I am an Apple user and really dislike MS, it seems to me that Apple simply didn't finish the job on their windows version of Safari. True, windows is a real PITA to port software to, with all the poor security choices MS has made -- but a job worth doing is a job worth doing properly. Users of WinSafari have a right to be upset about this, and Apple should fix it straight away. After all, no one's forcing them to code for windows.

      --
      Caveat Utilitor
  13. There is one by Titoxd · · Score: 3, Informative

    If Windows has an "unsafe" flag for files, it should be used by Safari. Windows has it. It's the Attachment Execution Service, located in the Alternate Data Streams in NTFS.
  14. MSFT needs to fix this ASAP by aristotle-dude · · Score: 2, Interesting
    Having Apple change the default location from ~/Desktop to something else only for windows would not solve the real problem. The real problem is that windows should be doing the flagging of the file as potentially unsafe and IE should not be loading DLLS placed on the desktop regardless of how they got there. It is not the responsibility of the browser to flag it a file as potentially unsafe. Windows should either provide a well documented API for setting an unsafe flag on downloads separate from any IE/IE7 code or windows should be monitoring downloads and flagging them.

    Regardless of what the default is in Safari or even Firefox, a user can still change that default to anything they want including the desktop.

    As others have pointed out, the downloads folder is a Leopard specific feature used by Safari when running under Leopard and the executable warning thing is also a Leopard feature.

    --
    Jesus was a compassionate social conservative who called individuals to sin no more.
  15. Who uses safari for windows and IE? by wattrlz · · Score: 3, Interesting

    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.

    1. Re:Who uses safari for windows and IE? by mkramer · · Score: 2, Interesting

      Who uses safari for windows, period?

      But on my PC, I have mozilla as my default browser, but Picasa and Visual Studio still insist on using IE when it needs to do web stuff. I'm sure I could override that, but I haven't bothered.

      IE being the system's browsers leaves it easy to be accidently opened, methinks.

      But I'm in agreement that if Windows provides a mechanism for marking files as unsafe, it's Safari's fault for not taking advantage of that. Apple can't blame Microsoft of being at fault if they're not using the security mechanisms that Microsoft has put in place.

    2. Re:Who uses safari for windows and IE? by Anonymous Coward · · Score: 0

      Of course marking it as unsafe doesn't actually cause IE not to load it. So it is Microsoft's fault.

    3. Re:Who uses safari for windows and IE? by wattrlz · · Score: 1

      Of course marking it as unsafe doesn't actually cause IE not to load it. So it is Microsoft's fault.

      No, that makes it both their fault. Apple couldn't meet 'em halfway. Now all M$ has to do is release a patch so IE won't run stuff marked as unsafe and suddenly it's all apple's fault again. It's like if you're driving a car known to have insufficient brakes and you ram it, full speed, into a minivan full of nuns. You can say it's the manufacturer's fault for building a car with weak brakes, but if it's proven you didn't even try to use the brakes at all (no skidmarks, witnesses say no brake lights, in-car black box, etc.) it's pretty obvious that you didn't meet the car manufacturer halfway and are at least equally culpable.

    4. Re:Who uses safari for windows and IE? by aristotle-dude · · Score: 1

      Of course marking it as unsafe doesn't actually cause IE not to load it. So it is Microsoft's fault.

      No, that makes it both their fault. Apple couldn't meet 'em halfway. Now all M$ has to do is release a patch so IE won't run stuff marked as unsafe and suddenly it's all apple's fault again.

      Sorry but you are not seeing the real issue. IE should not load dlls on the desktop whether they were downloaded there automatically, on purpose or dragged there by explorer.

      That is a horrific design decision.

      If MSFT just released a patch to not run files marked as unsafe, it would still be their fault. Loading dlls on the desktop regardless of how they are marked or how they appeared on the desktop is idiotic.

      This cannot be Apple's fault since Apple did not tell MSFT to design a system that loads dlls placed on the desktop.

      --
      Jesus was a compassionate social conservative who called individuals to sin no more.
    5. Re:Who uses safari for windows and IE? by wattrlz · · Score: 1

      Philosophical refutation is a bitter medicine in that it chases comfortable falsehoods from the mind, to paraphrase Plato. Is the carpet-bombing vulnerability not a bug? Would not fixing this bug render the exploit innocuous? How many parts does the material cause of the exploit have? How do you describe the efficient cause?

    6. Re:Who uses safari for windows and IE? by aristotle-dude · · Score: 1
      How would you suggest fixing this issue? Annoy the user by prompting and changing behavior of Safari on windows? Nothing Apple could do would do a thing about the real issue which is that IE will load any DLL into memory when stored on the desktop by whatever means it was placed there. It could have been copied through social engineering or through downloading via a browser.

      MSFT has only to fix this by preventing automatic loading of any DLL on the desktop by IE.

      --
      Jesus was a compassionate social conservative who called individuals to sin no more.
  16. location is fine, automatic download is the issue by nobodyman · · Score: 1

    I prefer things downloaded to the desktop, too. However, my issue is that the files are downloaded automatically. Let's ignore the dll security flaw for a second. If Safari gains any significant traction among windows users, I guarantee that websites will use this as a vector for spamming you with ads and spyware. At a bare minimum it will be annoying.

    In fact, I'm kindof surprised that the surlier parts of the web (warez sites and such) aren't already using this to dump porn ads on your desktop.

  17. Yup! by nobodyman · · Score: 4, Informative

    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.
  18. Reminds me of an old security issue... by SanityInAnarchy · · Score: 1

    On Linux, $PATH generally only includes system directories, like /bin, /sbin, etc -- places only root can write to. Occasionally, it will add ~/bin, which the user can write to -- but which no sane browser would download to by default.

    In the Windows command prompt -- and I bet this behavior is inherited from DOS -- the current directory is included in the path. I'm pretty sure it's implicitly included -- that is, no way to disable it by editing %PATH%.

    My understanding is, the main reason PATH works this way is to make it always safe to be in a working directory. That is, "cd foo; ls" should always be safe. If you have '.' in the PATH, it's not safe to do this in a directory writable by people you don't trust -- they could always create a file named 'ls' which you would then run.

    This just seems like a variation of the same -- it might make sense to look for DLLs in the directory containing the EXE, but I don't think it makes sense to look for DLLs in the current working directory.

    --
    Don't thank God, thank a doctor!
  19. It is a safari flaw by Yaur · · Score: 1

    Safari shouldn't be downloading files without prompting the user. In this case it is a dll... but from what I understand it could just as easily be an trojan named something like "My Computer.exe".

    1. Re:It is a safari flaw by deke_kun · · Score: 2, Interesting

      I have no issue with a browser automatically downloading files. There is a reason quarantined dropboxes exist. If you're not smart enough to notice the difference between My Computer.exe and an authentic shortcut then that is entirely your fault.

      This issue is about the execution of code WITHOUT user interaction.

      You can have an argument about the pros and cons of the Safari Feature somewhere else. This is not the problem here.

  20. there are two problems by Yaur · · Score: 1

    Application A shouldn't download it without asking the user.
    Application B is not setting its working directory correctly.

  21. IE's behavior would be fine by Yaur · · Score: 1

    if its working directory was set correctly. Normally it is set to the directory that the application is in and definitely shouldn't be set to the user's desktop directory.

  22. Re:location is fine, automatic download is the iss by Yvan256 · · Score: 1

    Or even pictures saying "Your computer has been hax0red by the DropJPEG trojan" or something.

    We could also do our part, pushing an image that say something alone the lines of "Your Safari browser is not properly configured for download security, please change your default download directory to yadayda..."

  23. Source Code is actually here by zukinux · · Score: 0

    Hey guys, I've been trying to see the source code, just because it's interesting, but couldn't find it in this links (actually it took me a while to check all the links), so if you're having a problem to see the source code, here's a link :
    Source Code