Criminals recently spent more than a week siphoning email messages from Hotmail users' accounts, thanks to a programming bug in Microsoft's website.
The flaw gave hackers a way to read and steal emails from Hotmail users, and according to security vendor Trend Micro, that's exactly what they did, sending specially crafted email messages to several thousand victims.
On May 12, Trend Micro found a message sent to a victim in Taiwan that looked like a Facebook notification alert. The Chinese-language email seemed to be warning victims that someone had accessed their Facebook accounts from a new location.
In fact, it was a ruse. Buried inside the email message was a specially written script that forwarded the victim's messages to the hacker.
For the attack to work, the victim had to be logged into Hotmail, but the script would run even if the victim simply previewed the message. The attack worked because Microsoft had a common web programming error, called a cross-site scripting flaw, on its website.
"The script triggers a request that is sent to the Hotmail server," Trend Micro wrote. It then "sends all of the affected users email messages to a certain email address."
Cross-site scripting flaws are easy to find on the web, but they're rare in important, widely used websites such as Windows Live Hotmail.
Trend Micro reported the issue to Microsoft immediately, and it was finally fixed on Friday, according to Microsoft. It's not clear how many Hotmail users were hit by the attack.
According to Trend Micro, the attack doesn't seem to have been widespread. The company was able to count between 1,000 and 2,000 victims after discovering the issue, said Jamz Yaneza, a Trend Micro research manager. However, Trend Micro has no way of knowing how long the flaw was there before it was uncovered, he added.