Add dotdot.wim, duplicate_names.wim
authorEric Biggers <ebiggers3@gmail.com>
Wed, 15 Jan 2014 01:41:12 +0000 (19:41 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 15 Jan 2014 01:41:12 +0000 (19:41 -0600)
tests/wims/README [new file with mode: 0644]
tests/wims/dotdot.wim [new file with mode: 0644]
tests/wims/duplicate_names.wim [new file with mode: 0644]

diff --git a/tests/wims/README b/tests/wims/README
new file mode 100644 (file)
index 0000000..790f5d4
--- /dev/null
@@ -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 (file)
index 0000000..6c15c70
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 (file)
index 0000000..0921329
Binary files /dev/null and b/tests/wims/duplicate_names.wim differ