Zip Bomb
en.wikipedia.org
Zip Bomb
1–10 of 113 posts
Re: Zip Bomb
#2See also Russ Cox's "Zip Files All The Way Down" article:
Re: Zip Bomb
#3While this is out of the range of most consumers, I wonder if any bored sysadmins with a new storage system to test have tried unzipping that file...
Re: Zip Bomb
#4While this is out of the range of most consumers, I wonder if any bored sysadmins with a new storage system to test have tried unzipping that file...
I've tried it, and I'm no sysadmin. Fortunately, I had a disk quota on, set by my sysadmin, and so the bomb could only take up 2 gb of the space I had in my quota.
Re: Zip Bomb
#5Web browsers support compressed data, I wonder will they try to decompress something like this?
Re: Zip Bomb
#6While this is out of the range of most consumers, I wonder if any bored sysadmins with a new storage system to test have tried unzipping that file...
It'd be easier to do something like cat /dev/urandom > big
Re: Zip Bomb
#7Old as fuck.
Re: Zip Bomb
#8I've seen something similar with a PNG file for user supplied profile image [1]. The image was a 10000x10000 all black PNG image which compresses to a pretty small file size.
Unless you validate the image dimensions as well as the file size it may cause problems, for instance when GD is used to try to resize it exhausted the memory limit.
Re: Zip Bomb
#9Old as fuck.
Next week on HN, C++ released! :)
Re: Zip Bomb
#10Even more impressive: A zip file that extracts to itself. (That's also shown in the article, as a kind of "Lempel-Ziv quine".)