RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1271867 - python-requests skips SSL verification through HTTP CONNECT proxy
Summary: python-requests skips SSL verification through HTTP CONNECT proxy
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-requests
Version: 6.6
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Python Maintainers
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1274186
TreeView+ depends on / blocked
 
Reported: 2015-10-14 23:06 UTC by David Carlson
Modified: 2016-11-08 16:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-30 14:45:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Carlson 2015-10-14 23:06:12 UTC
Description of problem: python-requests does not perform SSL verification when an external HTTPS server is accessed through an HTTP CONNECT proxy.  This enables man-in-the-middle attacks against any requests code running on RHEL 6.6 servers behind a proxy.

Version-Release number of selected component (if applicable):
python-requests 1.1.0 4.el6

How reproducible:
> import requests
> requests.get('https://my.self.signed/', proxies={'https':'http://webproxy:80'})
<Response [404]>

Steps to Reproduce:
1. publish an HTTPS server with a self-signed certificate
2. run any HTTP CONNECT webproxy
3. connect to that HTTPS server from a RHEL 6.6 

Actual results:
The request succeeds to the HTTP layer without checking authenticity, and a request object is returned.  Nope!

Expected results:
raised exception:
SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Additional info:
I'm aware this is fixed in later versions (6.7), but the pattern scares the crap out of me (CVE?).

Comment 2 Viliam Križan 2015-10-30 14:45:29 UTC
This issue affects only RHEL 6.6 (6.6.z), which is now in EUS support.

Please see https://bugzilla.redhat.com/show_bug.cgi?id=1274186#c2


Note You need to log in before you can comment on or make changes to this bug.