Browse > Article
http://dx.doi.org/10.13089/JKIISC.2022.32.5.869

Malicious Code Injection Vulnerability Analysis in the Deflate Algorithm  

Kim, Jung-hoon (BinaryLab)
Abstract
Through this study, we discovered that among three types of compressed data blocks generated through the Deflate algorithm, No-Payload Non-Compressed Block type (NPNCB) which has no literal data can be randomly generated and inserted between normal compressed blocks. In the header of the non-compressed block, there is a data area that exists only for byte alignment, and we called this area as DBA (Disposed Bit Area), where an attacker can hide various malicious codes and data. Finally we found the vulnerability that hides malicious codes or arbitrary data through inserting NPNCBs with infected DBA between normal compressed blocks according to a pre-designed attack scenario. Experiments show that even though contaminated NPNCB blocks were inserted between normal compressed blocks, commercial programs decoded normally contaminated zip file without any warning, and malicious code could be executed by the malicious decoder.
Keywords
Deflate; Zip; Non-compressed block; Steganography; Malware;
Citations & Related Records
연도 인용수 순위
  • Reference
1 J. Woods, Proteon, Inc., "PPP Deflate Protocol", RFC 1979, Aug. 1996.
2 Zlib 1.2.11 manual,"Zlib manual", https://www.zlib.net/manual.html,27th Sep. 2022.
3 Zip Slip Vulnerability,"Zip slip", https://security.snyk.io/research/zip-slipvulnerability,27th Sep. 2022.
4 T. Ylonen, SSH Communications Security Corp,C. Lonvick, Ed., Cisco Systems, Inc.,"The Secure Shell (SSH)Transport Layer Protocol", RFC4253,Jan. 2006.
5 Zip File Format Specification,"Zip appnote", https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT, 27th Sep. 2022.
6 P. Deutsch, Aladdin Enterprises,"DEFLATE Compressed Data Format Specification version 1.3", RFC1951,May. 1996.
7 S.Hollenbeck, VeriSign, Inc.,"Transport Layer Security Protocol Compression Methods", RFC3749, May2004.
8 Steganography with zip archives,"Zip Steganography", https://github.com/gromnitsky/zipography,27th Sep. 2022.