Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1353758 - (CVE-2016-1000105) CVE-2016-1000105 Nginx: fastcgi sets environmental variable based on user supplied Proxy request header
CVE-2016-1000105 Nginx: fastcgi sets environmental variable based on user su...
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20160718,repo...
: Security
Depends On:
Blocks: 1353762
  Show dependency treegraph
 
Reported: 2016-07-07 18:58 EDT by Kurt Seifried
Modified: 2016-11-08 11:06 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-07 23:02:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Kurt Seifried 2016-07-07 18:58:48 EDT
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. 

The Nginx HTTP server contains support for Fast CGI. If passed a “Proxy” header in the request Fast CGI  will automatically populate the HTTP_PROXY environmental variable with whatever user supplied value is present.
Comment 1 Kurt Seifried 2016-07-07 18:58:53 EDT
Acknowledgments:

Name: Scott Geary (VendHQ)
Comment 2 Doran Moppert 2016-07-07 21:37:16 EDT
To clarify where the danger lies:

- nginx does not itself support CGI, only FastCGI
- in the FastCGI scenario, nginx does not start the worker process;
  only communicates with it over a socket.  Thus it cannot set env
  variables, and can send HTTP_PROXY safely

Thus FastCGI processes are not vulnerable directly.  See [1].

However, the recommended way to run CGI processes behind nginx at
[2] copies the environment indiscriminately, rendering the CGI
itself vulnerable.  While not part of our supported products, it
is likely some customers are using this technique to expose legacy
CGI apps behind nginx.

[1]: http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
[2]: https://www.nginx.com/resources/wiki/start/topics/examples/simplecgi/
Comment 3 Kurt Seifried 2016-07-07 23:02:20 EDT
Closing this as NOTABUG, as the script is the affected component it has gotten a CVE, but we don't ship it and we don't appear to use it so closing this. The CVE will be REJECT'ed.

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