My ZIP isn't your ZIP: Identifying and exploiting semantic gaps between parsers
The ZIP format specification is imprecise, so different ZIP parsers interpret the same archive differently. An attacker could craft an archive that one parser treats as benign while another extracts or verifies different content, enabling bypasses of secure email gateways, spoofing of office documents, impersonation of VS Code extensions, and tampering with signed nested JAR files while still passing Spring Boot's signature verification.
usenix.org
Published on usenix.org
Yufan You, Tsinghua University; Jianjun Chen, Tsinghua University; Zhongguancun Laboratory; Qi Wang, Tsinghua University; Haixin Duan, Tsinghua University; Zhongguancun Laboratory
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the ZIP format specification is imprecise, leaving room for parsers to make different but individually valid choices when reading the same archive.
Impact
Attackers could bypass secure email gateways, spoof office document content, impersonate VS Code extensions, and tamper with signed nested JAR files while still passing Spring Boot's signature verification.
What the attacker needed
Crafted ZIP archive; two parsers with different behaviour; victim processes the archive
The fix
Seven mitigation strategies were proposed, and the vulnerabilities were responsibly reported to affected vendors, with three CVEs issued by Go, LibreOffice, and Spring Boot.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A ZIP file is a container that holds other files, and many programs read ZIP files in slightly different ways because the rules are vague. If an attacker builds a ZIP that two programs read differently, one program may see a harmless file while another sees something dangerous, such as a fake document or a tampered program. This paper found many such disagreements across dozens of ZIP readers.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.