Bug 2097356 (CVE-2022-31042)

Summary: CVE-2022-31042 php-guzzlehttp-guzzle: disclosure of sensitive information
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: shawn
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php-guzzlehttp-guzzle 6.5.7, php-guzzlehttp-guzzle 7.4.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-15 17:53:24 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: 2097357, 2097358    
Bug Blocks:    

Description Marian Rehak 2022-06-15 13:50:41 UTC
In affected versions the `Cookie` headers on requests are sensitive information. On making a request using the `https` scheme to a server which responds with a redirect to a URI with the `http` scheme, or on making a request to a server which responds with a redirect to a a URI to a different host, we should not forward the `Cookie` header on. Prior to this fix, only cookies that were managed by our cookie middleware would be safely removed, and any `Cookie` header manually added to the initial request would not be stripped. We now always strip it, and allow the cookie middleware to re-add any cookies that it deems should be there.

Reference:

https://github.com/guzzle/guzzle/security/advisories/GHSA-f2wf-25xc-69c9

Comment 1 Marian Rehak 2022-06-15 13:50:55 UTC
Created php-guzzlehttp-guzzle tracking bugs for this issue:

Affects: epel-7 [bug 2097358]
Affects: fedora-all [bug 2097357]

Comment 2 Product Security DevOps Team 2022-06-15 17:53:22 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.