Bug 1357345 (CVE-2016-1000111)

Summary: CVE-2016-1000111 Python Twisted: sets environmental variable based on user supplied Proxy request header
Product: [Other] Security Response Reporter: Kurt Seifried <kseifried>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: anemec, bcourt, bkearney, cbillett, cstratak, dkholia, extras-orphan, jmatthew, jonathansteffan, kseifried, lemenkov, matthias, mmccune, mrike, ohadlevy, python-maint, rchan, satellite6-bugs, security-response-team, slawomir, tjay, tlestach, tsanders
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
It was discovered that python-twisted-web used the value of the Proxy header from HTTP requests to initialize the HTTP_PROXY environment variable for CGI scripts, which in turn was incorrectly used by certain HTTP client implementations to configure the proxy for outgoing HTTP requests. A remote attacker could possibly use this flaw to redirect HTTP requests performed by a CGI script to an attacker-controlled proxy via a malicious HTTP request.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-13 08:59:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1357613, 1357614, 1358789, 1358790, 1358791, 1358792, 1540791, 1540792    
Bug Blocks: 1353762    

Description Kurt Seifried 2016-07-18 03:38:28 UTC
Dominic Scheirlinck of VendHQ reports:

Many software projects and vendors have implemented support for the “Proxy” request header in their respective CGI implementations and languages by creating the “HTTP_PROXY” environmental variable based on the header value. When this variable is used (in many cases automatically by various HTTP client libraries) any outgoing requests generated in turn from the attackers original request can be redirected to an attacker controlled proxy. This allows attackers to view potentially sensitive information, reply with malformed data, or to hold connections open causing a potential denial of service.

Comment 1 Kurt Seifried 2016-07-18 03:38:31 UTC
Acknowledgments:

Name: Scott Geary (VendHQ)

Comment 2 Stefan Cornelius 2016-07-18 16:05:00 UTC
Created python-twisted-web2 tracking bugs for this issue:

Affects: fedora-all [bug 1357613]

Comment 3 Stefan Cornelius 2016-07-18 16:05:07 UTC
Created python-twisted-web tracking bugs for this issue:

Affects: epel-5 [bug 1357614]

Comment 9 errata-xmlrpc 2016-09-29 18:57:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2016:1978 https://rhn.redhat.com/errata/RHSA-2016-1978.html

Comment 10 Kurt Seifried 2016-12-16 17:36:40 UTC
Statement:

This issue affects the versions of python-twisted as shipped with Red Hat Satellite 6.x. However due to the manner in which python-twisted is used exploitation of this issue by an attacker would require significant access to the server, or be able to modify requests from other users via additional vulnerabilities. A future update may address this issue.

Comment 12 errata-xmlrpc 2018-02-05 13:54:21 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.2 for RHEL 7
  Red Hat Satellite 6.2 for RHEL 6

Via RHSA-2018:0273 https://access.redhat.com/errata/RHSA-2018:0273