Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b9ff6697
Commit
b9ff6697
authored
Aug 30, 2007
by
Lars Gustäbel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn about possible risks when extracting untrusted archives.
parent
39f1f452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Doc/lib/libtarfile.tex
Doc/lib/libtarfile.tex
+10
-0
No files found.
Doc/lib/libtarfile.tex
View file @
b9ff6697
...
...
@@ -207,6 +207,12 @@ tar archive several times. Each archive member is represented by a
problems: A directory's modification time is reset each time a file is
created in it. And, if a directory's permissions do not allow writing,
extracting files to it will fail.
\begin{notice}
[warning]
Never extract archives from untrusted sources without prior inspection.
It is possible that files are created outside of
\var
{
path
}
, e.g. members
that have absolute filenames starting with
\code
{
"/"
}
or filenames with
two dots
\code
{
".."
}
.
\end{notice}
\versionadded
{
2.5
}
\end{methoddesc}
...
...
@@ -221,6 +227,10 @@ tar archive several times. Each archive member is represented by a
archive there are some issues you must take care of yourself. See the
description for
\method
{
extractall()
}
above.
\end{notice}
\begin{notice}
[warning]
See the warning for
\method
{
extractall()
}
.
\end{notice}
\end{methoddesc}
\begin{methoddesc}
{
extractfile
}{
member
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment