Activity log for bug #1047054

Date Who What changed Old value New value Message
2012-09-06 21:14:33 Jamie Strandboge bug added bug
2012-09-06 21:14:53 Jamie Strandboge description The following program (based on http://code.google.com/p/urllib3/wiki/Examples) can be easily MITMd: #!/usr/bin/python from urllib3 import HTTPSConnectionPool http_pool = VerifiedHTTPSConnection('www.google.com') r = http_pool.urlopen('GET', '/', redirect=False) print r.status, r.headers.get('location') r = http_pool.urlopen('GET', '/', redirect=True) print r.status, len(r.data) Changing it to use: http_pool = HTTPSConnectionPool('www.google.com', strict=False, cert_reqs='CERT_REQUIRED', ca_certs='/etc/ssl/certs/ca-certificates.crt') Results in urllib3 properly verifying certificates. python-urllib3 should use secure defaults and perform certificate verification unless an application author tells it not to. The following program (based on http://code.google.com/p/urllib3/wiki/Examples) can be easily MITMd: #!/usr/bin/python from urllib3 import HTTPSConnectionPool http_pool = VerifiedHTTPSConnection('www.google.com') r = http_pool.urlopen('GET', '/', redirect=False) print r.status, r.headers.get('location') r = http_pool.urlopen('GET', '/', redirect=True) print r.status, len(r.data) Changing it to use: http_pool = HTTPSConnectionPool('www.google.com', cert_reqs='CERT_REQUIRED', ca_certs='/etc/ssl/certs/ca-certificates.crt') Results in urllib3 properly verifying certificates. python-urllib3 should use secure defaults and perform certificate verification unless an application author tells it not to.
2012-09-06 21:30:17 Launchpad Janitor python-urllib3 (Ubuntu): status New Fix Released
2012-09-06 21:43:19 Jamie Strandboge bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686872
2012-09-06 21:43:19 Jamie Strandboge bug task added python-urllib3 (Debian)
2012-09-06 21:47:21 Launchpad Janitor branch linked lp:ubuntu/python-urllib3
2012-09-06 22:42:35 Bug Watch Updater python-urllib3 (Debian): status Unknown New
2012-09-14 15:49:39 Bug Watch Updater python-urllib3 (Debian): status New Fix Released