From 8e472fc51e9a874b635993ff6045ada20818ee84 Mon Sep 17 00:00:00 2001 From: Omer Anson Date: Wed, 13 May 2020 21:36:43 +0300 Subject: [PATCH] Add package_files path to allowed uploadable paths In resultserver.py, add 'package_files' to the list of uploadable paths. This path is used in 'analyzer.py' (both linux and windows versions) when uploading files reported by the 'package_files' method. --- cuckoo/core/resultserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cuckoo/core/resultserver.py b/cuckoo/core/resultserver.py index 96117eff27..97bc0d0738 100644 --- a/cuckoo/core/resultserver.py +++ b/cuckoo/core/resultserver.py @@ -34,7 +34,8 @@ # Directories in which analysis-related files will be stored; also acts as # whitelist -RESULT_UPLOADABLE = ("files", "shots", "buffer", "extracted", "memory") +RESULT_UPLOADABLE = ("files", "shots", "buffer", "extracted", "memory", + "package_files") RESULT_DIRECTORIES = RESULT_UPLOADABLE + ("reports", "logs") # Prevent malicious clients from using potentially dangerous filenames