Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Security Businesses OS X Operating Systems Apple

Malicious Web Pages Can Install Dashboard Widgets 610

bonch writes "If you're running Safari on OS X Tiger and go to this website, a 'slightly evil' Dashboard widget will be automatically downloaded and installed and can't be removed without manually removing the file from the Library folder and rebooting the computer. The widget is called Zaptastic and is a demonstration by the author of how easy it is to exploit Dashboard for nefarious purposes. The essay, released under the Creative Commons License, goes on to describe the many ways users can be taken advantage of--imagine porn sites auto-installing adware widgets without your knowledge." So if you're on a Mac, it would be smart to view that page with something other than Safari.
This discussion has been archived. No new comments can be posted.

Malicious Web Pages Can Install Dashboard Widgets

Comments Filter:
  • by HermanAB ( 661181 ) on Sunday May 08, 2005 @05:52PM (#12470941)
    with somethingorother.zip. Interesting, but not dangerous.
  • widgets limited (Score:5, Informative)

    by RobertTaylor ( 444958 ) <roberttaylor1234 AT gmail DOT com> on Sunday May 08, 2005 @05:53PM (#12470954) Homepage Journal
    this page [apple.com] at Apple's Developer Connection says that a 'widget' cannot ask for any resources or do anything to the filesystem outside of the widgets bundle.
  • by InternationalCow ( 681980 ) <mauricevansteensel.mac@com> on Sunday May 08, 2005 @05:55PM (#12470978) Journal
    If you do not tick the "open safe files" check box in the prefs. Which you should left unchecked if you're not entirely stupid, as there is no way to tell whether any file is actually "safe". Good Internet Practice, as I like to call it.
  • The solution (Score:5, Informative)

    by Little Grey ( 571460 ) on Sunday May 08, 2005 @05:56PM (#12470979)
    Is to turn off "Open 'Safe' downloads" in Safari's Options.

    It's just common sense anyways
  • by Bungopolis ( 763083 ) on Sunday May 08, 2005 @05:57PM (#12470985)
    This warning applies specifically to Safari. It's obviously not going to affect Firefox, because Firefox does not have the widget auto-installation feature that Safari does. Most users of Tiger, however, are probably using Safari, so this most certainly is dangerous.
  • by mindstrm ( 20013 ) on Sunday May 08, 2005 @06:03PM (#12471030)
    it's not totally evil.

    It installs the widget, but does not activate it.. it just makes it available.

    Further, widgets do run in a sandbox, and require user approval to execute if they want to do certain things (like erase your HD).

    Honestly, apple should have said "would you like to install this widget?".. that would be sensible and courteous.
  • Re:Thanks Slashdot! (Score:4, Informative)

    by YrWrstNtmr ( 564987 ) on Sunday May 08, 2005 @06:12PM (#12471096)
    FF can be set to d/l automatically. "Do this automatically for files like this from now on." If you've clicked that box in the past, zip files will be automagically downloaded. This will work for any filetype. Automatically play a .wav/mp3 file, or open a .doc, or d/l whatever.

    Dumb to do, but it can be set like that.

  • Re:Ouch! (Score:4, Informative)

    by justMichael ( 606509 ) on Sunday May 08, 2005 @06:12PM (#12471101) Homepage
    That seems liek quite a security flaw... Any timeline on it being patched?
    Preferences -> General -> Open "safe" files after downloading (uncheck)

    Problem solved. Having that pref checked is asking for trouble. You can drop whatever you want in my downloads, I'll open it myself when I'm ready.

    Disclaimer: I am not running Tiger, so this may not be 100% correct.
  • Re:widgets limited (Score:3, Informative)

    by Ilgaz ( 86384 ) on Sunday May 08, 2005 @06:15PM (#12471115) Homepage
    The software which they didn't steal :) is a very advanced application in fact. I tried it myself just recently and for windows people out there, Konfubulator XP has shipped, give it a try until it gets this time into longhorn *g*

    Asked myself why such advanced coders give plain sit,sitx,zip files for installing manually to widgets directory (or anywhere) and require user to double click it to launch.

    Now I had my answer ;)
  • Re:widgets limited (Score:2, Informative)

    by rapidweather ( 567364 ) on Sunday May 08, 2005 @06:30PM (#12471217) Homepage
    Until they fix it, take a look at this Mac LiveCD linux. [macmerc.com]

    That ought to be a lot of fun, in addition to providing a way to run another OS on your Mac.

  • by CTho9305 ( 264265 ) on Sunday May 08, 2005 @06:39PM (#12471295) Homepage
    The Mozilla Update team has taken steps to mitigate the problem - the default Firefox configuration is no longer exploitable, as far as I know.
  • by kitzilla ( 266382 ) <paperfrogNO@SPAMgmail.com> on Sunday May 08, 2005 @06:44PM (#12471329) Homepage Journal
    Yup. Safari just tossed the widget on my desktop for consideration. Still ...
  • by Anonymous Coward on Sunday May 08, 2005 @06:51PM (#12471403)
    Just setting the permissions to the ~/Library/Widget folder to "Read Only" will do the trick.

    Of course, that doesn't mean that it should install widgets for you in the first place...

  • by aristotle-dude ( 626586 ) on Sunday May 08, 2005 @07:06PM (#12471545)
    Safari will warn you when downloading a widget with cocoa calls in it by saying "widgetname contains an application. Are you sure you want to continue downloading widgetname?". You have the option to abort download and installation.


    Dashboard will ask you the first time a third-party widget is run and give you the option of not running it.


    What more should Apple do save crippling the functionality of Dashboard for all users?

  • Important correction (Score:5, Informative)

    by daveschroeder ( 516195 ) * on Sunday May 08, 2005 @07:26PM (#12471693)
    Well, it turns out I spoke too soon.

    I said that Dashboard would prompt you when the widget was run for the first time. It turns out that for auto-installed Safari widgets, it does NOT prompt you the first time the widget is run.

    Interesting.

    This is indeed a security issue, and it should be made to at least prompt the user.

    Considering that ALL other new widgets always prompt when first run, this appears to be a bug, and not the intended behavior.

    The temporary fix (and what I always recommend anyway) is to disable "Open 'safe' files after downloading" in Safari.
  • by Anonymous Coward on Sunday May 08, 2005 @07:52PM (#12471960)
    Any self describing binary file is most definitely *NOT* safe, this includes GIF and PDF. There's too much chance for buffer overflow.
  • Re:The solution (Score:2, Informative)

    by Professor_UNIX ( 867045 ) on Sunday May 08, 2005 @07:56PM (#12471997)
    The solution to spyware on windows is to turn off activex in internet explorer and set it to run as guest...

    But without ActiveX you lose the functionality that is the only reason most people still use IE at all. By shutting off "open safe files" you don't lose functionality other than convenience of not having to manually open downloaded files.

  • by uprock_x ( 855650 ) on Sunday May 08, 2005 @08:03PM (#12472046) Homepage Journal
    4:47 It's even BETTER than I remember the first time. What a classic.
  • Re:widgets limited (Score:3, Informative)

    by Jeffrey Baker ( 6191 ) on Sunday May 08, 2005 @08:11PM (#12472097)
    The bit about widgets stopping is completely false. You can connect to native code (or Java code) from your widget, and the native/Java code can do all types of things, even when the widget is off-screen.
  • Safari will warn you when downloading a widget with cocoa calls in it by saying "widgetname contains an application. Are you sure you want to continue downloading widgetname?". You have the option to abort download and installation.

    Yes, but you won't get that prompt for a widget that doesn't have Cocoa code, but does contain widget.System() calls -- which effectively means it's an application. You could put an executable in your widget, not set the executable bit, but then chmod a+x and run it from widget.System() calls.

    Dashboard will ask you the first time a third-party widget is run and give you the option of not running it.

    It's so bizarre I didn't believe myself at first, but this is not true of widgets that are auto-installed. Try it yourself -- here is my example exploit page [columbia.edu] with an entire set of widgets that look identical to the Apple widgets. You will be prompted for permission with none of them, including the `Calculator' widget, which makes a widget.System() call and could conceivably have deleted your home directory.

  • Re:Awww...How cute! (Score:3, Informative)

    by flowerp ( 512865 ) on Sunday May 08, 2005 @08:51PM (#12472393)
    Holy Shit! I have OS X Tiger, and behold. Klicking on that link installed Goatse right into my Widget collection with NO CONFIRMATION DIALOG WHATSOEVER.

    So whenever someone clicks on the "Add Widget" symbol (the circled plus sign) he gets to see a barenaked goatse in full glory.

  • Re:Ouch! (Score:5, Informative)

    by mithras the prophet ( 579978 ) on Sunday May 08, 2005 @09:01PM (#12472484) Homepage Journal
    I think you already corrected yourself above, but for others reading this, no, it doesn't prompt the user before running an auto-installed widget, which is such a fantastically bad idea I can't believe it didn't occur to anyone what a security flaw that is.
  • by Anonymous Coward on Sunday May 08, 2005 @09:43PM (#12472721)
    Actually Acrobat can run javascript embedded in PDFs, which could in theory open up a number of exploits.
  • "Solution" (Score:3, Informative)

    by Rosyna ( 80334 ) on Sunday May 08, 2005 @10:42PM (#12473104) Homepage
    Yes, if goatse.cx is porn...

    But either way, if you installed Paranoid Android [haxies.com] (direct link [unsanity.net]) it will ask you to approve the url. And it is opensourced too.
  • Better yet (Score:2, Informative)

    by GoddessEvilena ( 738870 ) on Sunday May 08, 2005 @11:09PM (#12473277)
    If you hate the Dashboard and want to get rid of it, just throw Dashboard.app into the Trash and it will never launch again.
  • by dspisak ( 257340 ) on Monday May 09, 2005 @02:01AM (#12474122)
    http://www.nonmundane.org/~dspisak/media/slashdot/ howtoprotect.png [nonmundane.org]

    Yeah this exploit is sorta lame, but its also trivial to plug in the meantime.
  • Dashboard tips (Score:4, Informative)

    by Absentminded-Artist ( 560582 ) on Monday May 09, 2005 @02:28AM (#12474219) Homepage
    Fascinating article. I installed zaptastic_evil and was amused by it. Very annoying indeed. Widgets simply should not do this.

    Just a few points of interest.

    1) The widget may automatically download and get copied into the widgets folder, but it is not automatically installed onto the active dashboard. Therefor the user would have to manually click on it. Without knowing the widget is there, the user may not ever notice it. Of course, this is still a security risk, but this isn't the best way to propogate malware.

    2) Widgets can be deleted manually as pointed out in the article by going into ~/Library/Widgets and removing the unwanted widget

    3) The Dashboard can be reinitialized by killing the Dock. Those not familiar with terminal can just fire up Activity Monitor and kill the Dock there. The Dock immediately relaunches, then Dashboard reinitializes when it is launched again and the offending widgets are gone.

    4) Apple should allow us to delete widgets from the dashboard, but the behavior when clicking and dragging a widget off of the Dashboard installs the widget instead of bringing up the delete puff of smoke. This behavior is at odds with every other taskbar/dock/menubar in OS X. I would recommend Apple change this.

    5) We ARE dealing with Dashboard 1.0 so there are bound to be bugs needing to be squashed. Personally, I enjoy Dashboard but find it difficult to manage when there are too many widgets deployed. I find myself wishing for Exposé for Dashboard! LOL I also wish that widgets would reinitialize without force quiting the dock and that the dashboard would be a bit more dynamic. Sometimes deleted widgets take a while to disappear off the dashboard as well as newly installed widgets. I look forward to the upcoming 10.4.1 release.
  • by BasilBrush ( 643681 ) on Monday May 09, 2005 @02:43AM (#12474305)
    The grandparent was right. There haven't been any exploits. Both you and the link you give confuses the concepts of exploit and vulnerability. Exploit != vulnerability. A vulnerability is only the potential or an exploit, and it often blocked by other security measures in a properly layered security system.
  • Re:Ouch! (Score:2, Informative)

    by BasilBrush ( 643681 ) on Monday May 09, 2005 @02:53AM (#12474352)
    Let me correct you. It does not run the widget unless you ask it to. visit that page and the widget is downloaded, and made avilable for you to run. But look at the Activity Viewer, and you will see that it is not a running process. Then only way it will ever become a running process is if you pick it up from the widget bar and drop it on the desktop.

    The original post is also wrong in claiming that a reboot is necessary to remove it. He must be a Windows user. Clicking close on the widget, then removing it from the user library folder is all that is required. There is no nasty embedding a registry, or auto starting or restarting such as you might expect with spyware on a Windows machine.

  • by FidelCatsro ( 861135 ) <fidelcatsro&gmail,com> on Monday May 09, 2005 @04:39AM (#12474727) Journal
    The first thing i did when i opened up safari in tiger was to uncheck the "Open Safe files after downloading" option , visted the site in safari and it just automaticaly downloaded the file and did nothing more .So theres a quick workaround till a patch is out

    I have no idea how this potential exploit slipped past , bad show indeed and rather disapointing.
    But clearly it is a bug not poor judgment.

  • Re:"Solution" (Score:3, Informative)

    by Shisha ( 145964 ) on Monday May 09, 2005 @04:42AM (#12474736) Homepage
    Another temptorary solution is to run:

    sudo chmod a-x /System/Library/CoreServices/Dock.app/Contents/Res ources/DashboardClient.app/Contents/MacOS/Dashboar dClient

    in the Terminal. Of course this prevents all Widgets from running.
  • Re:Serves you right (Score:4, Informative)

    by teh kurisu ( 701097 ) on Monday May 09, 2005 @06:49AM (#12475557) Homepage

    No, it's Safari categorising a ZIP archive as safe. To quote Safari:

    "Safe" files include movies, pictures, sounds, PDF and text documents, and disk images and other archives.

    The ZIP archive extracts automatically, and just happens to place the file in ~/Library/Widgets/. Dashboard runs the Widget from there.

    You're right, it's not safe. I think the solution to this should be to first of all disable the whole opening safe files functionality by default. The second should be to declassify archive files as 'safe' (with the exception of disk images), because it makes it easy to write files in this way.

    Personally I've set administrator priveledges on my ~/Library/Widgets/ folder so that I now need to enter a password to write to it.

  • by mp3phish ( 747341 ) on Monday May 09, 2005 @09:38AM (#12476577)
    The grandparent was right. There haven't been any exploits. Both you and the link you give confuses the concepts of exploit and vulnerability.

    Wow, have you got a lot to learn... Did you not read the article AT ALL? Claiming that the apple system is a "properly layered security system" is an opinion, not a fact. Some might agree it is more proper than windows XP. I'm not here to argue wether that is true or not. I'm here to argue that either 1) a properly layered security system doesn't give you a secure system or 2) the MacOS doesn't have a properly layered security system.

    One of the above(or possibly both) is true. It is up to you to decide which and quit sitting up on your high horse thinking you are a god for using MacOS.
  • So turn it off (Score:4, Informative)

    by __aafutm5472 ( 188247 ) on Monday May 09, 2005 @09:59AM (#12476791)
    I meant they should fix it in not allowing an untrusted remote application to be downloaded on a local computer with no interaction from the user.

    So turn off the ability. In Safari, open Preferences, and on the first tab, de-select 'automatically run "safe" files upon download.' Then, it'll download it, and you can manually install the widget by copying it to /Library/Widgets. No need to restart OS X or Dashboard, it just shows up.

    This was one of the first things I tweaked after switching to a Mac. I noticed it'd automatically mount disk image files, and I could see the potential security implication, so I found the checkbox and tunred it off.

    It's not rocket science, just basic research.

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...