What happens when you open a ZIP someone sent you
Take a file called project-files.zip, 2.1 MB, sent by a client. Opening it here lists 14 entries: a folder called assets with 9 PNG pictures, a brief.docx, a notes.txt and a budget.xlsx. The summary line says 6.4 MB unpacked and 2.1 MB packed, 67% smaller. That number hides a split. The text file and the Office documents shrank by 70 to 90 percent, and the PNG pictures shrank by almost nothing, because PNG is already compressed.
Before extracting anything, you can press Preview on notes.txt and read it in the page. The tool unpacks only the first 64 KB of that one entry to show it, so a quick look at a large log file costs almost nothing. A PNG preview unpacks the whole picture, up to 20 MB, and shows it in an image element. Images shown this way cannot run scripts, so a hostile file name or picture does nothing on this page.
Now suppose the archive also held an entry called ../../.bashrc. On many systems, a simple unzip script would write it two folders above the destination, into the home folder, and replace the shell settings there. This is the zip-slip attack, and it has affected real libraries in Java, Python and JavaScript. Here that entry is listed with an unsafe path badge and a sentence explaining why. It is never written, whichever way you extract.
Zip bombs are the other classic trick. A file of a few kilobytes can declare, or actually produce, many gigabytes, enough to fill a disk or crash a tab. This tool checks every entry twice. Before unpacking, the declared size must be under the 1 GB limit. During unpacking, the stream is stopped the moment it passes the declared size, because the nastier bombs lie about their size. An archive that claims to unpack to over 100 MB from something more than 100 times smaller also gets a warning before you start.
The tool has honest limits. It reads ordinary ZIP files only, not RAR, 7z or TAR. It does not open password protected entries, or entries packed with LZMA, BZIP2, Zstandard or other rare methods. It cannot read ZIP64 archives, which are used past 4 GB. Everything it unpacks sits in the tab’s memory until it is saved, so extraction stops at 1 GB. For archives beyond those limits, a desktop tool such as 7-Zip is the right choice.