<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/urllib/request.py, branch 3.7</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/urllib/request.py?h=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/urllib/request.py?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-02-25T17:49:43Z</updated>
<entry>
<title>bpo-46756: Fix authorization check in urllib.request (GH-31353) (GH-31573)</title>
<updated>2022-02-25T17:49:43Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-02-25T17:49:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=31fef7edf951fb759004c58ae64df18bc32ea376'/>
<id>urn:sha1:31fef7edf951fb759004c58ae64df18bc32ea376</id>
<content type='text'>
Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and
urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which
allowed to bypass authorization. For example, access to URI "example.org/foobar"
was allowed if the user was authorized for URI "example.org/foo".
(cherry picked from commit e2e72567a1c94c548868f6ee5329363e6036057a)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (#25249)</title>
<updated>2021-05-04T12:46:40Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-04T12:46:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ada14995870abddc277addf57dd690a2af04c2da'/>
<id>urn:sha1:ada14995870abddc277addf57dd690a2af04c2da</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>bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) (GH-19297)</title>
<updated>2020-04-02T10:16:17Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-04-02T10:16:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b57a73694e26e8b2391731b5ee0b1be59437388e'/>
<id>urn:sha1:b57a73694e26e8b2391731b5ee0b1be59437388e</id>
<content type='text'>
The AbstractBasicAuthHandler class of the urllib.request module uses
an inefficient regular expression which can be exploited by an
attacker to cause a denial of service. Fix the regex to prevent the
catastrophic backtracking. Vulnerability reported by Ben Caller
and Matt Schwager.

AbstractBasicAuthHandler of urllib.request now parses all
WWW-Authenticate HTTP headers and accepts multiple challenges per
header: use the realm of the first Basic challenge.

Co-Authored-By: Serhiy Storchaka &lt;storchaka@gmail.com&gt;
Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;

(cherry picked from commit 0b297d4ff1c0e4480ad33acae793fbaf4bf015b4)</content>
</entry>
<entry>
<title>bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest Auth (GH-18338)</title>
<updated>2020-02-29T20:49:20Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-02-29T20:49:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cf347f3089631c3c2467e46ed609bfe67e539487'/>
<id>urn:sha1:cf347f3089631c3c2467e46ed609bfe67e539487</id>
<content type='text'>
* bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest authentication

 - The 'qop' value in the 'WWW-Authenticate' header is optional. The
   presence of 'qop' in the header should be checked before its value
   is parsed with 'split'.

Signed-off-by: Stephen Balousek &lt;stephen@balousek.net&gt;

* bpo-39548: Fix handling of 'WWW-Authenticate' header for Digest authentication

 - Add NEWS item

Signed-off-by: Stephen Balousek &lt;stephen@balousek.net&gt;

* Update Misc/NEWS.d/next/Library/2020-02-06-05-33-52.bpo-39548.DF4FFe.rst

Co-Authored-By: Brandt Bucher &lt;brandtbucher@gmail.com&gt;

Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;
(cherry picked from commit 5e260e0fde211829fcb67060cfd602f4b679f802)

Co-authored-by: Stephen Balousek &lt;sbalousek@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-39057: Fix urllib.request.proxy_bypass_environment(). (GH-17619)</title>
<updated>2020-01-05T12:31:44Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-01-05T12:31:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=880a17af7d063fcef225a46b7f4ae35d792b2f11'/>
<id>urn:sha1:880a17af7d063fcef225a46b7f4ae35d792b2f11</id>
<content type='text'>
Ignore leading dots and no longer ignore a trailing newline.
(cherry picked from commit 6a265f0d0c0a4b3b8fecf4275d49187a384167f4)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-38686: fix HTTP Digest handling in request.py (GH-17045)</title>
<updated>2019-11-22T23:38:37Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-11-22T23:38:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=07432c33a0cab9d40ec71b274ec4bca5c57ca6e9'/>
<id>urn:sha1:07432c33a0cab9d40ec71b274ec4bca5c57ca6e9</id>
<content type='text'>
* fix HTTP Digest handling in request.py

There is a bug triggered when server replies to a request with `WWW-Authenticate: Digest` where `qop="auth,auth-int"` rather than mere `qop="auth"`. Having both `auth` and `auth-int` is legitimate according to the `qop-options` rule in §3.2.1 of [[https://www.ietf.org/rfc/rfc2617.txt|RFC 2617]]:
&gt;      qop-options       = "qop" "=" &lt;"&gt; 1GH-qop-value &lt;"&gt;
&gt;      qop-value         = "auth" | "auth-int" | token
&gt; **qop-options**: [...] If present, it is a quoted string **of one or more** tokens indicating the "quality of protection" values supported by the server.  The value `"auth"` indicates authentication; the value `"auth-int"` indicates authentication with integrity protection

This is description confirmed by the definition of the [//n//]`GH-`[//m//]//rule// extended-BNF pattern defined in §2.1 of [[https://www.ietf.org/rfc/rfc2616.txt|RFC 2616]] as 'a comma-separated list of //rule// with at least //n// and at most //m// items'.

When this reply is parsed by `get_authorization`, request.py only tests for identity with `'auth'`, failing to recognize it as one of the supported modes the server announced, and claims that `"qop 'auth,auth-int' is not supported"`.

* 📜🤖 Added by blurb_it.

* bpo-38686 review fix: remember why.

* fix trailing space in Lib/urllib/request.py

Co-Authored-By: Brandt Bucher &lt;brandtbucher@gmail.com&gt;
(cherry picked from commit 14a89c47983f2fb9e7fdf33c769e622eefd3a14a)

Co-authored-by: PypeBros &lt;PypeBros@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-13474) (GH-13505)</title>
<updated>2019-05-22T21:28:28Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-05-22T21:28:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=34bab215596671d0dec2066ae7d7450cd73f638b'/>
<id>urn:sha1:34bab215596671d0dec2066ae7d7450cd73f638b</id>
<content type='text'>
CVE-2019-9948: Avoid file reading as disallowing the unnecessary URL
scheme in URLopener().open() and URLopener().retrieve()
of urllib.request.

Co-Authored-By: SH &lt;push0ebp@gmail.com&gt;
(cherry picked from commit 0c2b6a3943aa7b022e8eb4bfd9bffcddebf9a587)</content>
</entry>
<entry>
<title>closes bpo-35309: cpath should be capath (GH-10701)</title>
<updated>2018-11-25T20:51:02Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-11-25T20:51:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6a528ccb4c09933c434be1011b2f5e148170d3a1'/>
<id>urn:sha1:6a528ccb4c09933c434be1011b2f5e148170d3a1</id>
<content type='text'>
(cherry picked from commit 158695817d736df8b18682866033c87e46252309)

Co-authored-by: Boštjan Mejak &lt;bostjan.xperia@gmail.com&gt;</content>
</entry>
<entry>
<title>Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)</title>
<updated>2018-02-26T16:22:24Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-26T16:22:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f8a3485dcd41a00c5e99c5be6adc67cb2638b366'/>
<id>urn:sha1:f8a3485dcd41a00c5e99c5be6adc67cb2638b366</id>
<content type='text'>
(cherry picked from commit 3f2e6f15d64d81633b1fc0b308afc0d6e9026b61)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>urllib.request: Remove unused import (GH-5268)</title>
<updated>2018-01-22T07:45:31Z</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2018-01-22T07:45:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=579e0b80b953b8a47385bc50844dbaac45d6f437'/>
<id>urn:sha1:579e0b80b953b8a47385bc50844dbaac45d6f437</id>
<content type='text'>
</content>
</entry>
</feed>
