-
-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minizip allows extraction outside root folder #433
Comments
For reference, SSZipArchive (which uses minizip internally) shouldn't be affected by this issue, as I'm using native (Apple) path sanitation: |
nmoinvaz
added a commit
that referenced
this issue
Oct 24, 2019
It is now fixed in |
tim-janik
added a commit
to tim-janik/anklang
that referenced
this issue
Sep 21, 2023
Signed-off-by: Tim Janik <timj@gnu.org>
tim-janik
added a commit
to tim-janik/anklang
that referenced
this issue
Sep 21, 2023
* minizip-ng-submodule: MISC: mkcopyright.py: ignore dirs passed from `git ls-tree` on the CLI .gitignore: remove entries of files the build is not generating ASE: storage.cc: adjust old link to zlib-ng/minizip-ng/issues/433 ASE: minizip: build against external/minizip-ng/ ASE: Makefile.mk: automatically update external/minizip-ng submodule as needed EXTERNAL: minizip-ng: add zlib-ng/minizip-ng version 2.9.0 git submodule add --name minizip-ng https://github.com/zlib-ng/minizip-ng.git external/minizip-ng Signed-off-by: Tim Janik <timj@gnu.org>
tim-janik
added a commit
to tim-janik/anklang
that referenced
this issue
Sep 21, 2023
Signed-off-by: Tim Janik <timj@gnu.org>
tim-janik
added a commit
to tim-janik/anklang
that referenced
this issue
Sep 21, 2023
* use-git-submodule: DOC: copyright.ini: apply MPL-2.0 to .gitmodules MISC: Makefile.mk: directly create and reference .dlcache/ for mkassets.sh MISC: Makefile.mk: mkassets: download builds tools before misc/mkassets.sh GITHUB: workflows/testing.yml: use `make mkassets` for release builds .gitignore: ignore .submodule-stamp UI: global.scss, index.html: move AnklangIcons to assets/ UI: Makefile.mk: copy anklangicons-*.tgz files to assets, remove download EXTERNAL: blobs4anklang: add tim-janik/blobs4anklang commit from 2023-09-21 21:04:16 git -C external/blobs4anklang/ checkout 7b0a4a68a1e9efbe68fc9761bef080995f4b4d6b UI: global.scss, index.html: move fork-awesome to assets/ UI: Makefile.mk: copy node_modules/fork-awesome to assets, remove download MISC: package.json.in: install fork-awesome@1.2.0 UI: Makefile.mk: use blobs4anklang/fonts/InterVariable.woff2, remove download EXTERNAL: blobs4anklang: add tim-janik/blobs4anklang commit from 2023-09-21 18:23:36 git submodule add --name blobs4anklang https://github.com/tim-janik/blobs4anklang.git external/blobs4anklang git -C external/blobs4anklang/ checkout 8da35f3914b9668bacc6755a8051a17051b07c3a Makefile.mk: skip `git submodule` in tarball builds Makefile.mk: dist: exclude unused external subdirs from tarball Makefile.mk: include submodule archives in dist tarball ASE: Makefile.mk: use blake3 submodule, remove download rule ASE: compress.cc: use external/blake3/c/blake3.h EXTERNAL: blake3: add BLAKE3-team/BLAKE3 version 1.3.1 git submodule add --name blake3 https://github.com/BLAKE3-team/BLAKE3.git external/blake3 git -C external/blake3/ checkout 1.3.1 ASE: Makefile.mk: use websocketpp submodule, remove download rule EXTERNAL: websocketpp: add zaphoyd/websocketpp version 0.8.2 git submodule add --name websocketpp https://github.com/zaphoyd/websocketpp.git external/websocketpp git -C external/websocketpp/ checkout 0.8.2 ASE: Makefile.mk: use clap submodule, remove download rule EXTERNAL: clap: add free-audio/clap version 1.1.1 git submodule add --name clap https://github.com/free-audio/clap.git external/clap git -C external/clap/ checkout 1.1.1 ASE: Makefile.mk: use rapidjson submodule, remove download rule EXTERNAL: rapidjson: add Tencent/rapidjson commit from 2022-05-24 10:03:13 git submodule add --name rapidjson https://github.com/Tencent/rapidjson.git external/rapidjson git checkout 232389d4f1012dddec4ef84861face2d2ba85709 Makefile.mk: update all submodules before building sources Makefile.mk: remove external/ subdir from ls-tree.lst MISC: mkcopyright.py: ignore dirs passed from `git ls-tree` on the CLI ASE: storage.cc: adjust old link to zlib-ng/minizip-ng/issues/433 ASE: minizip: build against external/minizip-ng/ ASE: Makefile.mk: use minizip-ng submodule, remove download rule EXTERNAL: minizip-ng: add zlib-ng/minizip-ng version 2.9.0 git submodule add --name minizip-ng https://github.com/zlib-ng/minizip-ng.git external/minizip-ng .gitignore: remove entries of files the build is not generating Signed-off-by: Tim Janik <timj@gnu.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With a specially crafted ZIP file, Minizip (via
mz_zip_reader_save_all()
) will write into $CWD/..Extraction:
Note how e.g.
UnZip 6.00
handles this situation:The text was updated successfully, but these errors were encountered: