Server : nginx/1.24.0 System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/cleaner/archives/__pycache__/ |
Upload File : |
� -�_gK? � �f � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d� Z G d� d� Zy)� N)�ProcessPoolExecutor)�file_is_binaryc �� � t j | � 5 }t j j |d� }t t dd� � |_ |j � D ]� }t j j ||j � }t j j |� }t j j |� }t j j ||g� }||k7 rt d|� d|� �� �|j ||� �� t j j ||j j d� d j d� d � cd d d � S # 1 sw Y y xY w) N�cleaner�fully_trusted_filterc � � | S �N� )�member�paths �?/usr/lib/python3/dist-packages/sos/cleaner/archives/__init__.py�<lambda>z!extract_archive.<locals>.<lambda>! s � �&� � z"Attempted path traversal in tarflez != �/����.tarr )�tarfile�open�osr �join�getattr�extraction_filter� getmembers�name�abspath�commonprefix� Exception�extract�split) �archive_path�tmpdir�archiver r �member_path� abs_directory� abs_target�prefixs r �extract_archiver'