Slashdot Mirror


Zero Day Hole In Google Desktop

40by40 writes "A Web application security specialist has figured out a way to launch man-in-the-middle attacks against a computer with a fully patched Google Desktop installed. With knowledge of the Google Desktop security model (a combination of one-time tokens, iFrames and JavaScript), hacker Robert Hansen figured out a way to sit between a target launching a Google search query and manipulate the search results to take control of other programs on the desktop. From the article: 'This should drive home the point that deep integration between the desktop and the web is not a good idea, without tremendous thought put into the security model. As Google's site is unencrypted, and they place their content that can run executables on their site, it can be subverted by an attacker," Hansen warns. Hansen's advisory comes just days after a Chris Soghoian's exposé of a similar man-in-the-middle attack scenario against a remote vulnerability in the upgrade mechanism used by a number of commercial Firefox extensions.'"

31 of 113 comments (clear)

  1. Re:Google operating system? by ajanp · · Score: 4, Funny

    I can see it now... A future where mankind lives in a free and secure society where we all live together in bliss running our favorite open-source customized version of the iGOOGLE operating system that checks our mail, orders our groceries, and feeds the cat without any human interaction.

    --
    File Deletion is Murder.
  2. deep integration is a good idea by Gary+W.+Longsine · · Score: 5, Insightful

    This should drive home the point that connections should flow over encrypted tunnels whenever possible, to reduce the ease of performing man in the middle attacks. If this session flowed over an SSL style connection, the man in the middle would first need to figure out how to get into that session. That strategy seriously reduces the places where malicious code can exist "in the middle". Don't throw the baby (rich client interaction with services in the cloud) out with the bathwater.

    --
    If you mod me down, I shall become more powerful than you could possibly imagine.
  3. Google imitating Microsoft security holes. by Animats · · Score: 4, Insightful

    By now, everybody developing browser components should know that you do not provide functions which can execute arbitrary programs.

    Usually, it's Microsoft doing this, with Outlook, IE, Office, etc. launching other applications. This is the source of most of the vulnerabilities involving web browsing. Now we have Google competing to offer similar security holes.

    1. Re:Google imitating Microsoft security holes. by WalterGR · · Score: 4, Informative

      you do not provide functions which can execute arbitrary programs.... This is the source of most of the vulnerabilities involving web browsing. Now we have Google competing to offer similar security holes.

      Firefox offers the exact same mechanism. Firefox extensions can contain (and run) executable code. (See below.)

      As the Greasemokey security vulnerability demonstrated, web pages can "script" Firefox extensions.

      ActiveX = executable code + scripting from the web browser. Firefox extensions introduce the same risks as ActiveX.

      Take for instance FoxyTunes, which is listed on the Recommended Add-ons page. Download the XPI file, rename it to ZIP. Open it in WinZip or whatever. You'll notice several files:

      • FoxyTunes.dll
      • FoxyTunes.dll.linux
      • FoxyTunes.dll.mac
      • FoxyTunesBonobo.so.file

      DLL files are executable code on Windows. I'm assuming the *.linux and *.mac are similar. SO files are executable code under Linux, not sure why it has .file after it. I'm sure there are more extensions with executable code, that was just the first I looked at. Look for any extension that integrates with external software - almost always there will be a DLL or EXE.

  4. Re:Google operating system? by AKAImBatman · · Score: 4, Interesting

    develop your own operating system based on Linux and get it over with.

    No offense to Linux, but I think that would offend Google's sense of style. Unix-style OSes are great when you need low-level access to the hardware (e.g. GoogleFS), but don't infer any sort of inherent advantage in the desktop arena. In fact, the classic Unix design is very desktop unfriendly, which is why all kinds of user-friendly packages like automounter have been created.

    Given the number of Ph.D. brainiacs Google has their hands on, I would expect them to create a new OS from the ground up that is more focused on the issues of dealing with the web and network in general. e.g. If it can be coded to avoid buffer overflow situations, that would be a great start. Greater focus on caching services and integrated URL handling might also be things you would see more of. Unicode everything rather than dealing with different text formats. (Incoming formats would need to be converted before they could be used.) Overall minimalist design. i.e. Don't include anything that isn't absolutely necessary to getting the job done. (Compare: The number of features on Google homepage to the number of features on the average Linux desktop.)

    I will happily eat crow if Google ever produces a Linux desktop, but gut instinct says that they won't. So don't get your hopes up.
  5. Re:Google operating system? by Anonymous Coward · · Score: 4, Funny

    GoOSE:
    GOoogle Operating System Environment

    Gotta teach those penguins a lesson sometime...

  6. Re:Logical by maelstrom · · Score: 5, Insightful

    Yeah for sure, now that Apache runs 60% of the Web, all those crackers are finding tons of exploits for it everyday!

    --
    The more you know, the less you understand.
  7. Easily solved by tedhiltonhead · · Score: 4, Informative

    It sounds like this takes advantage of the "Google Integration" feature, where the Google Desktop software adds a link to your Google search results page. I found his explanation rather unclear, but it sounds like you can avoid this by going into Google Desktop's preferences, then the Display tab, then un-checking the last checkbox, "Show Desktop Search results on Google Web Search result pages".

    I've always thought that was a scary idea anyway, since my desktop content should be in a clearly-partitioned security domain from Web content.

  8. A little over blown perhaps? by 140Mandak262Jamuna · · Score: 4, Insightful
    Basic premise of the whole scheme sketched out in the article seems to be having a man in the middle. May be an evil twin router offering network connection near a coffee shop or a malicious lap top in an airport faking an "infrastructure mode" SSID in ad-hoc mode or something like that.

    Once you are compromised this way the attack tries to take advantage of cross scripting vulnerabilities in a browser to run code in the compromised machine. I am not sure if there is anything unique to Google Desktop here. Could the same attack take advantage of the numerous ActiveX vulnerabilities?

    Is the "security expert" trying to get more mileage by listing each exploitable hole of a man-in-the-middle attack as a separate discovery?

    --
    sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
    1. Re:A little over blown perhaps? by qbwiz · · Score: 3, Informative

      I think that ActiveX components are signed/named, so there wouldn't be as much of a problem with them. Don't quote me on that, though.

      --
      Ewige Blumenkraft.
  9. Re:pwnt! by chris_mahan · · Score: 3, Funny

    It doesn't matter. Google desktop does not run on Ubuntu...

    What?

    --

    "Piter, too, is dead."

  10. Disable Indexing of Executables? by crymeph0 · · Score: 3, Informative

    How does one stop Google desktop from indexing executables? When I open the Google Desktop preferences, exe files aren't even listed as something I can index, but search for an executable like hypertrm.exe on Google desktop, and it shows up anyway, which is the 'meat' of this vulnerability.

    --
    It should be illegal to say that freedom of speech should be limited.
  11. Google size issues by ushering05401 · · Score: 3, Interesting

    Anyone want to bet that this is the beginning of a little landslide?

    I wish the Google team all the best in dealing with this issue... but I am scratching my head at the speed with which they are attempting to diversify their offerings.

    Google did not become a dominant force overnight. They fought battles, learned lessons, and refined/defined search capabilities for the entire world. Why have they been shooting off in a dozen different directions? Is there any way that even they can stay on top of all the little details considering the number of immature products they are floating?

    Anyhow, the next couple of days will go a long way towards showing exactly how far the Google team needs to go before I trust them on my desktop. Here's hoping they prove to have the response time/customer centric attitude that made them my preferred search provider.

    Regards.

  12. Thought is not enough by The+Clockwork+Troll · · Score: 5, Insightful

    This should drive home the point that deep integration between the desktop and the web is not a good idea, without tremendous thought put into the security model.

    "Tremendous thought" is a weaker notion than transparency, public scrutiny, or even rigorous proof, which are really what's required.

    Everything else is just hope; hide and seek.

    Hopefully Google can learn and set an example here.

    --

    There are no karma whores, only moderation johns
  13. installers by ruffles321 · · Score: 5, Insightful

    this is even more of a problem since more and more installers like Irfanview's or Adobe's include Google Desktop (and/or toolbar) and there is no way to skip them when doing automated installs... what a sick trend.

  14. Re:Logical by snarkbot · · Score: 3, Informative

    Yeah for sure, now that Apache runs 60% of the Web, all those crackers are finding tons of exploits for it everyday! http://search.cert.org/query.html?col=certadv&col= vulnotes&qt=apache&charset=iso-8859-1

    Yes, Apache has a good reputation for security, but like most popular, complex programs, its history is far from exploit-free.

    -snarkbot
  15. Re:Google operating system? by yintercept · · Score: 5, Funny

    "... and feeds the cat ..."

    You need to change this to read: "feed a cat". Google will feed your cat up until the index change after which it will start feeding another cat. To be grammatically precise: "a cat" will be fed. There is just no guarantee that it will be "the cat."

  16. Did the industry learn nothing? by TheNetAvenger · · Score: 3, Insightful

    Did the industry and Google learn nothing from the mistakes Microsoft made?

    Even MS has done a 180 and with Vista broke all the internal/external links that made XP/ActiveX/IE such a mess. So if MS is smart enough to learn from their mistakes you would thing a company like Google would not go out of their way to emulate the same bad security ideas.

    Is it just me, or is Google racing to be the next big evil? Gmail scanning, search data compiling, Firefox reporting, desktop document reporting, and now making really stupid software design decisions?

    1. Re:Did the industry learn nothing? by LO0G · · Score: 4, Insightful

      The problem is that for some people, functionality trumps security every time. It's unfortunate, but true.

      Sometime around 2002ish, Microsoft learned (the hard way) that functionality can NEVER trump security, and they've spent the better part of the past 5 years working on fixing the mistakes they made back in the 1990s (when functionality trumped security). You can see the fruits of that in their most recent offerings (IIS6 has had no exploitable holes in the 4 years it's been available, Vista, for all of its compatibility problems has already been shown to be dramatically better than XP was security-wise).

      Until all the vendors "get it" and realize that security should win, stuff like this is going to continue to happen.

  17. Definitely overblown by brennz · · Score: 3, Insightful

    I think the premise of the article is rather stupid in fact.

    It is not Google's job to provide a secure channel.

    I guess when I do a MITM attack to capture login prompts and transparently proxy that is google's problem also?
    Or when I resolve DNS queries to my own box, that is likewise google at fault?

    Lol.

    1. Re:Definitely overblown by CrazyBrett · · Score: 5, Insightful

      It is not Google's job to provide a secure channel.

      Yes, it is. If they're exchanging data between their desktop app and their web service, they need to do encryption and key verification to make sure the pipe isn't compromised. Stuff outside of that (like local keyloggers) is your concern, or someone else's. But between their two endpoints, they need to secure the channel.

    2. Re:Definitely overblown by naasking · · Score: 4, Insightful

      I guess when I do a MITM attack to capture login prompts and transparently proxy that is google's problem also?
      Or when I resolve DNS queries to my own box, that is likewise google at fault?


      Don't be daft, SSL was created to prevent exactly these attacks, so why isn't it being used? Why does the Google toolbar submit all your potentially authority-bearing https urls to their anti-spam service in clear text? As good as Google is in certain areas, they're absolutely horrid when it comes to basic security measures.

  18. Hanging your guts out by Colin+Smith · · Score: 3, Interesting

    It's the phrase which springs to mind with "web 2.0" applications. You have an exposed API on both sides, the client and the server.

    --
    Deleted
  19. Re:Google operating system? by poopdeville · · Score: 4, Interesting

    In fact, the classic Unix design is very desktop unfriendly, which is why all kinds of user-friendly packages like automounter have been created.

    Your point is pretty vacuous. The user-friendly packages already exist, and as OS X and Ubuntu (as a Linux example) show, can be used to great effect.

    But you're right. Google won't produce a Linux desktop. They'll probably use a BSD variant, should they ever produce a desktop at all.

    --
    After all, I am strangely colored.
  20. Re:Google operating system? by Anonymous Coward · · Score: 5, Funny

    Google Operating And Time Sharing Environment.

  21. business as usual by siddesu · · Score: 3, Interesting

    installing third-party applications that connect to someplace, download something, and do something on on your machine, and being exposed when those applications are shown to have bugs is news how?

    the google engineers aren't magicians. when they develop features, they do so under tight schedule, and make mistakes, especially those hired to code (as opposed to do PR). the only reason there haven't been more problems discovered is likely the fact that they don't distribute much software.

    besides, google's main goal isn't promoting security. their primary goal is to hookup lotsa people -- and in their case, that means to deliver applications with lotsa features quickly, because people are hooked on the features, the competition ain't sleeping, and that first-comer advantage matters.

    does that remind you of another company? it should, because all of them successful companies ain't that much different at all ;)

  22. A little more encryption? by isnoop · · Score: 3, Informative

    Google is nice enough to offer SSL for most of its services these days. It would make a lot of sense for them to round out their secure offerings with an SSL search as well.

    Right now, any request to an encrypted Google search URL redirects you to www.google.com.

  23. armchair OS designer's reading list by Gary+W.+Longsine · · Score: 3, Informative

    Hrm... you seem unaware that the very desktop (and mobile) friendly Macintosh and the coming generation of iPhones, iPods, and probably other digital appliances from Apple are based on a real UNIX underneath? The UNIX foundation of the system design is partly responsible for the rapid pace of evolution of Mac OS X.

    Although extreme hubris might combine with extreme resources (both dollars and talent) at Google to lead to the creation of an entirely new OS from the ground up, there may not be any need for that. The UNIX wheel is relatively round these days, particularly considering the Mac OS X / OSX example. Better yet, UNIX is nicely modular. If anyone devises a clever way to "avoid buffer overflow situations" it seems likely, on the basis of past evidence concerning technology development and adoption within UNIX systems in general, that it would be easier to integrate that language and compiler, or whatever technology it happens to be, into a UNIX operating system than it would be to create a fully capable system on top of it from whole cloth.

    Since you seem genuinely interested in the topic, here are some reasonable books on operating system design which you might enjoy.

    The Design and Implementation of the 4.4 BSD Operating System
    Design of the UNIX Operating System
    Operating System Design: The Xinu Approach
    UNIX Internals: The New Frontiers
    Mac OS X Internals: A Systems Approach
    Solaris Internals


    The other issues you raise are largely issues of interface design, which the open source community seems to do rather poorly, or at least not as well as it does other things. Google certainly does not need to re-invent the entire operating system wheel to improve URL integration, or provide a "minimalist" desktop interface, for example. They don't even need to strip features, really. Mac OS X, for example, provides enough of a minimalist default interface that novice computer users are comfortable with it. A Linux based OS from Google could take a similar approach, perhaps being even more spartan in the basic features, if that's really a desirable goal (which is another question entirely).

    --
    If you mod me down, I shall become more powerful than you could possibly imagine.
    1. Re:armchair OS designer's reading list by AKAImBatman · · Score: 4, Informative

      armchair OS designer's reading list

      That's great. When you graduate beyond armchair reading, perhaps you might consider getting out of your chair and learning about actually designing an Operating System? It's a very rewarding experience and teaches one about all the wonderful spagetti and legacy problems inherent in designs like Unix. It even shows how the greater resources present in modern computers can be utilized to reduce or eliminate the problems exhibited by previous OSes.
  24. Re:Google imitating Microsoft 's ActiveX by EraserMouseMan · · Score: 4, Insightful

    We'd better get used to Google becoming the butt of jokes usually aimed at ActiveX. Google Gears, Google Desktop, Google whatever. We now reaize that the developers that develop these technologies simply get traded between the big 3 (Google, MS, Yahoo) and others.

    Are we all finally realizing that Google writes insecure apps just like ever other software development company that is made up of humans?

  25. Google operating system? WHY??? by gnuman99 · · Score: 3, Insightful

    Why on this Earth would Google want an OS?? They already have it - it is called "The Browser". That's what they use to make money. They may want to extend its usage, but I doubt that Google will ever want to deal with the "desktop" in the same way as Microsoft, Apple or Linux community.

    Google is about control. They want to control your information for their own profit. They show it again and again. That's how they make money. The more targeted the ads, the more money they can make. The only competitor I think they may have here is Amazon, but that only deals with your book preferences. Google wants your wants so they can sell something from one of their customers.

    Thus it is NOT in the interest of Google to make a desktop. They are not in the business of making software like MS or Apple or GNU or even IBM. They are in business to manage information about you and me. Their "free" solutions are just there so you can give them more info about yourself.

    Hope that is clear enough.