Restrict remote archive extraction to safe members
This commit is contained in:
parent
df83ebc834
commit
c02815b0c1
1 changed files with 34 additions and 1 deletions
|
|
@ -197,7 +197,9 @@ class LargeFileBase(ABC):
|
|||
)
|
||||
|
||||
logger.info(f"Decompressing {self._local_name}")
|
||||
shutil.unpack_archive(str(tmp_file_archive), tmp, COMPRESSION_ALGORITHM)
|
||||
shutil.unpack_archive(
|
||||
str(tmp_file_archive), tmp, COMPRESSION_ALGORITHM, filter="data"
|
||||
)
|
||||
shutil.move(str(local_root_path / self._local_name), str(destination))
|
||||
else:
|
||||
logger.info(f"File {self._local_name} found in cache")
|
||||
|
|
|
|||
Loading…
Reference in a new issue