From: Eric Biggers Date: Wed, 15 Jan 2014 01:41:12 +0000 (-0600) Subject: Add dotdot.wim, duplicate_names.wim X-Git-Tag: v1.6.1~43 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=0e6dcdd56666fded4abf26a081bec7db37ba2cbf Add dotdot.wim, duplicate_names.wim --- diff --git a/tests/wims/README b/tests/wims/README new file mode 100644 index 00000000..790f5d41 --- /dev/null +++ b/tests/wims/README @@ -0,0 +1,20 @@ +Some fun files: + +cyclic.wim: This WIM has an image with a cyclic directory structure and should be +detected as invalid. + +duplicate_names.wim: This WIM has an image with multiple files with the same +name in the same directory, and should be detected as invalid. + +dotdot.wim: This WIM has an image with the path +/../../../../../../../../../../../../../../../../etc/passwd, and should be +detected as invalid. (Fun fact: WIMGAPI is dumb and will extract .. files, and +requires running with Admin rights, so given a malicious WIM file it will +overwrite arbitrary files on the target drive.) + +longpaths.wim: This WIM has an image with a path longer than MAX_PATH on Windows. +This should still be extracted successfully. + +empty_dacl.wim: This WIM has an image containing file with a security +descriptor having an empty DACL. This is valid and should be extracted +successfully. diff --git a/tests/wims/dotdot.wim b/tests/wims/dotdot.wim new file mode 100644 index 00000000..6c15c706 Binary files /dev/null and b/tests/wims/dotdot.wim differ diff --git a/tests/wims/duplicate_names.wim b/tests/wims/duplicate_names.wim new file mode 100644 index 00000000..0921329d Binary files /dev/null and b/tests/wims/duplicate_names.wim differ