Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2007-4559 Patch #54

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adding numeric_owner as keyword arguement
  • Loading branch information
TrellixVulnTeam committed Oct 4, 2022
commit 26e73e17795d861f77c6ebcc0e71478ed70ffe66
2 changes: 1 addition & 1 deletion frontend/mate/mate/build/build.py
Original file line number Diff line number Diff line change
@@ -686,7 +686,7 @@ def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
if not is_within_directory(path, member_path):
raise Exception("Attempted Path Traversal in Tar File")

tar.extractall(path, members, numeric_owner)
tar.extractall(path, members, numeric_owner=numeric_owner)


safe_extract(tar, path=temp_source_dir.name)
4 changes: 2 additions & 2 deletions frontend/mate/mate/build/compile.py
Original file line number Diff line number Diff line change
@@ -726,7 +726,7 @@ def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
if not is_within_directory(path, member_path):
raise Exception("Attempted Path Traversal in Tar File")

tar.extractall(path, members, numeric_owner)
tar.extractall(path, members, numeric_owner=numeric_owner)


safe_extract(tar, path=local_target_dir.name)
@@ -820,7 +820,7 @@ def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
if not is_within_directory(path, member_path):
raise Exception("Attempted Path Traversal in Tar File")

tar.extractall(path, members, numeric_owner)
tar.extractall(path, members, numeric_owner=numeric_owner)


safe_extract(tar, path=scratch_src)