Original URL: http://www.theregister.co.uk/2007/06/15/yahoo_xss_error/
Yahoo! has plugged a site-wide coding error that made it possible for miscreants to gain complete access to a user's account simply by convincing the holder to click on a booby-trapped link.
The security defect is the latest to affect a large website, which consumers and businesses are increasingly entrusting with a plethora of sensitive information, such as email, address books and calendar entries. Yahoo patched the vulnerability, which was the result of a cross-site scripting (XSS) error, hours after the Net Cooties blog first reported (http://netcooties.blogspot.com/2007/06/yahoo-endangers-users-do-web-sites-care.html) it on Thursday.
Researchers say it would have been trivial to exploit the vulnerability because it worked across multiple browsers and required only that a victim click on an innocuous-looking link embedded in an email. Once the link was clicked, an attacker would be able to rummage through the victim's address book, send emails or instant messages posing as the victim, view recent queries and settings made in Yahoo! Maps and access just about every other service on the victim's account.
"Yahoo! takes security seriously and consistently employs measures to help protect our users," a Yahoo! spokesman, who would not let us publish his name, said.
The vulnerability is the latest reminder of the pitfalls of XSS errors, which are often the result of trying to make multiple services scattered across a website work seamlessly. Unlike many other types of web vulnerabilities, an XSS flaw usually is not limited to a particular browser or a small range of unauthorized functions that it can carry out.
"It's incredibly powerful because it allows the attackers to to do anything they want to any website that's vulnerable," says Robert Hansen, a researcher specializing in web-based security who runs the ha.ckers.org (http://ha.ckers.org/) blog. "It's not well understood in the development community." Hansen estimates about 80 percent of sites contain one or more XSS flaws.
Two weeks ago, Google fixed an XSS error (http://www.theregister.com/2007/06/03/google_vulns_stack_up/) that could have allowed an attacker to access or delete a Gmail user's messages. It was one of four vulnerabilities discovered that week affecting the search king. One of the other three involved a scripting error that closely resembles an XSS error.
XSS mistakes are painfully easy to make because they rely on javascript that's designed to be rendered on a multitude of browsers and other types of software. Given the flexibility that's needed, javascript often behaves in ways that aren't spelled out in any text book and can only be detected through hours of experimentation.
It would seem XSS bloopers are so common that even those in the business of preventing them sometimes fall victim. Just ask IBM. It turns out a page that supports XSS protections in Big Blue's Quickplace web collaboration tool has its own XSS-related problem that displays the message "Owned" when accessed through this (http://www-1.ibm.com/support/docview.wss?uid=swg21233077&loc=%22%3E%3Cbody%20onload=alert() link. (We expect IBM to fix the page, so we took the screenshot below.)

"The moral of the story?" asks Hansen, who credits Arian Evans of Whitehat Security with spotting the blunder. "Make sure to check your site for the vulnerability you claim to be able to prevent in your products."
If there's a silver lining to XSS vulnerabilities, it's the relative ease of fixing them. Plugging flaws in desktop software requires that all affected users upgrade the faulty applications. XSS errors, by contrast, are corrected by fixing code that runs on a server, helping to explain how Yahoo was able to fix this most recent problem so swiftly. ®
Orkut worm feeds on scraps (29 February 2008)
http://www.theregister.co.uk/2008/02/29/orkut_worm_reloaded/
Gmail exploit aids domain hijack (28 December 2007)
http://www.theregister.co.uk/2007/12/28/site_hijack_gmail_exploit/
Serious Flash vulns menace at least 10,000 websites (21 December 2007)
http://www.theregister.co.uk/2007/12/21/flash_vulnerability_menace/
Portuguese-speaking worm attacks Google Orkut users (19 December 2007)
http://www.theregister.co.uk/2007/12/19/worm_hits_orkut/
Adobe gifts internal file permissions to unwashed masses (27 September 2007)
http://www.theregister.co.uk/2007/09/27/adobe_website_leak/
New cracks in Google mail (26 September 2007)
http://www.theregister.co.uk/2007/09/26/gmail_backdoor_vulnerability/
Unholy trinity of flaws put Google users at risk (24 September 2007)
http://www.theregister.co.uk/2007/09/24/google_vulns_put_users_at_risk/
A US CERT reminder: The net is an insecure place (8 September 2007)
http://www.theregister.co.uk/2007/09/08/security_group_warns_of_web_vulnerabity/
Yahoo! battered by second ActiveX vulnerability (3 September 2007)
http://www.theregister.co.uk/2007/09/03/yahoo_activex_vuln/
Webmail-creating Trojan targets Gmail (15 August 2007)
http://www.theregister.co.uk/2007/08/15/webmail_trojan_update/
Rivals torture consumers via Microsoft (20 June 2007)
http://www.channelregister.co.uk/2007/06/20/microsoft_desktop_search_unfair/
YouTube 'riddled with 40-plus security vulnerabilities' (20 June 2007)
http://www.theregister.co.uk/2007/06/20/youtube_security_ultimatum/
Yahoo! patch squashes messenger bug (8 June 2007)
http://www.theregister.co.uk/2007/06/08/yahoo_bug_squashed/
Google security vulnerabilties stack up (3 June 2007)
http://www.theregister.co.uk/2007/06/03/google_vulns_stack_up/
Strange spoofing technique evades anti-phishing filters (25 May 2007)
http://www.theregister.co.uk/2007/05/25/strange_spoofing_technique/
Skype worm leaps onto MSN (24 May 2007)
http://www.theregister.co.uk/2007/05/24/skype_msn_worm/
Is the mainstream ready for SaaS? (26 April 2007)
http://www.theregister.co.uk/2007/04/26/mainstream_ready_for_saas/
Demo neuters antiphishing measure (12 April 2007)
http://www.theregister.co.uk/2007/04/12/sitekey_bypass_demo/
IE7 phishing bug nets concern (19 March 2007)
http://www.theregister.co.uk/2007/03/19/ie7_phishing_bug/
PHP security from the inside (7 February 2007)
http://www.theregister.co.uk/2007/02/07/stefan_esser_interview/
PHP apps: security's low-hanging fruit (11 January 2007)
http://www.theregister.co.uk/2007/01/11/php_apps_security/
Web vulns top security threat index (18 September 2006)
http://www.theregister.co.uk/2006/09/18/web_vulnerabilties/
Researchers warn over web worms (6 August 2006)
http://www.theregister.co.uk/2006/08/06/web_worms_are_coming/
Web 2.0 worm downs MySpace (17 October 2005)
http://www.theregister.co.uk/2005/10/17/web20_worm_knocks_out_myspaces/
Google blocks Gmail exploit (1 November 2004)
http://www.theregister.co.uk/2004/11/01/gmail_bug_fixed/
© Copyright 2008