Bug 2115234 (CVE-2022-31109)

Summary: CVE-2022-31109 laminas-diactoros: HTTP host header attack
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: fedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: laminas-diactoros 2.11.1 Doc Type: ---
Doc Text:
A vulnerability was found in php-laminas-diactoros, where the applications that use Diactoros, and are either not behind a proxy, or can be accessed via untrusted proxies, can potentially have the host, protocol, and/or port of a Laminas\Diactoros\Uri instance associated with the incoming server request modified to reflect values from X-Forwarded-* headers. Such changes can potentially lead to XSS attacks (if a fully-qualified URL is used in links) and/or URL poisoning.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-31 19:55:19 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: 2115235    
Bug Blocks: 2113808    

Description TEJ RATHI 2022-08-04 08:15:13 UTC
laminas-diactoros is a PHP package containing implementations of the PSR-7 HTTP message interfaces and PSR-17 HTTP message factory interfaces. Applications that use Diactoros, and are either not behind a proxy, or can be accessed via untrusted proxies, can potentially have the host, protocol, and/or port of a `Laminas\Diactoros\Uri` instance associated with the incoming server request modified to reflect values from `X-Forwarded-*` headers. Such changes can potentially lead to XSS attacks (if a fully-qualified URL is used in links) and/or URL poisoning.

https://github.com/laminas/laminas-diactoros/commit/25b11d422c2e5dad868f68619888763b30f91e2d
https://github.com/laminas/laminas-diactoros/security/advisories/GHSA-8274-h5jp-97vr
https://portswigger.net/web-security/host-header

Comment 1 TEJ RATHI 2022-08-04 08:15:31 UTC
Created php-laminas-diactoros tracking bugs for this issue:

Affects: fedora-all [bug 2115235]

Comment 2 Product Security DevOps Team 2022-08-31 19:55:18 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.