Twitgit  and Twitterlex  are two MacOS X Dashboard widgets
Both regularly retrieve data using the Twitter JSON API and parse
whatever is returned with eval(). Both relax the dashboard's
amounts to the equivalent of system(3); i.e., if an attacker can
take over the widget, the attacker can take over the user's account
(and, quite often, the system).
The data are retrieved through plain HTTP. Therefore, these widgets
are vulnerable to at least:
- cross-site-scripting attacks through Twitter
- subversion of Twitter and, in the case of Twitterlex, also
subversion of a server used for update notifications
- man-in-the-middle attacks against local networks
(Also, deliberately malicious behavior by either Twitter or the
author of at least Twitterlex is a risk from a security perspective;
if one was to assume malice, then Twitterlex could be classified as
a nifty backdoor.)
What makes this case particularly interesting is that this is a case
in which -- along with the development platform, JavaScrit -- the
borders between Web and local vulnerabilities get increasingly blurry.
It would probably be an interesting exercise to go through some more
dashboard widgets and grep for eval. I'd bet quite a bit that
there's much more out there.
Thomas Roessler, W3C