zlib/contrib/minizip
Matt Wilson 14a5f8f266 Neutralize zip file traversal attacks in miniunz.
Archive formats such as .zip files are generally susceptible to
so-called "traversal attacks". This allows an attacker to craft
an archive that writes to unexpected locations of the file system
(e.g., /etc/shadow) if an unspecting root user were to unpack a
malicious archive.

This patch neutralizes absolute paths such as /tmp/moo and deeply
relative paths such as dummy/../../../../../../../../../../tmp/moo

The Debian project requested CVE-2014-9485 be allocated for the
first identified weakness. The fix was incomplete, resulting in a
revised patch applied here. Since there wasn't an updated version
released by Debian with the incomplete fix, I suggest we use this
CVE to identify both issues.

Link: https://security.snyk.io/research/zip-slip-vulnerability
Link: https://bugs.debian.org/774321
Link: https://bugs.debian.org/776831
Link: https://nvd.nist.gov/vuln/detail/CVE-2014-9485
Reported-by: Jakub Wilk <jwilk@debian.org>
Fixed-by: Michael Gilbert <mgilbert@debian.org>
2024-01-17 15:08:08 -08:00
..
configure.ac Change version number on develop branch to 1.3.0.1. 2023-08-18 13:23:07 -07:00
crypt.h Remove K&R function definitions from contrib/minizip. 2023-04-15 22:56:37 -07:00
ioapi.c Support Haiku in minizip. 2023-08-03 11:17:07 -07:00
ioapi.h Correct repeated words in source file comments and a readme. 2023-11-14 18:44:32 -08:00
iowin32.c Remove K&R function definitions from contrib/minizip. 2023-04-15 22:56:37 -07:00
iowin32.h Remove K&R function definitions from contrib/minizip. 2023-04-15 22:56:37 -07:00
make_vms.com zlib 1.2.3.9 2011-09-09 23:27:26 -07:00
Makefile Clean up minizip to reduce warnings for testing. 2022-01-01 14:55:47 -08:00
Makefile.am Fix contrib/minizip compilation in the MinGW environment. 2012-03-26 20:17:41 -07:00
miniunz.c Neutralize zip file traversal attacks in miniunz. 2024-01-17 15:08:08 -08:00
miniunzip.1 Add man pages for minizip and miniunzip. 2013-03-24 16:28:41 -07:00
MiniZip64_Changes.txt Fix typos found by codespell in minizip 2023-07-29 23:44:25 -07:00
MiniZip64_info.txt zlib 1.2.3.9 2011-09-09 23:27:26 -07:00
minizip.1 Add man pages for minizip and miniunzip. 2013-03-24 16:28:41 -07:00
minizip.c Avoid uninitialized and unused warnings in contrib/minizip. 2023-08-17 22:35:43 -07:00
minizip.pc.in Add files in contrib/minizip to aid in building libminizip. 2011-11-13 12:42:47 -08:00
mztools.c Remove K&R function definitions from contrib/minizip. 2023-04-15 22:56:37 -07:00
mztools.h Fix bug when compiling minizip with C++ [Vollant]. 2012-01-21 11:58:35 -08:00
unzip.c Fix random typos over several source and text files. 2024-01-17 13:49:11 -08:00
unzip.h Fix random typos over several source and text files. 2024-01-17 13:49:11 -08:00
zip.c Fix random typos over several source and text files. 2024-01-17 13:49:11 -08:00
zip.h Correct repeated words in source file comments and a readme. 2023-11-14 18:44:32 -08:00