<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib, branch 3.6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib?h=3.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib?h=3.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2021-09-04T03:49:41Z</updated>
<entry>
<title>3.6.15</title>
<updated>2021-09-04T03:49:41Z</updated>
<author>
<name>Ned Deily</name>
<email>nad@python.org</email>
</author>
<published>2021-09-04T03:49:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b74b1f36993a4e1700869133f3be13dd60ef4e40'/>
<id>urn:sha1:b74b1f36993a4e1700869133f3be13dd60ef4e40</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[3.6] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28038)</title>
<updated>2021-08-30T19:21:57Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-08-30T19:21:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=29d97d17fb7adab3b0df9e178b73f70292d1cf64'/>
<id>urn:sha1:29d97d17fb7adab3b0df9e178b73f70292d1cf64</id>
<content type='text'>
Co-authored-by: Miguel Brito &lt;5544985+miguendes@users.noreply.github.com&gt;

Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;
(cherry picked from commit 0897253f426068ea6a6fbe0ada01689af9ef1019)</content>
</entry>
<entry>
<title>bpo-45001: Make email date parsing more robust against malformed input (GH-27946) (GH-27976)</title>
<updated>2021-08-30T18:57:19Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-08-30T18:57:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=da9d6c554697414b1d275c8502e00a07c2ce06e6'/>
<id>urn:sha1:da9d6c554697414b1d275c8502e00a07c2ce06e6</id>
<content type='text'>
Various date parsing utilities in the email module, such as
email.utils.parsedate(), are supposed to gracefully handle invalid
input, typically by raising an appropriate exception or by returning
None.

The internal email._parseaddr._parsedate_tz() helper used by some of
these date parsing routines tries to be robust against malformed input,
but unfortunately it can still crash ungracefully when a non-empty but
whitespace-only input is passed. This manifests as an unexpected
IndexError.

In practice, this can happen when parsing an email with only a newline
inside a ‘Date:’ header, which unfortunately happens occasionally in the
real world.

Here's a minimal example:

    $ python
    Python 3.9.6 (default, Jun 30 2021, 10:22:16)
    [GCC 11.1.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    &gt;&gt;&gt; import email.utils
    &gt;&gt;&gt; email.utils.parsedate('foo')
    &gt;&gt;&gt; email.utils.parsedate(' ')
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
      File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
        t = parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
        res = _parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
        if data[0].endswith(',') or data[0].lower() in _daynames:
    IndexError: list index out of range

The fix is rather straight-forward: guard against empty lists, after
splitting on whitespace, but before accessing the first element.
(cherry picked from commit 989f6a3800f06b2bd31cfef7c3269a443ad94fac)

Co-authored-by: wouter bolsterlee &lt;wouter@bolsterl.ee&gt;</content>
</entry>
<entry>
<title>3.6.14</title>
<updated>2021-06-28T16:52:10Z</updated>
<author>
<name>Ned Deily</name>
<email>nad@python.org</email>
</author>
<published>2021-06-28T16:52:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9a0099d1bf14bce417370aae6d55527417cda354'/>
<id>urn:sha1:9a0099d1bf14bce417370aae6d55527417cda354</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-44022: Improve the regression test. (GH-26503) (GH-26508)</title>
<updated>2021-06-03T04:38:31Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-06-03T04:38:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1b6f4e5e13ebd1f957b47f7415b53d0869bdbac6'/>
<id>urn:sha1:1b6f4e5e13ebd1f957b47f7415b53d0869bdbac6</id>
<content type='text'>
It wasn't actually detecting the regression due to the
assertion being too lenient.
(cherry picked from commit e60ab843cbb016fb6ff8b4f418641ac05a9b2fcc)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
</content>
</entry>
<entry>
<title>bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25935)</title>
<updated>2021-05-06T17:05:37Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-06T17:05:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f68d2d69f1da56c2aea1293ecf93ab69a6010ad7'/>
<id>urn:sha1:f68d2d69f1da56c2aea1293ecf93ab69a6010ad7</id>
<content type='text'>
Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
(cherry picked from commit 47895e31b6f626bc6ce47d175fe9d43c1098909d)

Co-authored-by: Gen Xu &lt;xgbarry@gmail.com&gt;
</content>
</entry>
<entry>
<title>bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25250)</title>
<updated>2021-05-06T17:00:07Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-06T17:00:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3fbe96123aeb66664fa547a8f6022efa2dc8788f'/>
<id>urn:sha1:3fbe96123aeb66664fa547a8f6022efa2dc8788f</id>
<content type='text'>
Fix Regular Expression Denial of Service (ReDoS) vulnerability in
urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex
has quadratic worst-case complexity and it allows cause a denial of
service when identifying crafted invalid RFCs. This ReDoS issue is on
the client side and needs remote attackers to control the HTTP server.
(cherry picked from commit 7215d1ae25525c92b026166f9d5cac85fb1defe1)

Co-authored-by: Yeting Li &lt;liyt@ios.ac.cn&gt;
</content>
</entry>
<entry>
<title>[3.6] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs (GH-25924)</title>
<updated>2021-05-06T16:56:01Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-06T16:56:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6c472d3a1d334d4eeb4a25eba7bf3b01611bf667'/>
<id>urn:sha1:6c472d3a1d334d4eeb4a25eba7bf3b01611bf667</id>
<content type='text'>
Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
(cherry picked from commit 76cd81d60310d65d01f9d7b48a8985d8ab89c8b4)
Co-authored-by: Senthil Kumaran &lt;senthil@uthcode.com&gt;
(cherry picked from commit 515a7bc4e13645d0945b46a8e1d9102b918cd407)

Co-authored-by: Miss Islington (bot) &lt;31488909+miss-islington@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>bpo-42988: Remove the pydoc getfile feature (GH-25015) (GH-25067)</title>
<updated>2021-03-29T15:40:53Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-03-29T15:40:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5b1e50256b6532667b6d31debc350f6c7d3f30aa'/>
<id>urn:sha1:5b1e50256b6532667b6d31debc350f6c7d3f30aa</id>
<content type='text'>
CVE-2021-3426: Remove the "getfile" feature of the pydoc module which
could be abused to read arbitrary files on the disk (directory
traversal vulnerability). Moreover, even source code of Python
modules can contain sensitive data like passwords. Vulnerability
reported by David Schwörer.
(cherry picked from commit 9b999479c0022edfc9835a8a1f06e046f3881048)

Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;
</content>
</entry>
<entry>
<title>[3.6] bpo-43285 Make ftplib not trust the PASV response. (GH-24838) (GH-24881) (GH-24882)</title>
<updated>2021-03-16T21:08:30Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-03-16T21:08:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4134f154ae2f621f25c5d698cc0f1748035a1b88'/>
<id>urn:sha1:4134f154ae2f621f25c5d698cc0f1748035a1b88</id>
<content type='text'>
The IPv4 address value returned from the server in response to the PASV command
should not be trusted.  This prevents a malicious FTP server from using the
response to probe IPv4 address and port combinations on the client network.

Instead of using the returned address, we use the IP address we're
already connected to.  This is the strategy other ftp clients adopted,
and matches the only strategy available for the modern IPv6 EPSV command
where the server response must return a port number and nothing else.

For the rare user who _wants_ this ugly behavior, set a `trust_server_pasv_ipv4_address`
attribute on your `ftplib.FTP` instance to True..
(cherry picked from commit 0ab152c6b5d95caa2dc1a30fa96e10258b5f188e)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
(cherry picked from commit 664d1d16274b47eea6ec92572e1ebf3939a6fa0c)
</content>
</entry>
</feed>
