Lurker News
I wrote this silly thing a couple of weeks ago. It's absolutely useless but it's a fun tech demo for my web server library. Enjoy!

Comments (181) 65 threads

Show all comments

Showing thread 40 of 65

lagniappe2 replies#
how does it react to a zip bomb?
whoomp123422 replies#
2000 bytes limit
DriverDaily1 reply#
Plenty of room for a recursive function with no base case
grepfru_it2 replies#
You're not getting very far on 2k bytes. A 10k file expands to 10MB and will likely timeout if the author's webhost configured proper limits
acidx1 reply#
Files are not decompressed in the server: it sends the unmodified deflate stream back to the user.

Continue this thread — 1 reply

DriverDaily2 replies#
Wouldn't infinitely spawning web workers do the same thing as a zip bomb?

```

Continue this thread — 2 replies

pcthrowaway#
Which is enough to store any content (unzipped it just needs to contain a link to the next chunk)
pmarreck#
"Compression bombs that use the zip format must cope with the fact that DEFLATE, the compression algorithm most commonly supported by zip parsers, cannot achieve a compression ratio greater than 1032. For this reason, zip bombs typically rely on recursive decompression, nesting zip files within zip files to get an extra factor of 1032 with each layer. But the trick only works on implementations that unzip recursively, and most do not."

https://www.bamsoftware.com/hacks/zipbomb/