Developer Feross Aboukhadijeh found the bug and set up a demo page that fills visitors' hard drives with pictures of cartoon cats.
In one demo, Mr Aboukhadijeh managed to dump one gigabyte of data every 16 seconds onto a vulnerable Macbook.
Clever code
Most major browsers, Chrome, Internet Explorer, Opera and Safari, were found to be vulnerable to the bug, said Mr Aboukhadijeh.
While most websites are currently built using version 4 of the Hyper Text Markup Language (HTML), that code is gradually being superseded by the newer version 5.
One big change brought in with HTML 5 lets websites store more data locally on visitors' PCs. Safeguards built into the "local storage" specification should limit how much data can be stored. Different browsers allow different limits but all allow at least 2.5 megabytes to be stored.
However, Mr Aboukhadijeh found a way round this cap by creating lots of temporary websites linked to the one a person actually visited. He found that each one of these associated sites was allowed to store up to the limit of data because browser makers had not written code to stop this happening. By endlessly creating new, linked websites the bug can be used to siphon huge amounts of data onto target PCs.
Only Mozilla's Firefox capped storage at 5MB and was not vulnerable, he found.
"Cleverly coded websites have effectively unlimited storage space on visitor's computers," wrote Mr Aboukhadijeh in a blogpost about the bug.
Code to exploit the bug has been released by Mr Aboukhadijeh and he set up a website, called Filldisk that, on vulnerable PCs, dumps lots of images of cats on to the hard drive. So far, no malicious use of the exploits has been observed.
In a bid to solve the problem, bug reports about the exploit have been filed with major browser makers.
More on This Story
.related-links-list li {
position: relative;
}
.related-links-list .gvl3-icon {
position: absolute;
top: 0;
left: 0;
}
Related Stories
Firefox smartphone partners revealed
24 FEBRUARY 2013,
TECHNOLOGY
Flash Player exits Android store
15 AUGUST 2012,
TECHNOLOGY
HTML 5 target for cybercriminals
02 DECEMBER 2011,
TECHNOLOGY
$render("page-see-also","ID");
$render("page-newstracker","ID");
Related Internet links
Feross Aboukhadijeh
The BBC is not responsible for the content of external Internet sites
$render("page-related-items","ID");
Share this pageShare this page1.4KShareFacebookTwitter
Email
Print
In association with
$render("advert","advert-sponsor-module","page-bookmark-links");
$render("advert-post-script-load");
$render("advert-post-script-load");
More Technology stories
RSS
Computer glitch hits Mars rover
Nasa's Curiosity Mars rover is put into "safe mode" after a computer glitch caused by corrupted files.
US plans small-ship drone launches
Hackers breach Evernote security
$render("advert","advert-mpu-high");
$render("advert-post-script-load");
Top Stories
http://news.bbcimg.co.uk/media/images/6618