

The exceptions being "streaming" parsers that Is not directly portable to other file formats or compression algorithms. The construction depends on features of both zip and DEFLATE-it The compression ratio gets better as the bomb gets bigger.

The zip bomb's output size grows quadratically in the input size i.e.,

In order to reference a "kernel" of highly compressed data It works by overlapping files inside the zip container, Whose compression ratio surpasses the DEFLATE limit of 1032. This article shows how to construct a non-recursive zip bomb If all six of its layers are recursively unzipped,Īnd thus expand infinitely if recursively unzipped,Īre likewise perfectly safe to unzip once. Nesting zip files within zip files to get an extra factor of 1032 with each layer.īut the trick only works on implementations that The compression algorithm most commonly supported by zip parsers,Ĭannot achieve a compression ratio greater than 1032.įor this reason, zip bombs typically rely on recursive decompression, We compare only against the older version.Ĥ2.zip but haven't been able to find a source- let me knowĬompression bombs that use the zip format The difference is that the newer version requires a password before unzipping. Source code: git clone zipbomb-20210121.zip Data and source for figures: git clone
