HTTP Proxy header vulnerability
Published 7 Apr 2022 · Updated 8 Nov 2023
Affected packages
- Affected
- >=6 <6.2.1
- Fixed in
- 6.2.1
composer require guzzlehttp/guzzle:^6.2.1- Affected
- >=4.0.0-rc2 <4.2.4
- Fixed in
- 4.2.4
composer require guzzlehttp/guzzle:^4.2.4- Affected
- >=5 <5.3.1
- Fixed in
- 5.3.1
composer require guzzlehttp/guzzle:^5.3.1- Affected
- >=8.0 <8.1.7
- Fixed in
- 8.1.7
composer require drupal/core:^8.1.7- Affected
- <2.0.2
- Fixed in
- 2.0.2
composer require bugsnag/bugsnag-laravel:^2.0.2- Affected
- <1.0.4
- Fixed in
- 1.0.4
composer require amphp/artax:^1.0.4- Affected
- >=2.0.0 <2.0.4
- Fixed in
- 2.0.4
composer require amphp/artax:^2.0.4- Affected
- <1.1.2
- Fixed in
- 1.1.2
composer require padraic/humbug_get_contents:^1.1.2Details
PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect applications from the presence of untrusted client data in the HTTP_PROXY environment variable, which might allow remote attackers to redirect an application's outbound HTTP traffic to an arbitrary proxy server via a crafted Proxy header in an HTTP request, as demonstrated by (1) an application that makes a getenv('HTTP_PROXY') call or (2) a CGI configuration of PHP, aka an "httpoxy" issue.
Is GHSA-m6ch-gg5f-wxx3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected guzzlehttp/guzzle, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-5385
- Linkgithub.com/bugsnag/bugsnag-laravel/pull/143
- Linkgithub.com/bugsnag/bugsnag-laravel/pull/145
- Linkgithub.com/humbug/file_get_contents/pull/23
- Linkgithub.com/humbug/file_get_contents/pull/23/commits/848e8c282a863654e76bd958acfb57c81cb739b5
- Linkgithub.com/amphp/artax/commit/81254742812a5a9adf4b085f543f3f21daedcd97
- Linkgithub.com/amphp/artax/commit/b60cf493c9e577a3678865f620b1eb61ab3d7ca9
- Linkbugzilla.redhat.com/show_bug.cgi?id=1353794
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2016-5385.yaml
- Linkgithub.com/bugsnag/bugsnag-laravel/releases/tag/v2.0.2
- Linkgithub.com/guzzle/guzzle/blob/4.x/CHANGELOG.md#424-2016-07-18
- Linkgithub.com/guzzle/guzzle/blob/5.3/CHANGELOG.md#531---2016-07-18
- Linkgithub.com/guzzle/guzzle/blob/master/CHANGELOG.md#622---2016-10-08
- Linkgithub.com/guzzle/guzzle/releases/tag/6.2.1
- Linkgithub.com/humbug/file_get_contents/releases/tag/1.1.2
- Linkh20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03770en_us
- Linkh20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149
- Linkh20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05333297
- Linkh20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7RMYXAVNYL2MOBJTFATE73TOVOEZYC5R/
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.