You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tarfile.extractall() just extracts everything that is in the tarball. Including stuff like ../../../etc/passwd , which is kind of shady, and exploitable - as the video shows.
Uh oh!
There was an error while loading. Please reload this page.
Bug report
As the sensational article on bleepingcomputer mentions:
https://www.bleepingcomputer.com/news/security/unpatched-15-year-old-python-bug-allows-code-execution-in-350k-projects/
tarfile.extractall() just extracts everything that is in the tarball. Including stuff like ../../../etc/passwd , which is kind of shady, and exploitable - as the video shows.
This has been reported before:
https://mail.python.org/pipermail/python-dev/2007-August/074290.html
I think the response was: "upstream should fix it". (Meaning: GNU tar)
Eventually, upstream did fix it; tar now throws an error when untarring files with '../' in them:
I suggest tarfile.extractall() is changed so it throws that same error as GNU tar.
The text was updated successfully, but these errors were encountered: