Slashdot Mirror


Cross Site Scripting Discovered in Google

Security Test writes "Yair Amit posted a message early this morning to The Web Security Mailing List outlining a Cross Site Scripting flaw in Google that allows an attacker to carry out Phishing Attacks."

39 of 158 comments (clear)

  1. but this was resolved three weeks ago. by Artifex · · Score: 4, Informative
    From TFA:
    -[ Solution

    Google solved the aforementioned issues at 01/12/2005, by using=20
    character encoding enforcement.

    --[ Acknowledgement

    The author would like to commend the Google Security Team for their=20
    cooperation and communication regarding this vulnerability.
    --
    Get off my launchpad!
    1. Re:but this was resolved three weeks ago. by mwvdlee · · Score: 4, Insightful

      It's considered good practice to report security issues to the responsible parties in order to give them sufficient time to fix the problem well before disclosing it to the public .

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    2. Re:but this was resolved three weeks ago. by Pinky3 · · Score: 3, Informative

      "Google solved the aforementioned issues at 01/12/2005, by using
      character encoding enforcement."

      12/01/2005 for those in the US.

    3. Re:but this was resolved three weeks ago. by @madeus · · Score: 5, Funny

      Ob-ISO International Date Format advocation ( 2005-12-01 for the win! :-)

    4. Re:but this was resolved three weeks ago. by Flunitrazepam · · Score: 5, Funny

      Stardate 481.23.587 for the extra credit

      --
      1) Your analysis is based on bad assumptions so your result is way off. 2) You're a sick bastard for fucking a horse.
    5. Re:but this was resolved three weeks ago. by Artifex · · Score: 4, Informative
      I prefer 01-12-2005 for logfile names, so in a directory list, they appear by date even when sorting by name.

      Unless you cross a year in your directory, like logs going from September, 2004, to August, 2005. :) I've found YYYY-MM-DD to be the easiest way to ensure chronological consistency.

      --
      Get off my launchpad!
  2. It's been fixed by b4k3d+b34nz · · Score: 4, Informative

    Although the article details an interesting exploit, Google fixed this on the 1st of this month--The title is somewhat misleading. It is useful to know that Google fixed this vulnerability 2 weeks after it was discovered, on November 15th.

    Also, for those of us unaccustomed to DD/MM/YYYY date format, that's the format of all dates in the article.

    --
    Grammar Lesson: you're is a contraction of "you are"; your means you possess something; yore means days gone by.
    1. Re:It's been fixed by Hawke666 · · Score: 2, Funny

      and the proponents of ddmmyyyy would love your ss:mm:hh format. Go ISO!

  3. Re:Hmm by op12 · · Score: 4, Informative

    From the message:

    --[ Discovery Date: 15/11/2005
    --[ Initial Vendor Response: 15/11/2005
    --[ Issue solved: 01/12/2005

    Message posted: 21/12/2005

    They did give them a chance to fix it first.

  4. Others.. by slashkitty · · Score: 5, Informative

    They've had others in the past, but were quick to fix them. They have even sent t-shirts as thanks for the help. Other sites are not so friendly or fast. This site shows active security holes in various sites that have gone unresolved. (CSS, insecure logins, etc)

    --
    -- these are only opinions and they might not be mine.
    1. Re:Others.. by openSoar · · Score: 2, Informative

      Not long after GMail was launched I inadvertently discovered a serious issue they had with some over-aggressive caching - sometimes when people in the same office as me logged onto their Gmail accounts they would see my Inbox - quite worrying, although they weren't able to actually open any of the messages.

      I spent quite some time explaining things to the GMail devs but no freebies for me..

    2. Re:Others.. by Bogtha · · Score: 4, Informative

      They've had others in the past, but were quick to fix them.

      Not true. Google ignored a security hole for two years and don't understand Javascript well enough to fix it properly.

      --
      Bogtha Bogtha Bogtha
  5. Re:Hmm by Ostien · · Score: 3, Insightful

    A known issue is better then an unknown issue. With a known issue people will be more aware and be less likly to fall victum.

    --
    Reality is a big nasty dragon. Fortunately I don't believe in dragons.
  6. Javascript is a security problem? by Anonymous Coward · · Score: 2, Informative
    Noooo, say it ain't so, Who'd 'a thunk it?

    I turned javascript off in 1999, just one less glaring security issue for me to address. Before anyone starts talking smack about responsive web apps, just remind me what Ed Felton said about flying pigs.

    That's right, disable js and fix the web!

    1. Re:Javascript is a security problem? by tuffy · · Score: 5, Informative

      Rather than turn off JavaScript entirely, I use the NoScript extension to turn it off everywhere but on the sites I allow. The only adjustment needed was to turn off the "NoScript has blocked JavaScript" message in the extension options since it occured so frequently.

      --

      Ita erat quando hic adveni.

    2. Re:Javascript is a security problem? by Billosaur · · Score: 4, Insightful
      That's right, disable js and fix the web!

      And then what happens to AJAX?

      JavaScript is not the issue; the issue is sites/providers not treating data from the "real world" as suspect and doing a rigorous examination of it before allowing it in or executing anything based on it. When I'm writing Perl CGIs that are accessible from outside my system, I always have the taint mode (-T) switch enabled. You have to be suspicious of data coming in and treat it as radioactive until you can verify its integrity.

      --
      GetOuttaMySpace - The Anti-Social Network
    3. Re:Javascript is a security problem? by slashkitty · · Score: 2, Insightful
      Uhm, yeah, that is still a problem though. Have you allowed Google.com? have you allowed other sites that you trust, but still may have XSS problems? When the script is executed, it's done so under the google.com domain. This is the main problem w/ xss.

      What needs to happen is sites need to use LESS javascript, and shoud degrade gracefully when js is disabled. Unfortunately, with AJAX, it's more common than ever.

      --
      -- these are only opinions and they might not be mine.
  7. XSS in my banks website by thr0n · · Score: 5, Informative
    I told them about the XSS (CSS) security holes 2 months ago -
    response was something like: "We will work on it; or we wont - but we wont tell you ;)".
    Which sucks...

    Here we go:

    Original:
    https://www.vr-ebanking.de/index.php?RZBK=0280
    MY Version (XSS):
    https://www.vr-ebanking.de/help;jsessionid=XA?Acti on=SelectMenu&SMID=EigenesOrderbuch&MenuName=&Init Href=http://www.consti.de/secure
    /Fälschung --> Imitation /

    ... Hope they change their mind, sometime. :)

    Consti / thr0n

  8. What bullshit... by ninja_assault_kitten · · Score: 3, Interesting

    Now we're going to start posting every freaking XSS we find? This is a VERY low impact XSS vul. Hell it's not even persistent. Who freaking cares? Are we going to post the slew of recent Yahoo XSS bugs too? WHat about the bug in Google Analytics which allowed you to iterate through all the customer domains?

  9. Could have been announced 3 weeks ago too. by kawika · · Score: 4, Interesting

    If there ever was an endorsement for web-based applications, this is it. When a bug is fixed in Windows or Linux, it stays active in the wild for months or years because many users don't update. With web apps the user basically gets an "update" each time they visit the site. If Google fixed the problem on December 1, the vulnerability could have been announced the same day without any kind of negative impact.

    1. Re:Could have been announced 3 weeks ago too. by b1t+r0t · · Score: 4, Insightful
      If there ever was an endorsement for web-based applications, this is it. When a bug is fixed in Windows or Linux, it stays active in the wild for months or years because many users don't update. With web apps the user basically gets an "update" each time they visit the site.

      This is great when there is only one site to update. But when everybody is running their own copy of the web app on their web server, you get problems like the recent epidemic of PHP-based bulletin board exploits.

      --

      --
      "Open source is good." - Steve Jobs
      "Open source is evil." - Microsoft
    2. Re:Could have been announced 3 weeks ago too. by wraith0x29a · · Score: 2, Insightful

      Well, yes, a bug-fix in a web application can be rolled out to a billion users - but so can the original vulnerability. Double-edged sword.

      --
      ~ Better a freak than a sheep. ~
    3. Re:Could have been announced 3 weeks ago too. by Whafro · · Score: 2

      The difference is that you didn't include everything necessary here... it should be:

      Bug in a web application? Millions of users are exposed to the bug until a patch is released.
      Bug in a locally run application? Millions of users are exposed to the bug until a patch is released and they hear about it and they actually apply it.

  10. Advantage of online applications by G4from128k · · Score: 5, Interesting
    This example illustrates the advantages of web applications. Google was able to patch the flaw and roll it out to 100% of the user base in a short time period. Providing applications online means centralized version control and patching -- there's no waiting for all the users to patch.


    The downside is that this only works if the app provider is a proprietary vendor with a closed architecture. If 3rd parties are allowed to create extensions or if users can create their own utilities/add-ons then centralized patching would likely introduce the same types of incompatibilities and breakages that current OS patches can introduce. Worse, centralized control might mean that users have no choice but to live with the patched version.

    --
    Two wrongs don't make a right, but three lefts do.
  11. This is amazing. by dada21 · · Score: 4, Interesting

    I'm always blown away by how the Internet security market works and self-correct itself without any regulation.

    A major web site has a flaw. White hat and black hat "hackers" find that flaw, exploit it, and either abuse it or let the web site know about it. The web programmers go in and close the exploit because it affects how their customers use the service and could open them up to some liability.

    This is the way the free market works. I'm a huge fan of how quickly the Internet (anthropomorphically) adapts to the changing needs of the billion of users. Some exploits that aren't fixed by the owners of code are fixed by third parties -- sometimes for profit and sometimes for free. Before we can even write one law to attempt to solve problems, others are already attacking the problems.

    I'd like to see it stay this way. Every time we move forward to create legislation to protect the end user (see CAN-SPAM and a myriad of other laws), we see failure time and again. The loopholes in the laws make them irrelevant quickly, and all we get out of that is wasted money and wasted time.

    Let the growth and expansion occur freely. We'll see some bad times (new viruses and new spam exploits) but we'll see those fixed in short order. If they don't get fixed, why is the Internet still chugging along and growing every day?

  12. XSSholes! by digitaldc · · Score: 5, Funny

    "How common are XSS holes?"
    I had to laugh at that one.

    Only an XSShole would steal your cookies.

    --
    He who knows best knows how little he knows. - Thomas Jefferson
  13. Another Beatles Beatles by Phosphor3k · · Score: 4, Informative

    Someone is trying to get their Pagerank up by submitting the story with a name of "Security Test" and linking to their shoddy website. The site has only a few links, no content, and it says the page is for sale. Will slashdot ever get their shit together and stop posting submissions with blatent pagerank-whoring links like this?

  14. Cross-Site Scripting for Internet Explorer by Anonymous Coward · · Score: 5, Interesting

    This is reported as a Google.com bug, which is partially true. But this is only one half of the problem. The other half of the problem (mentioned in the full article) is due to a dubious feature in Internet Explorer: when it gets a page without a specified character encoding, it does not rely on default values for the encoding (which should be iso-8859-1 for HTML or UTF-8 for XHTML).

    Instead, Internet Exploerer tries to guess the encoding of the contents by looking at the first 4096 bytes of the page and checking the non-ASCII characters. In the case of the cross-site scripting attack decribed here, the problem is that IE would silently set the encoding of a page to UTF-7 in case some characters in the first 4096 bytes looked like UTF-7. This silent conversion to UTF-7 by Internet Explorer in a text that Google assumed to use the default encoding allowed the attackers to bypass the way Google was filtering "dangerous" characters in some URLs.

    The article puts the full blame for the vulnerability on Google.com. I think that a part of the blame should also be shared by the Internet Explorer designers (and any other browser that does unexpected things while trying to guess what the user "really meant").

  15. Re:What bullshit... - Are you out of your mind??? by slashkitty · · Score: 2, Insightful
    It's easy to force a user to go to a url. If you go to a website, they can include a frame and load the the error.

    They can even go to multiple problems at the same time. If this problem were more prevelant, a hacker could craft a page that steals ALL your online logins/cookies/etc from any site that had the problem. They would just need to craft a page with multiple framesets that load up all the vunlerable pages.

    XSS is also making news because it's being used by phishers to forge stuff from the target domain. All the anti phishing stuff relies on which domain a link is going to.. but in a sense, XSS allows phishers to put their own page (ie. fake login) on the target domain! It is very much a problem for any site that deals with personal information, or has trusted content.

    --
    -- these are only opinions and they might not be mine.
  16. The response by Google..... by 8127972 · · Score: 2, Insightful

    ..... seems to be very good. They acknowledged the problem quickly (the same day if I recall correctly) and fixed it within days. Maybe instead of treating this posting as if there is a bug out there that is a clear and present danger, perhaps we should be talking about how good their response was and why other software companies aren't as responsive?

    --
    This is my opinion. To make sure you don't steal it, it's covered by the DMCA.
  17. How do they find these things . . . legally? by chunews · · Score: 2, Insightful
    IANAL, but I am always amazed at how these security issues are found and resolved since the exploratory phase for white and black hats are, essentially, the same. (I have a similar pet peeve around journalists, who with their hidden cameras, are able to investigate the mysteries of illicit acts without any recompense).

    While it may be one thing to pull apart IE and Windows XP (they can be done remotely, in an unconnected lab, with zero impact to a larger community), where does one acquire the balls to go and tinker with a hugely popular online site like google, where the mere act of investigation -may- impact the operational stability of the site.

    Now, I know that XSS is benign but whose to say that there wouldn't be some ping-of-death like characteristic with a bizarre UTF-7 encoding? While it's doubtful that google would have such poor quality in their applications, why does the white-hat security community get carte blanche access to test it out?

    I could be bitter because I sent a similar email to google (regarding their gmail login account and the 'continue=' varaiable) in March but never heard a reply. But to google's credit, and my defense, I only indicated that it looked highly suspicious and never took the next step to craft an actual attack and send them the code.

    If a security engineer should happen across the logs and start to see a bunch of unusual encodings, or what appears to be a recon of the website's characteristics, what level of forgiveness would be applied if the source of such network activity was from eEye, or Watchfire? And what if it was bankofamerica.com instead of google?

    I am all for giving vendors a reasonable amount of time to fix a defect and then provide full disclosure but I'm not keen to keep paying for watchfire (eEye, iss, etc..) to go to school and get free press based on unauthorized accesses to my production systems - where is the balance?

    1. Re:How do they find these things . . . legally? by slashkitty · · Score: 4, Informative
      Well, with XSS, you don't have to "break into" anything to discover the vulnerability. All you do is throw the webservers a few strings and see what they send back.

      I've found dozens of XSS problems on sites, and have made news for one on Citibank. I've only received a few threatening legal letters from companies.

      --
      -- these are only opinions and they might not be mine.
  18. Cookies by kernelfoobar · · Score: 3, Interesting

    I don't know if it's related, but I've noticed a couple of times that when I get the search result page, I get asked to set a cookie from one of the sites in the results, without clicking on them. (my Firefox is configured to ask me to set cookies.). This is somewhat disturbing, I mean if my FF was set to accept cookies automatically, I would have cookies for sites I have never visited...

    Did anyone else notice this?

    --
    Here we go again!
    1. Re:Cookies by aziraphale · · Score: 4, Informative

      Sounds like preloading.

      Firefox (and other Mozilla derivatives) support a preloading link. When they encounter such a link in one page, they begin downloading the content for the linked page, so they have it ready. Google assumes that you're reasonably likely to click on the first link they've sent you for some types of search result (probably where there's a very high search ranking for one particular site for the term you searched for), so sends Mozilla/firefox users a preload warning along with the search result page, with the URL of the first search result page. Firefox does its thing and starts downloading the page content for the first search result before you even click on it - including any cookies.

  19. Google vulnerable? by Anonymous+Cowhead · · Score: 5, Insightful

    It seems odd to blame this on Google. According to the linked mailing list posting, the problem is caused by the "auto detect character set" feature in IE (and probably other browsers,) and the lack of a "charset" parameter in the HTTP response from Google. The HTTP spec is pretty clear that a missing charset parameter means ISO-8859-1, not "browser should guess", and certainly not UTF-7.

    So isn't it really the "auto detect" feature in the browser that causes the vulnerability, and not Google's lack of "charset encoding enforcement" as the mailing list posting from Watchfire Research claims? Let's put the blame where it belongs. I say we should applaud Google for going the extra kilometer to protect users with non-compliant browsers.

  20. OT: date format by higuita · · Score: 2, Interesting

    12/01/2005

    No offence but i think that this US format is plain stupid... really...

    Is that 12 of january or 1 of december? its a format that have several possible intepretations and without any logic (middle time scale/low/high !?!)

    I can understand very well the 2005/12/01 and the 01/12/2005 (i prefer the first, specially in computers, but last is better for reading on paper) but the mixed US format is wierd and dangerous...

    Most of the time looks like you must guess the correct date.

    so why dont the US kill this stupid format?

    --
    Higuita
    1. Re:OT: date format by Cunk · · Score: 3, Funny

      "so why dont the US kill this stupid format?"

      It was scheduled to be phased out on 01/03/02 but, well...you can guess what happened.

      --

      I am the inventor of the hilarious refrigerator alarm.
    2. Re:OT: date format by amliebsch · · Score: 3, Informative
      Most of the time looks like you must guess the correct date.

      No, it is a de-facto standard in this country. That is the way dates virtually all dates are written, so there is not often confusion. For international compatibility, we use named months or the ISO format. The U.S. military, for example, has standardized on YYYYMMDD (and HHMM, obviously).

      Incidentally, it's not entirely without logic. The order of the numbers matches the way we usually talk, i.e., ("December Twenty-First, Two-thousand and five"). Except for the the holiday colloquially known as the "4th of July," the vast majority of people say it in the format, "month day, year." Whether the written or oral ordering of the date this way came first, or simultaneously, I do not know, but it is at least consistent.

      --
      If you don't know where you are going, you will wind up somewhere else.
  21. Re:bzzzt. by slashkitty · · Score: 2, Interesting
    if you put this on a site you trust it is, and other have access to it. One can pass a link that contains a script, which could do all sorts of things. It can load up pages on the site and perform actions, steal cookies and information on the site, or present full pages of information that look like a regular page on the site, which is very usuful in phishing attacks.

    In an earlier XSS exploit, I wrote a javascript that could be injected into a citibank site. It would automatically go through the ENTIRE money transfer process, including confirmations. (It was not used on other people of course, and they shut down that site evetually) Other examples I have made included fake articles on NYTimes site and stolen cookies from microsoft.com

    --
    -- these are only opinions and they might not be mine.