File CVE-2019-9674-zip-bomb.patch of Package python (Revision 7c7532457b948cc36e86ff51d95885bc)
Currently displaying revision 7c7532457b948cc36e86ff51d95885bc , Show latest
xxxxxxxxxx
1
From b73fe12d4d85fc92e4b9658e417046b68fb68ecc Mon Sep 17 00:00:00 2001
2
From: nick sung <sungboss2004@gmail.com>
3
Date: Fri, 17 May 2019 15:45:31 +0800
4
Subject: [PATCH 1/4] bpo-36260: Add pitfalls to zipfile module documentation
5
6
We saw vulnerability warning description (including zip bomb) in Doc/library/xml.rst file.
7
This gave us the idea of documentation improvement.
8
9
So, we moved a little bit forward :P
10
And the doc patch can be found (pr).
11
---
12
Doc/library/zipfile.rst | 29 +++++++++++++++++++++++++++++
13
1 file changed, 29 insertions(+)
14
15
--- a/Doc/library/zipfile.rst
16
+++ b/Doc/library/zipfile.rst
17
18
19
Test whether the zipfile is valid or not.
20
21
+Decompression pitfalls
22
+----------------------
23
24
+The extraction in zipfile module might fail due to some pitfalls
25
+listed below.
26
+
27
+From file itself
28
+~~~~~~~~~~~~~~~~
29
+
30
+Decompression may fail due to incorrect password / CRC checksum
31
+/ ZIP format or unsupported compression method / decryption.
32
+
33
+File System limitations
34
+~~~~~~~~~~~~~~~~~~~~~~~
35
+
36
+Exceeding limitations on different file systems can cause
37
+decompression failed. Such as allowable characters in the
38
+directory entries, length of the file name, length of the
39
+pathname, size of a single file, and number of files, etc.
40
+
41
+Resources limitations
42
+~~~~~~~~~~~~~~~~~~~~~
43
+
44
+The lack of memory or disk volume would lead to decompression
45
+failed. For example, decompression bombs (aka `ZIP bomb`_) apply
46
+to zipfile library that can cause disk volume exhaustion.
47
+
48
+Interruption
49
+~~~~~~~~~~~~
50
+
51
+Interruption during the decompression, such as pressing control-C
52
+or killing the decompression process may result in incomplete
53
+decompression of the archive.
54
+
55
+Default behaviors of extraction
56
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57
+
58
+Not knowing the default extraction behaviors can cause unexpected
59
+decompression results. For example, when extracting the same
60
+archive twice, it overwrites files without asking.
61
+
62
+
63
+.. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb
64
.. _PKZIP Application Note: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
65
--- /dev/null
66
+++ b/Misc/NEWS.d/next/Documentation/2019-06-04-09-29-00.bpo-36260.WrGuc-.rst
67
68
+Add decompression pitfalls to zipfile module documentation.
69
\ No newline at end of file
70