Stories
Slash Boxes
Comments

SoylentNews is people

Submission Preview

Link to Story

A better zip bomb

Accepted submission by owl at 2025-12-20 03:23:49
/dev/random
https://www.bamsoftware.com/hacks/zipbomb/ [bamsoftware.com]

This article shows how to construct a non-recursive zip bomb that achieves a high compression ratio by overlapping files inside the zip container. "Non-recursive" means that it does not rely on a decompressor's recursively unpacking zip files nested within zip files: it expands fully after a single round of decompression. The output size increases quadratically in the input size, reaching a compression ratio of over 28 million (10 MB → 281 TB) at the limits of the zip format. Even greater expansion is possible using 64-bit extensions. The construction uses only the most common compression algorithm, DEFLATE, and is compatible with most zip parsers.


Original Submission