Bug 2124763 (CVE-2022-36032) - CVE-2022-36032 php-react-http: ReactPHP's HTTP server parses encoded cookie names so malicious `__Host-` and `__Secure-` cookies can be sent
Summary: CVE-2022-36032 php-react-http: ReactPHP's HTTP server parses encoded cookie ...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-36032
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2124764 2124766
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-07 05:45 UTC by Sandipan Roy
Modified: 2022-11-25 02:54 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-11-25 02:54:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Sandipan Roy 2022-09-07 05:45:55 UTC
ReactPHP HTTP is a streaming HTTP client and server implementation for ReactPHP. In ReactPHP's HTTP server component versions starting with 0.7.0 and prior to 1.7.0, when ReactPHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like `__Host-` and `__Secure-` confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. This issue is fixed in ReactPHP HTTP version 1.7.0. As a workaround, Infrastructure or DevOps can place a reverse proxy in front of the ReactPHP HTTP server to filter out any unexpected `Cookie` request headers.

https://github.com/reactphp/http/pull/175
https://github.com/reactphp/http/security/advisories/GHSA-w3w9-vrf5-8mx8
https://github.com/reactphp/http/releases/tag/v1.7.0
https://github.com/reactphp/http/commit/663c9a3b77b71463fa7fcb76a6676ffd16979dd6

Comment 1 Sandipan Roy 2022-09-07 05:46:22 UTC
Created php-react-http tracking bugs for this issue:

Affects: epel-all [bug 2124766]
Affects: fedora-all [bug 2124764]

Comment 2 Product Security DevOps Team 2022-11-25 02:54:02 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.


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