Slashdot Mirror


Google Goes On Offensive vs. JavaScript Attacks

alphadogg writes "Google's e-mail security team has updated its Postini engine to stop a new type of JavaScript attack that helped fuel a rise in spam volume in recent months. Google says it has seen a surge in obfuscated JavaScript attacks, describing them as a hybrid between virus and spam messages. The e-mails are designed to look like legitimate messages, specifically Non Delivery Report messages, but contain hidden JavaScript. 'In some cases, the message may have forwarded the user's browser to a pharma site or tried to download something unexpected,' Google said in its official blog."

108 comments

  1. JS in email text? by mapkinase · · Score: 4, Insightful

    User should just have an option to execute or not JS in the email text. Problem solved.

    --
    I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
    1. Re:JS in email text? by yincrash · · Score: 4, Insightful

      What legitimate reason is there to accept JS? Your friend isn't going to send you javascript, and a mailing list that uses HTML still has to cater to as many clients as possible which means they still use tables for layout.

    2. Re:JS in email text? by Monkeedude1212 · · Score: 4, Funny

      Your friend isn't going to send you javascript

      You clearly don't hang out with my group of friends.

    3. Re:JS in email text? by Foolhardly · · Score: 1

      Computers prompting user action in order to compute is never going to be the solution.

    4. Re:JS in email text? by VGPowerlord · · Score: 2, Informative

      I hate to say it, but Cheap Canadian Online Pharmaceuticals is not your friend.

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
    5. Re:JS in email text? by mapkinase · · Score: 1

      Your manual analysis of the text of the email, the sender, using common sense. Whenever I get html-rich emails from my bank or other organizations, I am always able to parse the meaning of what I have to do in response just by looking at the plain text.

      --
      I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
    6. Re:JS in email text? by Serious+Callers+Only · · Score: 1

      Computers prompting user action in order to compute is never going to be the solution.

      That's funny, ClickToFlash works well for me. If the desired default action is to not waste time/resources computing, it makes a lot of sense to require user input to enable something. Same goes for attachments in my mobile mail client - I click on them when I want to see them, otherwise, they're left un-downloaded.

      In the case of javascript in emails, you'd have to think of a very good reason to make it worthwhile for me to turn it on - the attack surface opened up is just too great to justify having it on by default.

    7. Re:JS in email text? by yuhong · · Score: 1

      For example, OE can set HTML to execute in Restricted Zone, and I think it has been the default since 2002. And it not only disables JS, but also other nasty stuff too like I think ActiveX controls.

    8. Re:JS in email text? by Anonymous Coward · · Score: 0

      Take that back!

    9. Re:JS in email text? by yuna49 · · Score: 1

      MailScanner has had the option of "disarming" scripts in email for years now.

      Allowing scripts in email messages is as bad as allowing them in advertisements on web sites.

  2. Don't want to post OT but... by bannable · · Score: 2, Funny

    ...could this site have *any* more ads? Good lord, 15 seconds and there have already been THREE inline popup ads and a redirect ad, in addition to all the crap surrounding the article.

    --
    "If you see a man on a horse, he is likely an enemy. Kill the man and eat the horse."
    1. Re:Don't want to post OT but... by Anonymous Coward · · Score: 0

      ...could this site have *any* more ads? Good lord, 15 seconds and there have already been THREE inline popup ads and a redirect ad, in addition to all the crap surrounding the article.

      What are these "ads" things that you refer to? Never seen any.

    2. Re:Don't want to post OT but... by BJ_Covert_Action · · Score: 2, Funny

      Well, it is a story about Google. =P

    3. Re:Don't want to post OT but... by Anonymous Coward · · Score: 3, Funny

      Don't worry, you were completely on topic, even if you didn't know it. The topic is disabling javascript to prevent bad things on the Internet.

    4. Re:Don't want to post OT but... by Monkeedude1212 · · Score: 1

      This story is aimed at people who already use NoScript, so thats why they don't feel bad about layering them in there.

    5. Re:Don't want to post OT but... by Anonymous Coward · · Score: 0

      He must be new...

    6. Re:Don't want to post OT but... by guruevi · · Score: 1

      I think you might have some more issues with your computer then. I have never seen any intrusive ads on Slashdot, definitely no popup ads. Actually, at this point I don't have any ads.

      --
      Custom electronics and digital signage for your business: www.evcircuits.com
    7. Re:Don't want to post OT but... by selven · · Score: 1

      You could try any of the following:

      1) Check the "disable advertising" box on the main page
      2) Adblock (I heard the Chrome one got a lot better very recently)
      3) Privoxy
      4) Lynx, wget, etc.
      5) Go outside for a change

    8. Re:Don't want to post OT but... by kdemetter · · Score: 3, Insightful

      Going outside doesn't really help : plenty of ads there , and adblock doesn't work on them .

    9. Re:Don't want to post OT but... by mcgrew · · Score: 1

      I see this is the only website you ever visit. Go to any newspaper site and the ads will make your eyes bleed. ...hmmm, maybe I should log out and look at it, I'm probably not seeing all the ads here.

    10. Re:Don't want to post OT but... by hairyfeet · · Score: 0

      Noscript+ABP = happiness and joy for one and all! As for TFA, I have been saying for years that JavaScript will end up (I would say it already has) as bad for security as ActiveX was back in the day. Running code from God knows where is NEVER a good idea! Sandboxes and all that crap are simply putting band aids on bullet wounds. What we need is a new language that is locked down and compartmentalized from the start, not these hacks like sandboxing.

      Lets be hones folks: Neither ActiveX nor JavaScript were ever designed for all the jobs they end up doing, and bad hacks plus tons of malware writers equals badness times a thousand! It is time for the big guys: Apple, Google, MSFT, AMD, Intel, to get together and come up with something new. Perhaps a CPU/GPU "jail" combined with a locked down language?

      --
      ACs don't waste your time replying, your posts are never seen by me.
    11. Re:Don't want to post OT but... by avhell · · Score: 1

      Going outside doesn't really help : plenty of ads there , and adblock doesn't work on them .

      Not necessarily true (somewhat).

    12. Re:Don't want to post OT but... by Ashriel · · Score: 1

      What are these "ads" things that you refer to? Never seen any.

      I think ads are these things (images? blocks of text?) that Internet Explorer puts into webpages to annoy and distract their users. I could be wrong, though - I've never seen them either, since I don't use Microsoft products.

    13. Re:Don't want to post OT but... by Ashriel · · Score: 1

      Actually, the sandboxing in javascript is very effective, which has led to all sorts of hacks and add ons to the initial language to escape the sandbox - usually for legitimate reasons

      Not saying that XSS isn't a real security issue, but that's not a flaw in javascript (XSS attacks are bound by the sandbox like any other bit of javascript), that's a case of not properly scrubbing user input, same as SQL injection.

      Perhaps a CPU/GPU "jail" combined with a locked down language?

      Actually, most of the big players are more concerned right now with how to relax restrictions on cross-domain scripting while maintaining some semblance of security. It's needed for more interactive web-apps, you see.

      If you want more secure scripting, get a browser that doesn't support json or ajax. Better yet, just use NoScript like the rest of us, and laugh at all the IE fools.

    14. Re:Don't want to post OT but... by hairyfeet · · Score: 1

      I would love to know why I got modded down when this whole article is about Google having to lock down JavaScript in their email clinet. I use ABP and Nscript, but what I use doesn't matter. As the PC repair guy that has to deal with cleaning your aunt Edna's PC when she gets pwned, what matters is what happens when SHE surfs. And unfortunately when she surfs she is running IE or some other browser and thanks to JavaScript, along with Reader and Flash, she most likely WILL get infected. I mean when you type JavaScript malware and get over 12 MILLION hits in Yahoo? That tells me maybe another approach needs to be taken.

      You yourself pointed out that the sandbox jails frequently have to be broken out of to do interesting JavaScript interactive websites, and that is my point. We should be able to develop a language that allows you to do those interactive websites easily without risking exploitation or risk to data on the underlying machine. JavaScript I believe just as ActiveX will be discarded in time, simply because the risks will continue to grow while the hacks like sandboxes will hamper legitimate website builders more and more. What we need is a new language built from the ground up to allow those cool websites without allowing exploitation. Perhaps using the stream processors built into every PC nowadays to render without allowing access to the underlying PC?

      All I know is just by blocking JavaScript ads via ABP I cut down my customers infection rate by a good 75%-85%. Now as you know those ads are required by many websites to stay afloat, but I can't in good conscience allow them. If more and more do as I do something has to give, and I believe what will eventually give will be JavaScript, for something built with security in mind.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    15. Re:Don't want to post OT but... by lpq · · Score: 1

      Oi vey.

      Have you ever heard of Firefox? AdBlock? NoScript?

      Stop your whining and choose a solution.

      Don't say you don't have a choice.

      You do -- and right now, you are choosing your popups and ads and redirect problems.

      They aren't many, but when I see people complain about ad-block and popups on articles -- and then read about people talking about nobody using addblock or noscript I gotta wonder -- what's wrong with these people.

      Besides -- both firefox and IE block popups in the browser. What type of lame browser are you using
      that doesn't block popups?

    16. Re:Don't want to post OT but... by TheRaven64 · · Score: 1

      Actually, the sandboxing in javascript is very effective

      Really? Let's compare it with the sandbox that we all use most often: the process. This is a hardware-assisted sandbox that prevents a bit of running code from interacting with the system without going via a designated arbiter (i.e. the kernel). The JavaScript sandbox is a pure-software sandbox that prevents a bit of running code from interacting with the system without going via a designated arbiter (i.e. the browser).

      Now, compare the number of vulnerabilities that allow JavaScript to escape from the browser's sandbox to the number of vulnerabilities that allow processes to escape from your-kernel-of-choice's sandbox. What do you notice? That the browser actually does a piss-poor job compared to the kernel. Not only that, but the browser actually has an easier job of it, because it only has to support one source language (which doesn't permit things like pointer arithmetic) and can do source-language analysis before allowing the code to run.

      --
      I am TheRaven on Soylent News
    17. Re:Don't want to post OT but... by WuphonsReach · · Score: 1

      I prefer simply NoScript + FlashBlock. I don't care about ads that are well behaved and aren't scripted. I do care about ads that use JavaScript or Flash and act like temperamental two year olds hopped up on sugar.

      Plus there's the whole issue of JavaScript/Flash constantly being used as an infection vector. So in the past few years it's become more about safety in blocking scripts then about blocking ads. I'm tired of cleaning off machines that were infected via ads or other JavaScript/Flash vectors.

      --
      Wolde you bothe eate your cake, and have your cake?
    18. Re:Don't want to post OT but... by hairyfeet · · Score: 1

      I give all my customers ABP with Firefox, and I've noticed infections going down a good 75%. I just really wish either someone would fork NoScript, or talk the developer into listening to his audience. NoScript is TOO COMPLEX for the average Joe, and frankly this problem could be fixed quite easily if the developer would listen: It needs an "easy mode" where beside the NoScript button is a simple "play video" button. Because every time I've tried to give NoScript to average folks, they spend too long clicking wildly trying to figure out which of the 20+ blocked scripts equals play video, and then end up disabling it or having me remove it. There is NO reason why NoScript couldn't have a play video button, and since it would still be default deny it wouldn't lower security a single bit.

      But I agree completely about JavaScript becoming too dangerous. I have been saying here for years that as the OS becomes more locked down JavaScript will be the next ActiveX. Flash is equally dangerous, but unless Google replaces Flash with WebM I just don't see folks giving up Youtube.

      --
      ACs don't waste your time replying, your posts are never seen by me.
  3. JavaScript needs to go. by Anonymous Coward · · Score: 1, Insightful

    JavaScript has long outlived its usefulness. If the trend is to write large-scale applications targeting the browser, we should at least do it with a real programming language, not a half-baked scripting language that was stuck into Netscape Navigator as a hack 15 years ago.

    Google, Opera, Apple and Mozilla need to get languages like Python, Ruby, Scheme and Erlang available in the browser. You know, real languages with the features necessary to write larger and more secure applications. We should stop jerking around with JavaScript, a rather pathetic scripting language that has been pushed far past what it was ever intended to handle.

    1. Re:JavaScript needs to go. by Enleth · · Score: 1

      Do you even know anything about this language beyond status bar text scripts and document.write? ECMAScript, the actual language we're speaking about (as opposed to the language/standard library combo JS actually is) is a sophisticated mix of functional (good for event-driven code) and procedural (good for general-purpose code) programming features augumented with prototype-based OOP (allows for a decent DOM implementation). The design is not as good as Python's (IMHO), but it's second to it in allowing programmers to write clever, concise code that does its job well. And the "standard library" that makes JS what it is, is actually DOM.

      Unfortunately, the world is full of people who don't even know what functional or procedural programming means and write utter crap in JS, usually thinking that it looks similar to C, so it can be used like C (and it cannot be, because functional features will trigger "unexpected" behaviour), or not thinking at all. This doesn't mean that the language is bad. You could as well say that HTML and CSS are bad because millions of morons are abusing it constantly. But it's not HTML, CSS or JS that are bad. It's the countless "tutorials" written by morons for morons that perpetuate bad practices and monkey-like code copying without a tiniest thought about what the code actually does and how. I'm afraid, however, current technology doesn't let us make compuetrs that stab people in the face for writing crap tutorials.

      --
      This is Slashdot. Common sense is futile. You will be modded down.
  4. Scheme by bjartur · · Score: 1

    The language originally proposed for Netscape Navigator, before "needs to become popular" and "remind people of Java" ruled it out.

    1. Re:Scheme by vbraga · · Score: 5, Interesting

      JavaScript itself is not problem, even if "use strict" would come handy. The biggest problem is DOM and other associated APIs a JavaScript programmer must deal with. It's horrible. But along good practices (Crockford's Javascript The Good Parts come to mind) it is a very nice language to deal with.

      Take a look at Crockford's JavaScript: The World's Most Misunderstood Programming Language for reference.

      --
      English is not my first language. Corrections and suggestions are welcome.
    2. Re:Scheme by 0123456 · · Score: 1

      JavaScript itself is not problem, even if "use strict" would come handy.

      Allowing people to execute arbitrary code on your machine has always been a bad idea. When we have to build multiple sandboxes around it to prevent it from doing things that the end user doesn't want it to do then clearly it's broken by design.

    3. Re:Scheme by amicusNYCL · · Score: 1

      It's not the language at fault, it's the design of the architecture. The same architecture design would have the same flaws even if Erlang or Python was used instead of Javascript.

      --
      "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
    4. Re:Scheme by FlyingGuy · · Score: 1

      Don't waste your breath, those language fanboy's cannot be bothered with actually understanding that it is the RT environment that is the problem, not the language.

      --
      Hey KID! Yeah you, get the fuck off my lawn!
    5. Re:Scheme by Moridineas · · Score: 1

      So virtually any binary executable is a bad thing? Or am I misunderstanding what you're saying?

    6. Re:Scheme by Late+Adopter · · Score: 1

      Nonsense. There's nothing per-se wrong with Turing completeness, see things like Postscript and SVG. It's the APIs in and out of the interpreter, which admittedly is *very* easy to screw up (see things like PDF and Flash).

    7. Re:Scheme by bjartur · · Score: 1

      Honestly, I've just never understood why I'd want to run a whole program inside my web browser.

    8. Re:Scheme by Anonymous Coward · · Score: 0

      javascript isn't lisp. it has lot's of lisplike stuff, but doesn't have macros.

    9. Re:Scheme by Anonymous Coward · · Score: 0

      Take it your not an emacs fanboy either, then?

    10. Re:Scheme by TheRaven64 · · Score: 1

      JavaScript functions are first-class closures. They are exactly as expressive as Lisp macros.

      --
      I am TheRaven on Soylent News
    11. Re:Scheme by imakemusic · · Score: 1

      Potentially. Would you like it if your browser downloaded and ran arbitrary exes when you visited a website?

      --
      Brain surgery - it's not rocket science!
    12. Re:Scheme by Moridineas · · Score: 1

      My point is that everytime you download a binary blob of anything, you are potentially allowing people to execute arbitrary code (I say potentially as more and more OSes have fine-grained control over what programs can actually do, so unlike in eg the DOS days, a binary isn't as free to do anything at all as it used to be). I mean even with a program like Firefox, I've looked at the source code maybe a handful of times...there could be anything in there. It could be phoning home and downloading botnet instructions every day and I would never know.

      I think the GP was possibly wrong about Javascript when s/he talked about "multiple sandboxes." The javascript sandbox most people talk about is built into the browser. The javascript sandbox the article is talking about would be built into Adobe Acrobat. Other than both being an implementation of the javascript language for scripting an application, there's no relationship. There's no "multiple levels" of sandbox

    13. Re:Scheme by bjartur · · Score: 1

      Affirmative, nor do I like emacs style interfaces.

  5. Who the F*** has javascript turned on their mail? by mark-t · · Score: 3, Insightful

    Like, wow... just wow.

    I'd say that people that stupid deserve whatever they get, except that they are likely to do damage to other systems than their own.

    So here's a quick question, who on earth thought it would be a good idea to even *allow* javascript to run in an email?

  6. Anyone using most email clients? by name_already_taken · · Score: 3, Interesting

    Don't most email clients that display html format messages use one of the popular rendering engines, like Webkit? Presumably the html portion of the message is just passed to the rendering engine and the javascript magic happens.

    --
    Putting moderation advice in your .sig lowers your karma!
    1. Re:Anyone using most email clients? by FrostDust · · Score: 1

      Don't most email clients let you turn off HTML rendering in received messages?

    2. Re:Anyone using most email clients? by amicusNYCL · · Score: 2, Informative

      In this case the email client is the web browser. I'm not sure if gmail allows you to disable HTML in the emails you receive.

      --
      "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
    3. Re:Anyone using most email clients? by JxcelDolghmQ · · Score: 2, Funny

      I'm quite certain that it would be counterproductive to turn off HTML rendering in the most popular email client for gmail: The web browser.

    4. Re:Anyone using most email clients? by Graff · · Score: 1

      Don't most email clients that display html format messages use one of the popular rendering engines, like Webkit? Presumably the html portion of the message is just passed to the rendering engine and the javascript magic happens

      Which is exactly why I ONLY view my e-mail in plain text. If your message has anything other than plain text then it better be a MIME attachment that I can validate BEFORE I open it.

      HTML (et al.) are just bolted onto e-mail and it shows. If you want your e-mail to be slow loading, poorly-formatted, tons of obnoxious graphics, and full of unnecessary data then by all means turn on the HTML-in-e-mail features in your e-mail client. Just don't expect me to read it if that client doesn't send me a e-mail that gracefully falls back to a text-only version.

    5. Re:Anyone using most email clients? by TheRaven64 · · Score: 1

      Yes and no. When they pass the message off to the web rendering engine, they either set it to the 'really don't trust this' mode, requiring user intervention to load images and disabling scripts, or they strip these first. They used to just pass it straight off, but a string of email viruses in the late '90s put an end to this kind of stupidity.

      --
      I am TheRaven on Soylent News
  7. Re:Who the F*** has javascript turned on their mai by Monkeedude1212 · · Score: 1

    Probably the same people who thought it would be a good idea to allow javascript to run in a browser.

    Heyoooooo

  8. Nice way to hide a vulnerability ... by GNUALMAFUERTE · · Score: 3, Informative

    TFA should have read: "Google has found a vulnerability in its gmail code that could be used to execute arbitrary JS code in the user's browser".

    Instead, they played that down and used the "we are fighting JS attacks" phrase as if that was normal or common.

    Failing to properly escape JS/HTML/CSS in a webservice is a MAJOR vulnerability.

    --
    WTF am I doing replying to an AC at 5 A.M on a Friday night?
    1. Re:Nice way to hide a vulnerability ... by Monkeedude1212 · · Score: 1

      "Fortunately, our spam traps were receiving these messages early, providing our engineers with advanced warning, which allowed us to write manual filters and escalate to our anti-virus partners quickly"

      So - basically, it was being filtered to junk or spam, as most javascript enriched emails do.

      "we are fighting JS attacks" is normal and common when you deal with a web service. All email clients (from Yahoo, to Hotmail to Gmail and byond) disable javascript by default. Only if you are misconfigured would you be at risk. But Google basicly now can filter out those emails based on their underlying code - so that if you WANT to run Javascript in your email, you won't be hit by this attack.

    2. Re:Nice way to hide a vulnerability ... by IamTheRealMike · · Score: 3, Informative

      No, the JavaScript is in an attachment. It's not being rendered by any email product.

  9. Re:Who the F*** has javascript turned on their mai by Wiarumas · · Score: 2, Insightful

    I'd assume a vast majority of people don't even know what javascript is let alone why it is potentially dangerous. Sometimes you have to consider your users - which sometimes means you have to consider the ignorant, non-technical masses (ie: email users). Sure, you can feed them to the wolves, but it will come back and bite you somehow.

    --
    I will bend like a reed in the wind.
  10. Re:Who the F*** has javascript turned on their mai by GNUALMAFUERTE · · Score: 5, Informative

    Nobody is allowing javascript in emails. This is a BUG in Gmail's code, not the user's fault. You use a browser to see your email. Spammers managed to somehow escape JS code and pass it through all of google's filters and execute it in your browser.

    --
    WTF am I doing replying to an AC at 5 A.M on a Friday night?
  11. Re:Who the F*** has javascript turned on their mai by mark-t · · Score: 1

    Sure, but you have to explicitly go to a page to get the content of it... it isn't just sent to you without asking for it, like email is.

  12. Re:Who the F*** has javascript turned on their mai by AnonymousClown · · Score: 1

    So here's a quick question, who on earth thought it would be a good idea to even *allow* javascript to run in an email?

    Software engineers who are even dumber than the users.

    --
    RIP America

    July 4, 1776 - September 11, 2001

  13. Everyone using a JavaScript-based webmail client. by Anonymous Coward · · Score: 0

    Uhh, everyone using a JavaScript-powered webmail system like GMail or Hotmail or Yahoo! Mail will be checking their mail with a JavaScript-enabled email client.

    Yeah, that's right. Web apps fail yet again.

  14. WTF? by Anonymous Coward · · Score: 1, Insightful

    If your email client even knows how to execute Javascript (let alone makes decisions about whose scripts to trust and whose not to), then you're doing something wrong.

    What's next, are people going to start building javascript interpreters into grub, iwconfig, pvcreate and ionice?

    1. Re:WTF? by dbet · · Score: 1

      For many, their email client is their web browser.

  15. Re:Who the F*** has javascript turned on their mai by Qzukk · · Score: 2

    This is a BUG in Gmail's code, not the user's fault

    LOL no. I've been getting these spams for a week or so now. It looks like the usual undeliverable mail message, "see attachment for details", but instead of the attachment being an email message it's an HTML file. So the user clicks on Returned Mail.html and goes wherever the javascript takes them.

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  16. Re:Who the F*** has javascript turned on their mai by Monkeedude1212 · · Score: 1

    You have to open an email to access the javascript.

    And if I do not necessarily want Javascript to run on a page I explicitly go to? What are my options? Disable Javascript of course!

    Luckily for most people - Javascript is defaultly* disabled in most email clients, so the only reason this would be a threat is if its misconfigured.

    *I think I just made that word up. I love english, you can form new words and people will still understand your message.

  17. Re:Who the F*** has javascript turned on their mai by interkin3tic · · Score: 5, Insightful

    I'd say that people that stupid deserve whatever they get, except that they are likely to do damage to other systems than their own.

    As always, this sentiment annoys me.

    Ignorance may be annoying, but it doesn't mean someone "deserves" any misfortune. No one is born knowing "I should not enable javascript in my e-mail." If this slipped through google, who I expect to be better than the average user, who the hell are you to say the average user should have known better and deserves it?

  18. Re:Who the F*** has javascript turned on their mai by Qzukk · · Score: 1

    The javascript is in a file attached to the email. I've got dozens of them in my spam folder. Here's the entire content of one:
    Subject: Delivery Status Notification (Failure)
    From: Mail Delivery Subsystem [mailer-daemon@my domain]

    Note: Forwarded message is attached.

    This is an automatically generated Delivery Status Notification

    THIS IS A WARNING MESSAGE ONLY.

    Delivery to the following recipient has been delayed:

            myself@my domain

    Message will be retried for 2 more day(s)

    Attached is "Forwarded Message.html", which has the obfuscated javascript in it.

    It's pretty obvious, most of these claim I tried to email myself and it bounced. There's a second variant that uses a random "recipient" address, and an attachment named "Delivery Status Notification (Failure).html"

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  19. Re:Who the F*** has javascript turned on their mai by weicco · · Score: 4, Informative

    I just tested this. I send a message to my Hotmail box with HTML file as attachement. HTML file contains single script tag with document.location = 'http://google.com' inside. I opened the mail and opened the attachement. Internet Explorer asks if I want to save "test.html" or open it. This should ring bells big time but I understand that normal user doesn't get it and goes and opens the attachment. So I went and clicked Open and was redirected to google.com.

    Now if I save the file and try to open it from the local folder I get nice yellow warning bar telling me that the file contains An Evil Script and if I really, really want to open it I must explicitly allow the script to run. If I go and allow the script then I'm at google.com again.

    It seems that this is a simple, direct and rather effective attack against Joe Averages who just want to get rid of the stupid warning dialogs and open up everything that is sent to them. If Google can come up with a generic solution for this, other than try to rip off every HTML tag from the mails and their attachements, I really applaud them.

    Maybe the browser shouldn't be allowed to be redirected outside the current domain by default? But then again, there would have to be warning dialog for that and Joe Average would still be out of luck.

    --
    You don't know what you don't know.
  20. Re:Who the F*** has javascript turned on their mai by Anonymous Coward · · Score: 0

    Postini does a lot more than Gmail.

  21. Re:Who the F*** has javascript turned on their mai by Anonymous Coward · · Score: 0

    I would think that commenting out the tag would do it.

  22. Pedantic by amicusNYCL · · Score: 2, Informative

    If Google is responding to existing attacks, wouldn't they be going on the defensive?

    --
    "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
  23. Disable active content already! by Anonymous Coward · · Score: 1, Insightful

    It's what I keep repeating time and again. Active content (Javascript, Flash, Java, ActiveX (ick!) is a very bad idea in a browser (an even worse idea in a mail reader). It's like having a gullible ward at the front door, willing to execute whatever instructions a complete stranger gives them.

    Fuck "rich web experience". Rich means here "rich in exploits", nothing else.

    And every "sandbox", "security container", whatnot -- just leads to a "Gödel, Escher, Bach"-style arms race.

    I have a dream. That people understand the Internet as a means of conveying useful information, not "rich", "web", "experiences" or whatever incongruent marketeer's bable is "in" these days.

    Lawn and that.

  24. Amazing by dr.+chuck+bunsen · · Score: 3, Funny

    This is the exact reason that I NEVER use the internet. Just too dangerous these days...

    1. Re:Amazing by mcgrew · · Score: 3, Funny

      You're telling me! I damned near broke my wrist last week!

  25. I'm still waiting for... by pongo000 · · Score: 2, Insightful

    ...an effective attack vector against mutt.

  26. Postini is NOT GMail by RandomFactor · · Score: 2, Informative

    Because of the confusion that seems rampant...

    Postini is an anti-spam/anti-virus mail filtering service that sits between your mail system and the internet. Companies (mostly) use it to stop malicious emails getting into their internal mail systems. GMail is a web-mail system which is probably protected by Postini also since Google owns both.

    --
    --- Mercutio was right.
    1. Re:Postini is NOT GMail by stacysmomsmokesabong · · Score: 3, Informative

      Because of the confusion that seems rampant...

      Postini is an anti-spam/anti-virus mail filtering service that sits between your mail system and the internet. Companies (mostly) use it to stop malicious emails getting into their internal mail systems. GMail is a web-mail system which is probably protected by Postini also since Google owns both.

      Interestingly enough, Gmail doesn't use Postini unless you purchase Google Apps Premier and enable Postini for GApps Gmail. Gmail by itself uses its own independently developed anti-spam technology. This is straight from the horse's mouth @ Google Enterprise Support.

  27. Re:Who the F*** has javascript turned on their mai by Anonymous Coward · · Score: 0

    Not dumb. Just naive. They may be brilliant developers or software engineers. It's hard to call someone like that dumb except in the way Scott Adams does in his Dilbert books (where he describes people as idiots in one or more fields). It is really that they were naive and trusting ("who would want to attack people" type thinking)... It's too bad they weren't right about that though.

  28. plain text by SgtChaireBourne · · Score: 3, Insightful

    plain text : it was good enough for Shakespeare

    --
    Beta is broken and the link to classic doesn't work. Stop wasting our time or there won't be anybody left here.
    1. Re:plain text by Anonymous Coward · · Score: 2, Funny

      Nonsense, Shakespeare mainly wrote scripts. And to this day, there are problems executing them properly.

    2. Re:plain text by asdf7890 · · Score: 1

      You don't know how right you might be: http://shakespearelang.sourceforge.net/report/shakespeare/ - maybe Romeo and Julie is really a solution to the halting problem!

    3. Re:plain text by tool462 · · Score: 1

      And half the guys involved in running the scripts are pretending to be women.

    4. Re:plain text by Anonymous Coward · · Score: 0

      Not true at all. Bill fluffed his works with an entire theater.

    5. Re:plain text by martin-boundary · · Score: 1

      The hard part is casting the dog, though. There's always a small dog for comic relief.

    6. Re:plain text by jonaskoelker · · Score: 1

      Tell me about it, it doesn't even pass tokenizaton!

  29. Re:Who the F*** has javascript turned on their mai by Anonymous Coward · · Score: 0

    I get nice yellow warning bar telling me that the file contains An Evil Script and if I really, really want to open it I must explicitly allow the script to run.

    That's because IE's javascript engine treats javascript executed from the computer with extra privileges over javascript executed from the "Internet Zone".

  30. NoScript user by Anonymous Coward · · Score: 0

    Yeah, I didn't notice anything odd, though it seems NoScript was blocking content from a lot of sources.

  31. Re:Who the F*** has javascript turned on their mai by antdude · · Score: 1

    What's the point of JavaScript in e-mails anyways? For HTML e-mails?

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  32. Re:Who the F*** has javascript turned on their mai by TheLink · · Score: 1

    > That's because IE's javascript engine treats javascript executed from the computer with extra privileges over javascript executed from the "Internet Zone".

    Used to be you could modify that, not sure how it is like after Vista and Windows 7.

    See this: How To Add 'My Computer' As the Fifth Internet Explorer Security Zone
    http://support.microsoft.com/kb/555599
    http://support.microsoft.com/kb/315933

    If you make the security settings strict it breaks some Windows Explorer stuff in XP's "webview" mode. But it works fine in classic mode. In my opinion the classic mode is less likely to be exploitable than the XP "webview" mode, and I'm the sort who prefers classic mode anyway :).

    --
  33. Re:Who the F*** has javascript turned on their mai by dissy · · Score: 1

    Like, wow... just wow.
    I'd say that people that stupid deserve whatever they get, except that they are likely to do damage to other systems than their own.

    So wait, you are claiming that average Joe is supposed to automatically know better about technology than GOOGLE?!

    And yet you are calling someone Else stupid?! Wow, just wow

  34. Re:Who the F*** has javascript turned on their mai by weicco · · Score: 1

    Yes, I know that. I was talking from the point of Joe Average who doesn't know a s**t. And my point was, you can add extra layers, warning dialogs and yellow warning bars as many you like for these kinds of attacks but still you have to give user to option just to run those scripts. Someone eventually runs them and the attacker has won.

    --
    You don't know what you don't know.
  35. Re:Who the F*** has javascript turned on their mai by blueskies · · Score: 1

    Ignorance may be annoying, but it doesn't mean someone "deserves" any misfortune.

    Does that mean that no one deserves fortune either? Or if people deserve things because of actions they take, if someone deserves fortune because they worked hard, doesn't that suggest that the lazy and ignorant deserve misfortune?

  36. Re:Who the F*** has javascript turned on their mai by interkin3tic · · Score: 1

    Does that mean that no one deserves fortune either?

    It does not mean that, no.

  37. Re:Who the F*** has javascript turned on their mai by Actually,+I+do+RTFA · · Score: 1

    Does that mean that no one deserves fortune either? Or if people deserve things because of actions they take, if someone deserves fortune because they worked hard, doesn't that suggest that the lazy and ignorant deserve misfortune?

    Fortune is due to many things, the actions you take are but one aspect. Therefore, it is a flawed assumption that fortune is something you deserve solely because of the actions you take.

    Also, there is a difference between rewarding someone for contributing to society (aka, earning a fortune through cleaning windows and saving money) and punishing them. One is sharing the benefits of their effort with them. The other is going out of your way to hurt them. If people weren't evil bastards, there would be no need for the JS security model. But they are. So, the bastards have to be stopped, because they make life worse for everyone around them. In the physical world we give some people guns and tell them to go stop the bastards. In the electronic world, the technically proficient have to stop them. It's simple specialization of labor.

    Why is what you're saying any different from me saying "I can take anyone's stuff I want, and people who are too lazy and weak to protect it deserve the misfortune of me taking it."?

    --
    Your ad here. Ask me how!
  38. Re:Who the F*** has javascript turned on their mai by Monkeedude1212 · · Score: 1

    if someone deserves fortune because they worked hard, doesn't that suggest that the lazy and ignorant deserve misfortune?

    I suppose thats your implication. If someone deserves fortune because they work hard - that does not mean that someone who doesn't work hard doesn't also deserve fortune. Hate to be pedantic, but something being true does not mean the opposite is true. (Being good with my right hand does not mean being bad with my left, as there are people who are ambidextrous)

  39. Insightful? Really? by xant · · Score: 1

    Google doesn't want to execute JS in emails, and never did. Nobody should (nor does) allow JS in email afaik. The problem is the JS is executing *anyway*, despite Google's filters. They found a crack in the filtering and are exploiting it; not because *gmail* executes javascript but because *your browser* does.

    Such an option would make email more vulnerable, not less, since some people would set it to "execute", when everyone should be "don't execute".

    --
    It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
  40. Re:Who the F*** has javascript turned on their mai by Alex+Belits · · Score: 1

    And then you will have to determine how to comment it in some obfuscated sequence of comments, quotes and escapes that may or may not be formally valid and may or may not produce consistent results in multiple rendering engines.

    --
    Contrary to the popular belief, there indeed is no God.
  41. Livescript by SpaceLifeForm · · Score: 1

    I don't recall anything Scheme related in Navigator.

    Livescript is now Javascript.

    --
    You are being MICROattacked, from various angles, in a SOFT manner.
  42. Re:Insightful? Really? by martin-boundary · · Score: 1

    Exactly. The real problem is turning a browser into an email reading program. That's the downside of going from native apps for everything to the-browser-is-the-OS type thinking. It's only going to get worse.

  43. Re:Who the F*** has javascript turned on their mai by Mephistro · · Score: 1

    *I think I just made that word up. I love english, you can form new words and people will still understand your message.

    Well, I guess that's more common than you think

    The word 'defaultly', I meant. :D

  44. Re:Who the F*** has javascript turned on their mai by Anonymous Coward · · Score: 0

    So here's a quick question, who on earth thought it would be a good idea to even *allow* javascript to run in an email?

    Annoyingly, the answer is businesses.

    My boss wants to send spam, uh, I mean legitimate business emails that look exactly like our website. He wants all the same logos, menus and layout from our site to appear in our marketing emails. More specifically, he wants his javascript roll-out menus, he wants his Flash marketing panels, he wants his funky JQuery effects.

    He wants his emails to look like this, and so do thousands of other bosses. These are the people with the money, so these are the people that Microsoft has to support, so those are the features that get put into email clients.

    Conversely, these same people really don't care that their customers' email clients are insecure as a result of these features. That's the customers' problem. And again, Microsoft has historically gone with the money rather than the doing the right thing.

    And yes, I know there are other browsers and other email clients and other operating systems, but most people are still using these MS products, and as far as many bosses are concerned, it may as well be everyone using these products -- my boss doesn't care what the emails we send look like in any other software than Outlook. If it looks right on his screen, then it looks right on everybody's.

  45. Just been hit by dgriff · · Score: 1

    Just been hit starting 30 minutes ago by a wave of delivery failure notifications but the preceding message (to which it is a reply) looks like one from me - spam to a bunch of people including some addresses I recognize. Gmail account now disabled. Seems a hell of a coincidence that this is happening just after this report about Gmail JavaScript problems. Never had anything like this before.

  46. Re:Who the F*** has javascript turned on their mai by weicco · · Score: 1

    You're right. It would be horrible piece of script/code to write so that it a) removes all the Evil tags 100% and b) doesn't mess up any legit tag. I can think only one way to achieve this: the server itself would have to run the attachment(s) in a sandbox with multiple browsers and check if there's anything suspicious going on. I think it would kill the server.

    --
    You don't know what you don't know.
  47. Re:Who the F*** has javascript turned on their mai by wkcole · · Score: 1

    I'd say that people that stupid deserve whatever they get, except that they are likely to do damage to other systems than their own.

    As always, this sentiment annoys me.

    Ignorance may be annoying, but it doesn't mean someone "deserves" any misfortune. No one is born knowing "I should not enable javascript in my e-mail." If this slipped through google, who I expect to be better than the average user, who the hell are you to say the average user should have known better and deserves it?

    One need not have any technical expertise to know what a free service from a profit-making enterprise ultimately will be worth. Anyone who expects a free service from a corporation which exists to make money to be anything other than shoddy is assured disappointment. That is something that any competent adult in a money-driven society should understand. No matter how many of the self-defined best and brightest are gathered together and no matter how slick they are at selling the idea that they are dedicated to not being evil, Google cannot (and doesn't want to) eliminate the most basic principle of healthy economics: at best, you get what you pay for.

    It's a bit more subtle to understand that when a company like Google gives away services, the users of those services are not customers. They are human livestock. The Google business model is not new, rather it is one of the oldest. The quality of a service like GMail for users is analogous to the quality of feed and shelter offered by the first egg and dairy farmers to their hens and cows. That may be quite good relative to the context of the livestock, but it is feed and shelter. Non-human livestock doesn't know that there are such things as food and housing, and might not value the difference. Making a domestication bargain is not necessarily based on ignorance and demonstrates some level of intelligence. Saying that GMail users do not deserve whatever breakage they get from it is insulting to their basic competence. No one is born into Gmail, no one is required to use GMail. People use GMail by choice and no one competent to manage their own affairs in a market economy would expect it to be a high-quality service, even if understanding the specific metrics of quality for such a service requires rather arcane knowledge. Either the bulk of GMail users *DESERVE* whatever crapulence they get from GMail (because they chose to take an obvious risk whose details are likely beyond their understanding) or we have a huge unmet need for custodial social workers, sheltered workshops, and adult day care. Or maybe just for research into better utilization of human livestock.

  48. Re:Who the F*** has javascript turned on their mai by wkcole · · Score: 1

    So here's a quick question, who on earth thought it would be a good idea to even *allow* javascript to run in an email?

    Netscape and Microsoft, in the mid-90's, when they were both known for hiring fresh grads based on GPA and driving away experienced developers who understood their own fallibility.

    Google is not particularly innovative in their design errors or how they got them.

  49. Re:Who the F*** has javascript turned on their mai by Alex+Belits · · Score: 1

    That would require a huge amount of resources, far beyond anything used existing mail services, webmail or otherwise. A much more sane approach would be to process everything with a very simple HTML parser that only recognizes "legitimate" tags and stylesheets, extract and sanitize all text, then re-assemble the document using completely different tags and stylesheet, throwing away everything that is not text and marking all links in the same way Slashdot does it in comments. The "original" document can be available as a link/attachment, not identified as text/html, so browser won't try to render it.

    --
    Contrary to the popular belief, there indeed is no God.
  50. Re:Who the F*** has javascript turned on their mai by weicco · · Score: 1

    yes but it's not JS in the actual message that is causing problems, it's the HTML attachements (with JS). The message can look all find but when you open the HTML attachement all the nasty scripts are run.

    --
    You don't know what you don't know.
  51. Re:Who the F*** has javascript turned on their mai by Alex+Belits · · Score: 1

    In email there is no fundamental difference between "message" and "attachments" -- email may be single-part or multi-part, and parts may be of various types identified by MIME headers. Mail readers display text and HTML parts of the message (or only first such part) as the "message" and everything else as "attachments", however it's up to the mail client (or webmail server) to choose how and what to show to the user.

    --
    Contrary to the popular belief, there indeed is no God.