My ZIP isn't your ZIP: Identifying and Exploiting Semantic Gaps Between ZIP Parsers
Yufan You, Jianjun Chen, Qi Wang, Haixin Duan
摘要
ZIP is one of the most popular archive formats. It is used not only as archive files, but also as the container for other file formats, including office documents, Android applications, Java archives, and many more. Despite its ubiquity, the ZIP file format specification is imprecisely specified, posing the risk of semantic gaps between implementations that can be exploited by attackers. While prior research has reported individual such vulnerabilities, there is a lack of systematic studies for ZIP parsing ambiguities. In this paper, we developed a differential fuzzer ZIPDIFF and systematically identified parsing inconsistencies between 50 ZIP parsers across 19 programming languages. The evaluation results show that almost all pairs of parsers are vulnerable to certain parsing ambiguities. We summarize our findings as 14 distinct parsing ambiguity types in three categories with detailed analysis, systematizing current knowledge and uncovering 10 types of new parsing ambiguities. We demonstrate five real-world scenarios where these parsing ambiguities can be exploited, including bypassing secure email gateways, spoofing office document content, impersonating VS Code extensions, and tampering with signed nested JAR files while still passing Spring Boot's signature verification. We further propose seven mitigation strategies to address these ambiguities. We responsibly reported the vulnerabilities to the affected vendors and received positive feedback, including bounty rewards from Gmail, Coremail, and Zoho, and three CVEs from Go, LibreOffice, and Spring Boot.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- VUPER: Verified ASN.1 UPER Parser 引用了 NEZHA: Efficient Domain-Independent Differential Testing
- SIPConfusion: Exploiting SIP Semantic Ambiguities for Caller ID and SMS Spoofing 引用了 Host of Troubles: Multiple Host Ambiguities in HTTP Implementations
- Token Time Bomb: Evaluating JWT Implementations for Vulnerability Discovery 引用了 NEZHA: Efficient Domain-Independent Differential Testing
- T-Reqs: HTTP Request Smuggling with Differential Fuzzing 引用了 Host of Troubles: Multiple Host Ambiguities in HTTP Implementations
引用它的顶会 Paper5
- Identifying Logical Vulnerabilities in QUIC ImplementationsKaihua Wang, Jianjun Chen, Pinji Chen, Jianwei Zhuge 等NDSS 2026 · 1 次引用
- SIPConfusion: Exploiting SIP Semantic Ambiguities for Caller ID and SMS SpoofingQi Wang, Jianjun Chen, Jingcheng Yang, Jiahe Zhang 等NDSS 2026 · 1 次引用
- Token Time Bomb: Evaluating JWT Implementations for Vulnerability DiscoveryJingcheng Yang, Enze Wang, Jianjun Chen, Qi Wang 等NDSS 2026 · 1 次引用
- Wormholes in the File System: Understanding the Misunderstanding of SymlinksYongheng Liu, Lei Zhang, Yuhang Zhao, Yuzhou HeUSENIX Security 2026
- VUPER: Verified ASN.1 UPER ParserXiaotian Zhou, Kai Tu, Ali Ranjbar, Yilu Dong 等CCS 2026
它引用的 Paper13
- NEZHA: Efficient Domain-Independent Differential TestingTheofilos Petsios, Adrian Tang, Salvatore J. Stolfo, Angelos D. Keromytis 等S&P 2017 · 132 次引用
- HVLearn: Automated Black-Box Analysis of Hostname Verification in SSL/TLS ImplementationsSuphannee Sivakorn, George Argyros, Kexin Pei, Angelos D. Keromytis 等S&P 2017 · 88 次引用
- Host of Troubles: Multiple Host Ambiguities in HTTP ImplementationsJianjun Chen, Jian Jiang, Hai-Xin Duan, Nicholas Weaver 等CCS 2016 · 49 次引用
- T-Reqs: HTTP Request Smuggling with Differential FuzzingBahruz Jabiyev, Steven Sprecher, Kaan Onarlioglu, Engin KirdaCCS 2021 · 35 次引用
- SBDT: Search-Based Differential Testing of Certificate Parsers in SSL/TLS ImplementationsChu Chen, Pinghong Ren, Zhenhua Duan, Cong Tian 等ISSTA 2023 · 13 次引用
相关 Paper
- Inbox Invasion: Exploiting MIME Ambiguities to Evade Email Attachment DetectorsJiahe Zhang, Jianjun Chen, Qi Wang, Hangyu Zhang 等CCS 2024 · 2 次引用
- Iframes/Popups Are Dangerous in Mobile WebView: Studying and Mitigating Differential Context VulnerabilitiesGuangliang Yang, Jeff Huang, Guofei GuUSENIX Security 2019 · 21 次引用
- Automated Data Binding Vulnerability Detection for Java Web Frameworks via Nested Property GraphXiaoyong Yan, Biao He, Wenbo Shen, Yu Ouyang 等ISSTA 2024 · 2 次引用
- From Documentation to Zero-day Vulnerabilities: LLM-Driven Fuzzing of JavaScript Engines in PDF ReadersSuyue Guo, Stijn Pletinckx, Tianle Yu, Yigitcan Kaya 等CCS 2026
- Every Signature is Broken: On the Insecurity of Microsoft Office's OOXML SignaturesSimon Rohlmann, Vladislav Mladenov, Christian Mainka, Daniel Hirschberger 等USENIX Security 2023
