Slashdot Mirror


McAfee Sites Vulnerable To XSS Attack

An anonymous reader notes that this weekend, ReadWriteWeb discovered a security hole on several McAfee sites, which lets any attacker piggyback on the company's reputation and brand in order to distribute malware, Trojans, or anything else. The submitter adds an ironic coda to McAfee's epic fail: "In the 'how to HTML Injection' section, the author provided the four steps needed to execute a simple, no-brainer injection, but unfortunately, exposed a hole in NY Times website when they republished the article. While the author changed the offending text to an image, the Times is still using the original story which redirects directly to ReadWriteWeb [via XSS]." From the RWW post: "During tests this weekend, we discovered the company who claims to 'keep you safe from identity theft, credit card fraud...' has several cross-site scripting vulnerabilities and provides the bad guys with a brilliant — albeit ironic — launching pad from which to unleash their attacks."

7 of 84 comments (clear)

  1. Syndicated version on NYT site by Anonymous Coward · · Score: 5, Informative

    http://www.nytimes.com/external/readwriteweb/2009/05/04/04readwriteweb-mcafee-enabling-malware-distribution-and-fr-12208.html

    executes the code and redirects to readwriteweb.com

  2. Re:Hmm. by 6Yankee · · Score: 4, Insightful

    The only time I don't do this is if the user-submitted input is first passed through an input validator that should reject anything containing dangerous characters (for example, a valid e-mail address cannot contain HTML tags, so if I reject all but a valid e-mail address, then I don't need to sanitize the e-mail address). But how can I be sure I haven't missed anything somewhere?

    Ouch. I can disable the client-side validation entirely. I can also write my own form and send you anything I like.

    Sanitize everything.

  3. Sure, but the camel was already broken... by wild_quinine · · Score: 4, Interesting
    I found an old USB stick the other day with McAfee's superdat (definitions and engine update) file circa 2006. That's only two and a half years ago. It was a real wake-up call. The superdat was just over 6mb in size.

    These days you can't fit the application and latest superdat onto a 128mb stick - and when I tell you that the application in only 20mb in size, you'll realise what a change this is. Their updates been spiralling out of control for two years. Now, some may argue that there's a lot more malware out there now, and I won't disagree. But I will say this: McAfee hasn't been getting significantly better as far as I can tell, and none of the other major players seem to have experienced this definitions file explosion, ergo McAfee is doing something wrong.

    Furthermore, their version 8 enterprise has one of the worst failures I've ever seen for a virus scanner, which is hilariously related to the above. The application no longer knows how to handle its own virus defintions catalog: I'm not sure whether that's the sheer size, or the number of entries, but either way the update fails because of it. But get this: it says that the update has succeeded!

    Can you imagine a more epic fail for a virus scanner than saying it's up to date, but being wrong? Neither could I, till I read the news today.

    So long McAfee, I hope you enjoyed your time with the big players.

  4. Re:Hmm. by AlXtreme · · Score: 4, Insightful

    Yes I'm a lazy coder I know, but fuck it, you get what you pay for.

    Do it right, or don't do it at all.

    I'm all for cutting corners when dealing with stingy clients (which tend not to be clients for long) so I get your way of thinking, but basic security shouldn't be one of the corners to cut. In the end it will be worthwhile to simply add a bit of code to sanitize user input to avoid all the hassle you'll get in the long run.

    If you are spending an hour (of your own or billed) every two months for cleaning up crap, next time please spend two hours and add some validation. Keep on billing said client for spam cleanups for all I care.

    Every time a viewer sees spam it makes your work seem poor. Even a lazy coder knows when it will cost him more work in the long run.

    --
    This sig is intentionally left blank
  5. Re:Hmm. by galego · · Score: 4, Informative

    Hope you're not trying to "enumerate the bad" (i.e looking at $foo ~= /<script/i in the input ... or even '<'). There are lots of ways to escape such validators. A great resource on some is here: http://ha.ckers.org/xss.html I say, unescape everything back to the browser (even email addresses). OWASP has a good resource: http://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet

    --

    Que Deus te de em dobro o que me desejas

    [May God give you double that which you wish for me]

  6. Re:Distribute? by Hurricane78 · · Score: 4, Informative

    Well, it injects code that can change the download link to a trojan that wraps the original thing. In your webbrowser.

    In sites with logins and other user-private data, well, let me take Slashdot as an example.
    Imagine someone got some evil code into the site, that your browser would load and execute.
    That code could quickly put the entire page into a frameset, with the outside being the control channel.
    Then, while you were reading, it would load your unprotected profile in the background, and change your sig to that same evil code (or a link to it). So everybody else would get it too.
    Then it would do a complete scan of your internal network, possibly detecting your router, and its ports. (All possible with JavaScript. Been there, seen it.)
    You could click on a link in /., and the frameset would survive. You could even keep that tab open all day long, effectively making you a zombie host.
    In the process, it would accept arbitrary commands from the controlling system. If you happen to go on the site or your router, it could for example try things in there too, like set an external control IP to the controlling system, and gain full access to your own network. (Unlikely, but I've seen it happening.)

    And all this is just the tip of the iceberg.

    --
    Any sufficiently advanced intelligence is indistinguishable from stupidity.
  7. Re:Antivirus on Windows by daveime · · Score: 4, Interesting

    It's a web page exploit, wtf does it have to do with Windows ?

    Redirects work in all browsers, and while I can't speak for Firefox, at least MSIE 8 will warn you of a possible cross domain phishing attempt.

    McAfee also make products for Linux and Apple you know.

    Just another anti-ms troll who can't wait to make his mark on /.

    Winslows is teh suxxors !!!