Re:HTML5 localStorage allows sites to fill up users' hard disks
by callahad on Thursday February 28, 2013 @03:16AM
(#5297680)
> You could just embed iframes to diskeater1.net, diskeater2, etc and fill up the disk that way.
Thankfully, in this case, domain registrations are expensive. Filling a 16 GB iPad with this technique would cost around $10,000 in registrar fees. A 128 GB SSD could be filled for under $100,000.
...So I wanted to come in here and say "cost prohibitive!" but... maybe not, given that most devices will be at least partially filled already.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by dangrossman on Thursday February 28, 2013 @03:35AM
(#5297738)
It's easy to get a huge block of IPv6 addresses. Each IP is a separate domain as far as browser policies go, generally.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by callahad on Thursday February 28, 2013 @03:44AM
(#5297766)
I would gladly accept this vulnerability in order to live in your IPv6-enabled future. Great point. :)
Re:HTML5 localStorage allows sites to fill up users' hard disks
by yaix on Thursday February 28, 2013 @03:24AM
(#5297703)
Just get .tk[1] domains.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by shurcooL on Thursday February 28, 2013 @07:42AM
(#5298392)
Is there a catch?
Re:HTML5 localStorage allows sites to fill up users' hard disks
by eli on Thursday February 28, 2013 @09:25AM
(#5298738)
Yes, there are several (it involves signing up for a "win free ipod" type deal) but not really anything that would stop a bad guy.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by chaosfox on Thursday February 28, 2013 @09:09AM
(#5298668)
minimum usage policy
http://en.wikipedia.org/wiki/.tk
Re:HTML5 localStorage allows sites to fill up users' hard disks
by natrius on Thursday February 28, 2013 @03:01AM
(#5297645)
Prompt for origins that have never been visited directly by the user.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by pests on Friday March 01, 2013 @07:47AM
(#5303950)
Isn't this how some browser recently started treating cookies? I believe so and makes sense to me as well.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by crdoconnor on Thursday February 28, 2013 @03:23AM
(#5297701)
You could prompt for domains that use more than a small amount - say, 25-100k.
Once they hit that point, show a prompt below the toolbar that shows how much data is being used by the whole domain, in real time and allow it to keep on filling up with data until the user says stop or always allow.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by twinge on Thursday February 28, 2013 @05:09AM
(#5298011)
You could continue to allow 5mb for each subdomain, but wait until say, 25mb for the sum(*.domain.tld) before prompting. For example, this would allow {www,mail,docs,plus,???}.google.com to continue as they are now until google.com managed to rack up 25mb worth of data. After which point the user might want to know they're holding on to a fair bit of data for one particular site.
Then again, prompting is really annoying, and most people just click "okay" and without comprehending.
In the end, the problem is that one page can itself infer to other domain / subdomains in its document and those can execute and utilize localstorage. They have to, though, so you can embed an html5 game in your blog from some other site that you liked. It comes with the territory.
Sadly, it seems like the best answer is the horrible UX'd prompt - "do you want to allow x.y.z to store local content on your computer?" the same way you have to verify downloads and know exactly what you are running locally.