News for hackers. Stuff that matters.
Re:How a web app can download and store over 2GB without you... by AlexV on Sunday March 25, 2012 @11:12AM (#3752771)
It would be fun to execute this against a mobile device, where storage is expensive. 2GB might be all that is required to choke the device. A neat client-side DDoS :)
Re:How a web app can download and store over 2GB without you... by kijin on Sunday March 25, 2012 @12:32PM (#3752979)
Heh, you could easily DoS a Canadian home internet user (not mobile) by transferring a massive amount of data behind their back. So many people here are stuck with 25GB/mo limits.
Re:How a web app can download and store over 2GB without you... by avree on Sunday March 25, 2012 @01:59PM (#3753241)
That's absurd. I can't even imagine having to live with that kind of cap—I easily download 25GB in a day.
Re:How a web app can download and store over 2GB without you... by ticks on Sunday March 25, 2012 @02:59PM (#3753437)
It's not uncommon to find ISPs with monthly quotas of a few GBs - aimed at light users.
Re:How a web app can download and store over 2GB without you... by fl3x on Sunday March 25, 2012 @11:21AM (#3752800)
I think Opera Mobile shouldn't have this cache problem either, similar to my comment about the desktop version. The default cache limit in Opera Mobile is ~2 MB.

I _believe_ that both quotas can be increased after confirmation from the user, but I haven't made any tests.

Re:How a web app can download and store over 2GB without you... by marshray on Sunday March 25, 2012 @11:14AM (#3752780)
Or rack up an insane unexpected data bill.
Re:How a web app can download and store over 2GB without you... by objclxt on Sunday March 25, 2012 @11:19AM (#3752795)
iOS (and Android I think, but I primarily dev iOS so that's where my knowledge is) won't let a website exceed a 5MB local storage limit without explicit user consent...so I suppose still technically possible, but not without getting the user to agree to it first.
Re:How a web app can download and store over 2GB without you... by njs12345 on Sunday March 25, 2012 @11:58AM (#3752887)
I wonder if you could still perform a DOS by doing the following:

  - register 1000 domains
  - when the browser navigates to the first domain, store 5Mb
  - once the store has finished, redirect to the next domain
  - repeat steps 2-3 ad infinitum
Anybody know if this would work?
Re:How a web app can download and store over 2GB without you... by fl3x on Sunday March 25, 2012 @12:05PM (#3752898)
That could probably work!

The documentation at http://dev.w3.org/html5/spec/offline.html#disk-space states that "care should be taken to ensure that the restrictions cannot be easily worked around using subdomains", so one would really have to use different domains as you write, which sounds a bit costly.

Re:How a web app can download and store over 2GB without you... by AlexV on Sunday March 25, 2012 @12:07PM (#3752902)
Sub-domains should work also then. Just make a page with bunch of IFrames, each on a different, random sub-domain.

Edit: Ooops; didn't see the comment above about sub-domains. Worth a try though!

Re:How a web app can download and store over 2GB without you... by evan_ on Sunday March 25, 2012 @02:03PM (#3753258)
A malicious actor might write a wordpress worm to assemble a domain botnet and cross-link them all to each other such that visiting one stores 5 megs of nonsense from every site on a visitor's client.
Re:How a web app can download and store over 2GB without you... by andrewaylett on Tuesday March 27, 2012 @02:02PM (#3762815)
At least on Gingerbread, the browser has quite a low global limit -- I sometimes hit it just from using Twitter and Google Search.
Re:How a web app can download and store over 2GB without you... by evanm on Sunday March 25, 2012 @01:39PM (#3753184)
I mean, theoretically. But would a user actually willingly wait out this process?
Re:How a web app can download and store over 2GB without you... by Joeri on Sunday March 25, 2012 @02:10PM (#3753292)
They would if you do it in an iframe while letting them play a flash game. They might even attribute slowdowns to the flash game.
Re:How a web app can download and store over 2GB without you... by joshfraser on Sunday March 25, 2012 @04:04PM (#3753639)
it doesn't need to be downloaded. it can be populated with generated data using JavaScript.
Re:How a web app can download and store over 2GB without you... by Joeri on Sunday March 25, 2012 @02:07PM (#3753275)
You can store up to 50 mb in appcache (instead of localstorage) in mobile safari. You can also store 50 mb in the web sql storage, but i don't know if that shares the appcache storage or is counted separately. The 5 mb limit for localstorage is because that's what the spec recommends.
Re:How a web app can download and store over 2GB without you... by ef4 on Sunday March 25, 2012 @01:45PM (#3753206)
localStorage and application cache are not the same thing.

localStorage is the one that prompts the user for more than 5MB, but the author was using application, which I've never seen prompt.

Re:How a web app can download and store over 2GB without you... by notatoad on Sunday March 25, 2012 @04:01PM (#3753629)
unless something's changed in the last couple months, localStorage prompts for any storage, and cuts you off completely at 5MB.
Re:How a web app can download and store over 2GB without you... by cheald on Monday March 26, 2012 @01:38AM (#3755184)
If you're talking bandwidth cap attacks, then you could just keep cleaning out local storage and downloading more from /dev/random perpetually.