Feeds

Hole in Yahoo! surrenders keys to the kingdom

Attack of the killer XSS

Choosing a cloud hosting partner with confidence

Yahoo has closed a gaping hole that attackers were exploiting to gain access to victims' Yahoo Mail accounts and other restricted areas of site.

The cross site scripting error in the hotjobs.yahoo.com domain allowed the attackers to inject cleverly obfuscated javascript into the page that silently siphoned the cookies used to authenticate Yahoo users when they log in to sections of the portal that require a password. Armed with the cookies, attackers were then given broad control over the victim's Yahoo account, including Yahoo Email and any other service that uses authentication cookies belonging to the yahoo.com domain.

"I guess the beautiful bit about it from an attacker's viewpoint is quite a lot of people would be unaware of what's happened" after accessing a booby-trapped hotjobs URL, said Paul Mutton, an internet services developer for Netcraft who helped discover the exploit. "Not many people will think of changing their password after that happens."

To Yahoo's credit, Mutton said the XSS error was closed within hours of him reporting it to Yahoo's security team. But the episode is a reminder that even the biggest sites can be needlessly sloppy when it comes to handling authentication cookies. The attack would have been impossible to carry out had Yahoo bothered to use http-only cookies.

Yahoo is hardly alone here. Last month, bankofamerica.com, register.com, netflix.com and dozens of other big name sites were caught transmitting credentials that are vulnerable to a new tool called CookieMonster. That attack is neutered when sites use https-only cookies.

A Yahoo spokeswoman thanked Netcraft for help identifying the problem. She reminded users of the importance of resetting passwords. That's a sensible precaution, but it would have done nothing to protect users against this attack.

According to Mutton, XSS vulnerability was exploited by hotjobs.com URLs that contained a long series of digits. When transformed into javascript it redirected users to a blank webpage on a different domain. A victim need not enter a user name or password. Visiting the blank page was all that was required to steal an authentication cookie that acts as a universal key across the the entire yahoo.com domain.

At time of writing, the blank page remained up and running. It's unknown if it's being used to attack other websites. Netcraft's report is here. ®

Beginner's guide to SSL certificates

More from The Register

next story
FYI: OS X Yosemite's Spotlight tells Apple EVERYTHING you're looking for
It's on by default – didn't you read the small print?
Russian hackers exploit 'Sandworm' bug 'to spy on NATO, EU PCs'
Fix imminent from Microsoft for Vista, Server 2008, other stuff
Microsoft pulls another dodgy patch
Redmond makes a hash of hashing add-on
'LulzSec leader Aush0k' found to be naughty boy not worthy of jail
15 months home detention leaves egg on feds' faces as they grab for more power
China is ALREADY spying on Apple iCloud users, claims watchdog
Attack harvests users' info at iPhone 6 launch
Carders punch holes through Staples
Investigation launched into East Coast stores
Kill off SSL 3.0 NOW: HTTPS savaged by vicious POODLE
Pull it out ASAP, it is SWISS CHEESE
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Cloud and hybrid-cloud data protection for VMware
Learn how quick and easy it is to configure backups and perform restores for VMware environments.
Three 1TB solid state scorchers up for grabs
Big SSDs can be expensive but think big and think free because you could be the lucky winner of one of three 1TB Samsung SSD 840 EVO drives that we’re giving away worth over £300 apiece.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.