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:
  • Too integrated (Score:5, Insightful)

    by m50d ( 797211 ) on Sunday May 08, 2005 @05:53PM (#12470957) Homepage Journal
    This is what happens when you tie together parts of the OS that shouldn't be put together. In particular, has apple not realised that having the browser tied to anything that expects local rather than remote content is fundamentally an incredibly stupid idea?
  • by Janitha ( 817744 ) on Sunday May 08, 2005 @05:56PM (#12470980) Homepage
    There is no such thing is a secure OS, all Operating systems have flaws.
  • Re:widgets limited (Score:5, Insightful)

    by ender81b ( 520454 ) <wdinger@@@gmail...com> on Sunday May 08, 2005 @05:57PM (#12470987) Homepage Journal
    True, true. But hasn't apple learned anything from MS? Automatically running/installing *anything* from the internet is a bad, bad idea. And a widget could, in theory, do things like make widget pop up ads, revolving goatse/tubgirl widget, etc.

    Basically, bad apple bad. Fix.
  • by mattgreen ( 701203 ) on Sunday May 08, 2005 @06:00PM (#12471011)
    If this were a Microsoft product, the consensus would not be nearly so optimistic. Between this and the 19 holes recently fixed, looks like Apple doesn't exactly have a sparkling record when it comes to security anymore. Much better than Windows, but then again pretty much everything is.
  • Re:The solution (Score:5, Insightful)

    by ender81b ( 520454 ) <wdinger@@@gmail...com> on Sunday May 08, 2005 @06:01PM (#12471014) Homepage Journal
    The solution to spyware on windows is to turn off activex in internet explorer and set it to run as guest...

    It's just common sense.

    Seriously though this is a very bad idea and apple needs to fix this ASAP.
  • by Anonymous Coward on Sunday May 08, 2005 @06:04PM (#12471041)
    No, it should be pretty easy to tell what is a "safe" file. PDF, for example, is a safe file, as is HTML, as is a GIF. A dashboard widget is NOT.

    Apple really screwed up with allowing dashboard widgets to be listed as a "safe" file and they need to patch this as soon as possible. This is one of the big problems with IE, that they went from "autoopen anything, even unsafe stuff" to "warn you about viruses when you try to download ANYTHING, including a PDF". Clearly identifying what is safe is as important as identifying what is unsafe, otherwise people just double-click everything they download not realizing it's a .app.
  • Re:widgets limited (Score:5, Insightful)

    by ender81b ( 520454 ) <wdinger@@@gmail...com> on Sunday May 08, 2005 @06:06PM (#12471054) Homepage Journal
    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.
  • by Anonymous Coward on Sunday May 08, 2005 @06:06PM (#12471055)
    or the Mac will end up being as full of malware as Windows

    The reason Windows is so full of malware is because everyone uses it.
  • by Temporal ( 96070 ) on Sunday May 08, 2005 @06:06PM (#12471057) Journal
    as there is no way to tell whether any file is actually "safe".

    Wrong. Text files are "safe". JPEG files are "safe". Java applets are "safe". Flash is "safe". Any software written in a verifiable-bytecode-based, pointer-safe language with capability-based security should be "safe".

    Obviously a dashboard widget should not be considered safe, but that doesn't prove that it's impossible to tell if a file is safe. It only proves that the Safari developers made a mistake when deciding what should be considered safe.
  • by pelorus ( 463100 ) on Sunday May 08, 2005 @06:07PM (#12471063)
    First, when a widget starts to download, Tiger prompts me and says "This download contains an application, do you want to continue?" That should be the first dead-giveaweay.

    Secondly, while the OS DOES copy downloaded widgets to the Widgets folder in the Users directory, the widgets do not become active until you actually activate them. (of course there's nothing stopping you from usign the same name and icon as ...say Calculator).

    Getting widgets to do complex system-level stuff you WANT them to do is tough enough.
  • by linguae ( 763922 ) on Sunday May 08, 2005 @06:12PM (#12471095)

    Same thing on my computer. I'm running Firefox 1.0.1 on FreeBSD, and the exact same thing happened. At least Firefox asked what to do with the file before downloading it, but still it is a bit weird.

    I guess that you can run away from Windows and all of its problems with ActiveX and Internet Explorer, but you can't hide from all of the problems of Internet security. All this takes is for some clueless Mac users to just say "Yes" when Safari asks does the program want to be downloaded/run, and voila, they get the Macintosh equivalent of spyware. Just as easy as it is in Windows.

    This problem needs to be fixed quickly, before spyware widgets start becoming more common on the Mac platform. And users need to be more educated about such dangers such as software automatically downloading themselves. They need to know how to withstand social engineering abuses, and they also need to get into their heads quickly that just because they're away from Windows and Internet Explorer doesn't mean that they're away from crackers and exploiters.

  • by Mike McTernan ( 260224 ) on Sunday May 08, 2005 @06:12PM (#12471098)

    Which you should left unchecked if you're not entirely stupid

    I always thought that one of Apple's selling points was that they are made for non-experts. So giving users an option to potentially shoot their foot off seems to be a little unfortunate. Almost by definition, few people are experts.

  • by mcc ( 14761 ) <amcclure@purdue.edu> on Sunday May 08, 2005 @06:15PM (#12471112) Homepage
    Safari is uber paranoid about other filetypes now-- if you download a tar or a dmg it says "warning, this file may contain an application, are you sure you want to uncompress this?" It didn't do this before Tiger.

    The unzip/install widgets thing wasn't a conscious decision. This is clearly a bug.
  • by EtherAlchemist ( 789180 ) on Sunday May 08, 2005 @06:17PM (#12471135)

    That's quite apt. And I imagine you will be modded down due to the OS in question here.

    When a Windows OS exploit is discovered there are thousands of zealots who scream "USE LINUX, STUPID" and "I use a Mac, there are not exploits for my OS" but whenever either of those OSes is found to have a flaw, those zealots are awfully quiet.

    The best thing for me reading the comments so far has been the Mac users who point out that settings can be changed to allow or deny this action. They treat that like it's a magic feature only Mac has, when the truth of the matter is shit like that can be turned off in Windows also.

    All of the common OSes can be locked down tight, IF THE USER CHOOSES TO. Every OS ships with the potential to be exploited, and even if it comes out the box secure, the user can always undo that.

    I guess the difference when it's a Mac OS, it's a big deal because someone actually bothered to write something malicious for a small segment of the computer population.

    This is actually a good thing though. It's lets all of you Mac users know that the security you've been takeing for granted is only as good as long as their is no attention to you.

    Looks like this is changing.
  • by SmoothTom ( 455688 ) <Tomas@TiJiL.org> on Sunday May 08, 2005 @06:18PM (#12471139) Homepage
    With this new addition to Safari under Tiger, Apple has made a large step in catching up with Microsoft Windows...

    Now the script kiddies won't feel as limited in their options in annoying Mac users just like they do MS Windows users.

    A nice, new, open window (no pun intended) for the black hats to use... *sigh*

    --
    Tomas
  • by rice_burners_suck ( 243660 ) on Sunday May 08, 2005 @06:28PM (#12471204)
    You would think that Apple, being such an innovative company, would learn from Microsoft's mistakes.

    Yes, I know that Dashboard programs cannot (supposedly) affect the filesystem outside of their bundle. And I know that if you uncheck the "automatically open downloaded blah blah blah" then Safari won't do that.

    But the default is not secure! And that's what will cause the computer to do "weird" stuff like the above; the same type of stuff that annoys Windows users and gets them thinking about buying a Mac next time. (Four people at work have already bought a new Mac specifically because of past problems with malicious code in Windows.)

    Since OS X is based on UNIX, providing rock-solid security for non-security-conscious users shouldn't be any trouble at all. The mechanism is all there; all Apple needs to change is the policies of the default install, and nearly all users will be safe from crap like this.

    First, downloaded files should, by default, not be opened automatically. If the user wishes to change this setting, it's the user's responsibility. Second, any downloaded files, bundles, scripts, etc., should not have the execute bit set by default. When the user tries to run it for the first time, OS X will ask for the password, like it does when you install X11 or Final Cut or something. Only then will the execute bit be set. This is not a small inconvenience; rather, it is a huge convenience. Sure, you have to type a password to run a downloaded program for the first time, but that's only as annoying as finding out the bank put an extra $10,000 in your account by mistake. And your computer won't suddenly acquire programs/spyware/malware/adware/viruses and other nice stuff that you didn't intend it to acquire. This is extremely convenient. It's an additional level of security for safety-conscious parents who use Tiger's new child-safety features. It's good for owners of computers with multiple users, who don't want people to run arbitrary code that came from God knows where.

    Apple could and should take this a step further. At some point, people will find ways to screw up Macs with programs/spyware/malware/adware/viruses, especially if they become pretty popular. Apple could prevent this before it happens. Provide an online database of MD5 sums of binaries for OS X, and provide a mechanism in the OS to report bad software and where it came from. Perhaps people could post a comment with their claim. The system would be moderated by the community, so good software won't end up listed as bad. There are plenty of Mac zealots who would participate. When you try to run any program for the first time, whether it comes from the Internet, a CD, or wherever, OS X might first compute the MD5 sum and compare it to the online database. If the MD5 matches, OS X will warn the user and perhaps allow the user to browse the comments posted about this program. Comments like, "This program sends all keystrokes to the goatse site!" The user can then decide whether to run the program or clean it off the system. Not connected to the Internet? The database shouldn't be that large... When you install OS X, the latest version could be placed on the HDD, and when you connect, it could automatically update it. Bam... Pretty good protection against the spyware problem, BEFORE it comes to the Mac. Proactive... not reactive like the Microsoft crowd.

    I use Macs, Linux, and the BSDs.

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

    by mrchaotica ( 681592 ) on Sunday May 08, 2005 @06:28PM (#12471211)
    Yeah, but "unchecked" should be the default.
  • by linguae ( 763922 ) on Sunday May 08, 2005 @06:32PM (#12471242)

    Troll?

    What is so great about the integration between Safari and Dashboard and what's so bad about the integration between Internet Explorer and ActiveX? Why should a web browser be allowed to automatically download and install certain types of programs remotely? These programs could access the Internet, too. I can see a lot of problems with this. Imagine widgets displaying pop-up adertisements, hardcore porn widgets, spyware widgets, you name it... I don't think that these widgets have the power to format hard drives, but the integration of the web broswer and external programs is very troublesome to me. Look no further than Internet Explorer and ActiveX if you want an example.

    To say a kind of cleaned-up version of what the parent poster said, operating system and desktop designers and programmers should look very carefully about the features that they are adding to the program before they release it to the public. Security should be a major concern, especially if those programs are directly tied to network connections. Programs connected to the Internet should never be integrated with system functions such as installation; that's how you get Internet Explorer and ActiveX. I expected Apple to have a little more sense in feature consideration and design, but I was disappointed. Hopefully they fix this in Tiger 10.4.1 before this becomes more widespread.

  • ... 19 holes recently fixed ...
    Better to have the holes exist and be patched than to have them exist and not patched, or denied that they exist (also know as "just plain ignored"). Software will always have holes. The security record should be measured on how quickly they get patched AND how many exist.
  • 10.4.1 (Score:2, Insightful)

    by cocoacow ( 838794 ) on Sunday May 08, 2005 @06:56PM (#12471454) Journal
    This is why apple is wating a little bit on releasing the first update to tiger, that way they will be able to nip all thoes nasty bugs and oversites in a nice update. Rest assured mac folks, this will get fixed Apple is really up on the security thing and they will problably set it up so that you are asked before installing any widgets. At least no matter how bad the fllaw is it isn't something that can comprimise the system itself.
  • by diamondsw ( 685967 ) on Sunday May 08, 2005 @06:57PM (#12471460)
    No, because as you said, out of the box security is important. Mac OS X has no services running out of the box; Windows had several exploitable ones prior to XP SP2 (which I give them credit for doing a good job with).

    As for this vulnerability, it is Safari categorizing a Dashboard widget as "safe" when it clearly isn't. Yes, it's a vulnerability, one with an exploit already shown, and it needs to be fixed NOW. No one is saying Apple is perfect or OS X is immune, but so far there has been very little to point to in Apple's track record.

    What's really important is Apple's response. Anyone post this in RADAR yet? "As Seen On TV", any thoughts from your unique position?
  • by Hawthorne01 ( 575586 ) on Sunday May 08, 2005 @06:59PM (#12471486)
    All I want is the ability to turn off Dashboard from the GUI. completely. Not individual widgets, the whole darn thing. I can do that with Konfabulator, but Dashboard is always on.

    THERE'S the real security hole, IMO.

  • by aristotle-dude ( 626586 ) on Sunday May 08, 2005 @07:10PM (#12471571)
    How is this insightful? Having it on does not create a security hole. Security holes are created by flaws in the design but where is the real flaw here? All I see is FUD.
  • by stevejobsjr ( 409568 ) on Sunday May 08, 2005 @07:14PM (#12471604)
    Watch Activity Monitor. It doesn't launch until the first time you call it up. Disable the key commands to bring it up and it'll never start.
  • by toddestan ( 632714 ) on Sunday May 08, 2005 @07:43PM (#12471864)
    How is this insightful? Having it on does not create a security hole. Security holes are created by flaws in the design but where is the real flaw here? All I see is FUD.

    FUD? What is one of the first things you should do to lock down any box? How about turning off any unnessecery services. Things that you can't turn off is one of things people blast Windows for all the time. Why should any other OS be any different?

    And even if the program poses no risk, if I don't use it, why would I want it sitting there chewing up system resources?
  • Re:Ouch! (Score:2, Insightful)

    by Ender_Wiggin ( 180793 ) on Sunday May 08, 2005 @08:19PM (#12472154)
    "Safe" files are supposed to be non-executable files. Safari preferences state "Safe files include movies, pictures, sounds, PDF and text documents, and disk images and other (ZIP, .Sit, .rar) archives."

    Widgets seem to be considered "safe" but this could change in a patch.

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

    by LO0G ( 606364 ) on Sunday May 08, 2005 @08:31PM (#12472238)
    So does IE. ActiveX controls have ALWAYS prompted.

    And with XP SP2 (released in AUGUST) unsigned binaries simply can't be installed, and the default is "NO" for signed binaries...

    Somebody thought they had a cool feature and didn't think about the consequences.
  • Re:Ouch! (Score:5, Insightful)

    by soulhuntre ( 52742 ) on Sunday May 08, 2005 @08:40PM (#12472308) Homepage
    Um, never? Because it actually prompts you and asks you if you're sure you want to run it?

    So the fact that IE does the same thing for, say, ActiveX and has similar options for control is consistently ignored on /. int he name of the great Jihad but a exactly similar (or worse) Apple problem gets apologists running.

    So amusing.
  • Re:widgets limited (Score:2, Insightful)

    by Elliot Anderson ( 743825 ) * on Sunday May 08, 2005 @08:59PM (#12472467)
    As for hiding the widget using a 1x1 transparent GIF, it would be instantly noticible when you clicked the Widget Management button (the little circle with an x in it in the lower left corner). When it is activated and the widget drawer is open, all of the widgets have their own "Close Widget" button that hovers a few pixels away. So it is pretty much impossible to hide a widget without it becoming somewhat noticible.
  • by hey! ( 33014 ) on Sunday May 08, 2005 @09:41PM (#12472705) Homepage Journal
    It certainly makes you wonder -- what was apple thinking? How many years have there been security issues with ActiveX? How could anybody with an IQ above tepid water possibly think an autoinstallation feature is a good idea in a web browser at this late date?
  • by Scudsucker ( 17617 ) on Sunday May 08, 2005 @09:48PM (#12472769) Homepage Journal
    The mere repetition of speech or ideas does not increase or decrease their correctness, or the aesthetics of their form.

    Not when they aren't remotely correct in the first place. Apple is the only company where you can count on these arguments being made. And most of the time these people don't even bother to read the comments before posting the "but if this were Microsoft" drivel. This was demonstrated perfectly in the book banning story - someone complained that "if this were Microsoft you guys would be outraged" - completly ignoring the many "Steve Jobs is a consumate asshole" posts modded up to +5 Informative.

    You, sir, are a troll.

    Wrong. I'm pointing out that these people are hypocrites - the critisize the supposed "group think" of Slashdot, nevermind that they are parroting the "if this were Microsoft" line that was old before Hot Grits went out of style. These comments are just as much trolls as the guy claiming that BSD is dying and the guy wondering why it's taking him 20 minutes to copy a 17 meg file onto a Mac from across a network.
  • Re:Ouch! (Score:3, Insightful)

    by peragrin ( 659227 ) on Sunday May 08, 2005 @09:49PM (#12472779)
    First I have seen windows install software without the user being prompted right at work. They ask me when a pop up ad comes up and looks like a regular dialog box.

    Second Active X is a cool feature and nobody thought of the consequences at MSFT. there were reports in the late 90's about active X showing it's potential for harm. It took a few years, but guess what people.

    I will give MSFT this much at least a full third of the crap they have to deal with is stupid users. And stupid users can fsck up any OS.

    It's just harder to maintain control when windows apps require admin settings.
  • by MsGeek ( 162936 ) on Sunday May 08, 2005 @10:10PM (#12472917) Homepage Journal
    Today has really been a bad day for computer users. All we need next is Yet Another New Windows Exploit/Virus/Trojan/Worm and our day will be complete. :P
  • Re:Ouch! (Score:4, Insightful)

    by JudgeFurious ( 455868 ) on Sunday May 08, 2005 @10:17PM (#12472949)
    Is it "exactly" or is it "similar"?

    Or is it "worse"?

    I'm confused here but I'm not running. Of course I'm not an apologist either.

    Whether you're talking about IE or Safari the same thing holds true. Saying "yes" when you're prompted despite not knowing what you're installing means you're a fucking moron and you deserve whatever you get.
  • Re:Not an exploit (Score:3, Insightful)

    by drsmithy ( 35869 ) <drsmithy@nOSPAm.gmail.com> on Sunday May 08, 2005 @10:54PM (#12473179)
    Except for one thing: the user has to EXPLICITLY GRANT it permission to run! Forget about the fact this is a Dashboard widget, or that he can write a goatse widget, or that he can make Dashboard unusable, etc etc etc. I don't CARE what the widget does. It can only do these things AFTER IT HAS BEEN GIVEN EXPLICIT PERMISSION TO RUN BY THE USER CLICKING "YES" IN A DIALOG BOX ASKING HIM/HER IF THEY'RE SURE THEY WANT TO RUN IT!

    Millions of email viruses and Windows spyware rely on exactly the same thing. That doesn't appear to have slowed them down any. Hell, there was a not-insignificant outbreak of a particular Windows trojan that required users to extract it from a *password protected zip file* before running it.

    Isn't it funny how the only "exploits" people can find for Mac OS X almost always exclusively revolve around social engineering, and never real flaws in the platform itself?

    Nearly as funny as the people who hold up the 95%+ of Windows "vulnerabilities" that rely on social engineering as proof of its "insecurity".

  • by EtherAlchemist ( 789180 ) on Sunday May 08, 2005 @10:55PM (#12473182)

    Good thing it hasn't happened then.

    Sure it has. Still does [secunia.com], past [utah.edu] and present [geek.com] examples.

    Joke or not, your comment is indicative of the denial most Mac users seem to live in- "If it's not Windows, it's secure" and "If I don't hear about it, I must be OK" but the fact is that Mac OS X uses BSD, BSD has holes == Mac OS X has holes. Mac OS X is written by people who want users to have the easiest possible experience using their Mac. As a result, some of the things in place to make usability easier open up holes. This is the same for any OS. Anytime you cater to the user first and security second (or later) you will always ALWAYS provide someone else a way in.

    I have no problem with using one OS or another, I use whatever the hell I need to get the job done- to me it's a tool, not a lifestyle. As such, I make sure my tools are safe and pay attention when someone says my OS has a hole or exploit or vulnerability, rather than just refusing to believe it's true.
  • by EtherAlchemist ( 789180 ) on Sunday May 08, 2005 @11:33PM (#12473434)

    Whatever. An exploit is an exploit. Patched or not, a hole is a fucking hole.

    I use a Mac, I know damn well updates are up to ME to install if I choose so. Any exploit and vulnerability EVER found in a Mac still exists, simply releasing a patch DOES NOT MAKE IT GO AWAY.

    Case in point, last week 20 patches for vulnerabilities for 10.3.9 were released. Those are fixed in 10.4. Does that mean the hole is plugged? NO. A patch was released and the new software doesn't have the flaw, but anyone still running 10.3.x without the patches installed is still at risk.

    Is it stupid to not install the patch, yes, duh. And yet people on all OSes fail do to just that.

    Want me to put up? HERE [apple.com] it's from the holy seat itself.

    It's a fact, one you overlook so you can act like an ass instead. Do so if you want, but stop pretending Mac OS is invulnerable.

  • by Animats ( 122034 ) on Monday May 09, 2005 @01:26AM (#12474000) Homepage
    The whole concept of browsers installing executables is just wrong. Microsoft created Active-X as a way to make sites incompatible with non-IE browsers and to fight Java, not because it was a useful idea. So then Mozilla goes and implements their own answer to Active-X for downloading and installing executable add-ons. Then Apple does the same.

    Then these downloaded executables then get run with all the user's privileges, not in a jail or sandbox. Java may not be perfect, but at least Sun understood they had to run applets with less privileges than user applications.

  • by GotenXiao ( 863190 ) on Monday May 09, 2005 @02:45AM (#12474317)
    Technically, this isn't a MacOS exploit - it's a Safari exploit. Unless of course, we're including browser exploits, in which case your point about locking stuff down becomes invalid because Internet Swiss Cheese *can't* be locked down that far. Sure, you can switch off ActiveX. And JavaScript. And just about everything else. Good luck browsing the web.

    And to be fair, it wasn't a malicious exploit.
    "I went to the trouble of making it ostensibly useful: it is a countdown timer for the launch of alleged PayPal competitor GreenZap. GreenZap is probably a Ponzi scheme, but do remember that PayPal gave away money when they were new, and it really would be a good idea on general principle if they had competition."
    As he mentions on his site, it could easily have been a lot more evil and/or damaging. Then again, he *does* link to the more evil version... But it should bring it home quite well for the Mac users.
  • Re:widgets limited (Score:3, Insightful)

    by BasilBrush ( 643681 ) on Monday May 09, 2005 @03:16AM (#12474428)
    It's not an application, it's a widget. On your preferred browser, are you asked everytime before a flash plugin is downloaded and executed? No, not unless you disable flash. It's similar with these widgets, except they are not executed automatically, only downloaded.
  • by Lussarn ( 105276 ) on Monday May 09, 2005 @04:02AM (#12474629)
    It still fills up your harddrive with possibly malicious crap. If thats ok for you Apple didn't do anything wrong even this time.
  • Re:Dashboard tips (Score:5, Insightful)

    by Kyusaku Natsume ( 1098 ) on Monday May 09, 2005 @04:12AM (#12474655)
    Certainly the cleanup and prevention is easy, but the fact that Safari downloads automatically widgets without user intervention/request is incredibly stupid, even more than the autoinstall -this is already stupid-, the guys who put those "features" on an fairly secure, wonderful and useful system sould be fired; this is seer incompetence, and a disservice for the rest of the fine, great OS X team. What the hell where they thinking? This sould have been scrapped in the design phase of Dashboard.

    I read this 5 hours ago and still I'm amazed. I say this has a -otherwise- happy mac user, and someone that made 6 friends switch to the mac.
  • Re:widgets limited (Score:1, Insightful)

    by Anonymous Coward on Monday May 09, 2005 @06:52AM (#12475575)

    Safari installs the widgets without prompting the user. Dashboard DOES NOT prompt the user the first time a widget is run IF the widget was installed via Safari. Widgets can run "rm -rf /".

    Which part of this makes me the idiot?

  • by TomorrowPlusX ( 571956 ) on Monday May 09, 2005 @07:45AM (#12475836)
    When I installed Tiger I thought to myself "why hasn't apple provided a mechanism for Widget management?"

    Secondly, I thought to myself "it would be so easy for a widget to do nasty things"

    So, here's what I'm going to do: I'm going to write a preference pane to manage widgets. It'll come in a few phases:

    Phase 1) Preference pane which will allow you to turn on/off particular widgets in your ~/Library/Widgets folder by moving turned-off widgets to, say, ~/Library/Widgets (Disabled). I just did a test and discovered that the parent process of Widgets is the Dock, which means that the Dashboard is just a Dock mechanism. So, killing the dock ( politely, even ) will give Dashboard a chance to reload, since the Dock restarts automatically.

    Phase 2) Write a widget scanner -- something which greps the widget source for keywords like widget.System() and whatever parameters are required for custom binaries which widgets can run. Now, I recognize I can't tell *what* those calls do, but I can at least put up a big red exclamation point next to the widget in the preference pane saying "This widget is potentially dangerous"

    Phase 3) Write a small bundled app to be packaged with the preference pane which associates itself with the .wdgt extension, and (somehow) gets higher association relevance than the Dock for execution. Then, when a widget is double-clicked on it gets copied directly into ~/Library/Widgets ( Disabled ) -- giving you the chance to enable it or not before the Dashboard gets it.

    This sounds like a PITA, but Apple shoulda done this in the first place.

    Apple: You're drunk on the perceived security of your platform. Don't keep making the stupid mistakes.

    A -- potentially better -- option is to have something like an "approved" widget download area. Say, apple's servers, where you know widgets hosted there have been given the thumbs up. Doesn't Firefox do something sort of like this for extensions?
  • by Anonymous Coward on Monday May 09, 2005 @08:32AM (#12476054)
    etheralchemist whines
    I have no problem with using one OS or another

    Why is it that the energizer bunnies parading back and forth about how win xp is better than mac os x, always insert a caveat that they don't really care about which os they use? Note: i only use the term "energizer bunny" for those win xp fanboys who make the utterly lame claim that mac os x relies entirely on security through obscurity, and that the number of exploits is directly proportional to market share (which it's not).

If you have a procedure with 10 parameters, you probably missed some.

Working...