-
Notifications
You must be signed in to change notification settings - Fork 37
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 #829
CVE-2007-4559 Patch #829
Conversation
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #829 +/- ##
==========================================
+ Coverage 77.69% 78.46% +0.76%
==========================================
Files 64 64
Lines 7246 7230 -16
Branches 1470 1465 -5
==========================================
+ Hits 5630 5673 +43
+ Misses 1302 1244 -58
+ Partials 314 313 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I don’t have time to do a full review right now, but thank you for this! I am commenting to let the rest of the maintainer team know that this is a vulnerability I’ve heard about prior to this PR, and I think it’s worth patching in some way. I might like to refactor some portion of the fix but in principle I support it. |
A proper fix for this security bug should be in python's tarfile module, but until that happens, I'm in favor of this as a temporary security fix. Have the folks @TrellixVulnTeam started working towards getting this fixed upstream? |
for more information, see https://pre-commit.ci
It appears that the best fix for this is to remove the function. |
Patching CVE-2007-4559
Hi, we are security researchers from the Advanced Research Center at Trellix. We have began a campaign to patch a widespread bug named CVE-2007-4559. CVE-2007-4559 is a 15 year old bug in the Python tarfile package. By using extract() or extractall() on a tarfile object without sanitizing input, a maliciously crafted .tar file could perform a directory path traversal attack. We found at least one unsantized extractall() in your codebase and are providing a patch for you via pull request. The patch essentially checks to see if all tarfile members will be extracted safely and throws an exception otherwise. We encourage you to use this patch or your own solution to secure against CVE-2007-4559. Further technical information about the vulnerability can be found in this blog.
If you have further questions you may contact us through this projects lead researcher Kasimir Schulz.