You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I note that when using 0.7.0 of this module, the new fastcgi params no longer block a Proxy header from being sent through as HTTP_PROXY to a fastcgi application. (i.e. it reverts #835)
I understand the decision to ship upstream versions in #862 / #1076, but this should at the very least be mentioned specifically in the CHANGELOG. "Use nginx defaults for fastcgi_params" is probably not specific enough to call attention to this issue for PHP sysadmins.
There is no legitimate use for the 'Proxy' header in HTTP. OTOH, I'm sure there are PHP users out there still using e.g. Guzzle 6.2.0 and an older version of PHP. They should probably be told to add an HTTP_PROXY => '""' entry to their fastcgi_param parameter on any location that talks fastcgi to PHP, otherwise upgrading to 0.7.0 will make them vulnerable again. (This fix matches Nginx's public documentation on setting up fastcgi for PHP, even if it doesn't match the upstream fastcgi_params source)
The text was updated successfully, but these errors were encountered:
Yeah, I think that might be reading it wrong. To me, it looks like:
The proxy_set_header fix is still in place, but only protects reverse-proxied downstream services, not e.g. PHP running on the same box
The test is just testing that if the user adds an explicit 'HTTP_PROXY' => '""' to their $fastcgi_params, that it will be reflected in the final config (I don't think it's testing that one is added to location blocks automatically)
I note that when using 0.7.0 of this module, the new fastcgi params no longer block a
Proxy
header from being sent through asHTTP_PROXY
to a fastcgi application. (i.e. it reverts #835)I understand the decision to ship upstream versions in #862 / #1076, but this should at the very least be mentioned specifically in the CHANGELOG. "Use nginx defaults for fastcgi_params" is probably not specific enough to call attention to this issue for PHP sysadmins.
There is no legitimate use for the 'Proxy' header in HTTP. OTOH, I'm sure there are PHP users out there still using e.g. Guzzle 6.2.0 and an older version of PHP. They should probably be told to add an
HTTP_PROXY => '""'
entry to theirfastcgi_param
parameter on any location that talks fastcgi to PHP, otherwise upgrading to 0.7.0 will make them vulnerable again. (This fix matches Nginx's public documentation on setting up fastcgi for PHP, even if it doesn't match the upstream fastcgi_params source)The text was updated successfully, but these errors were encountered: