Follow Us

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message

HTML5 Web Storage loophole can be abused to fill hard disks with junk data

Most browsers don't restrict the amount of data that websites can store through HTML5 Web Storage, researcher says

Article comments

A security researcher has found a loophole in how the HTML5 Web Storage standard is implemented in the Google Chrome, Internet Explorer and Apple Safari browsers that could allow malicious websites to fill visitors' hard disk drives with large amounts of junk data.

HTML5 Web Storage defines an API (application programming interface) that allows websites to store more data inside browsers than was previously possible by using cookies, which are restricted to a size of maximum 4KB.

The localStorage attribute of the Web Storage API allows websites to store between 2.5MB and 10MB of data per origin -- domain name -- depending on the browser used. Google Chrome enforces a limit of 2. MB, Mozilla Firefox a limit of 5MB and Internet Explorer a limit of 10MB.

However, the Web Storage standard warns that some websites might attempt to circumvent the storage limit by storing data from their subdomains. "User agents should guard against sites storing data under the origins other affiliated sites, e.g. storing up to the limit in a1.example.com, a2.example.com, a3.example.com, etc, circumventing the main example.com storage limit," according to the standard, published by the World Wide Web Consortium.

"Chrome, Safari, and IE currently do not implement any such 'affiliated site' storage limit," Web developer and security researcher Feross Aboukhadijeh said Wednesday in a blog post. Since website owners can generate subdomains at will, they can exploit this loophole to effectively gain unlimited storage space on visitors' computers, he said.

Aboukhadijeh created a proof-of-concept website that uses this trick to fill visitors' hard disk drives with junk data. The site was tested with Chrome 25, Safari 6, Opera 12 and IE 10, and was capable of writing 1GB of data every 16 seconds on a Macbook Pro equipped with a solid state drive (SSD), the researcher said.

"For 32-bit browsers, like Chrome, the entire browser may crash before the disk is filled," Aboukhadijeh said. The attack does not work in Firefox because "Firefox's implementation of localStorage is smarter," he said.

The Chrome developers acknowledged the issue in an entry on the Chrome bug tracker , but finding a fix might not be easy. According to some people involved in the discussion, limiting the localStorage space for subdomains in relation to the limit for their respective domains might create problems on sites like Github Pages or Appspot that provide users with their own subdomains to create projects.



Share:

More from Techworld

More relevant IT news

Comments



Send to a friend

Email this article to a friend or colleague:

PLEASE NOTE: Your name is used only to let the recipient know who sent the story, and in case of transmission error. Both your name and the recipient's name and address will not be used for any other purpose.

Techworld White Papers

Choose – and Choose Wisely – the Right MSP for Your SMB

End users need a technology partner that provides transparency, enables productivity, delivers...

Download Whitepaper

10 Effective Habits of Indispensable IT Departments

It’s no secret that responsibilities are growing while budgets continue to shrink. Download this...

Download Whitepaper

Gartner Magic Quadrant for Enterprise Information Archiving

Enterprise information archiving is contributing to organisational needs for e-discovery and...

Download Whitepaper

Advancing the state of virtualised backups

Dell Software’s vRanger is a veteran of the virtualisation specific backup market. It was the...

Download Whitepaper

Techworld UK - Technology - Business

Innovation, productivity, agility and profit

Watch this on demand webinar which explores IT innovation, managed print services and business agility.

Techworld Mobile Site

Access Techworld's content on the move

Get the latest news, product reviews and downloads on your mobile device with Techworld's mobile site.

Find out more...

From Wow to How : Making mobile and cloud work for you

On demand Biztech Briefing - Learn how to effectively deliver mobile work styles and cloud services together.

Watch now...

Site Map

* *