Live data from Hacker News

Zip Bomb

en.wikipedia.org

1–10 of 113 posts

Re: Zip Bomb

#3
While 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

#4
post #3

While 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

#6
post #3

While 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

#8
I'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.

[1] https://bugs.launchpad.net/mahara/+bug/784978

Re: Zip Bomb

#10
Even more impressive: A zip file that extracts to itself. (That's also shown in the article, as a kind of "Lempel-Ziv quine".)
Post reply on HN