It was reported that "newline" character in the CORS xml configuration file in the ExposeHeader tag can lead to the header injection attack. When the CORS request is made the response contain the injected header. Using newline characters injected into the HTTP headers, it is possible for the malicious user to add arbitrary headers such as Set-Cookie to set arbitrary cookies. This impacts the RHCS RadosGW S3 API. For example malicious user could create a publicly-accessible S3 bucket with such CORS configuration and anyone that accessed that bucket would have these headers injected. In addition, in contrast to the prior fix, \r can be used as a separator, and is not fixed in the prior patch, which only handled \n separators.
Mitigation: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Acknowledgments: Name: Sergey Bobrov (Kaspersky)
Statement: * Red Hat Ceph Storage (RHCS) 4 is affected by this vulnerability. Note: although this issue affects the RadosGW S3 API, it does not affect the Swift API. * Red Hat OpenShift Container Storage (RHOCS) 4 shipped ceph package for the usage of RHOCS 4.2 only which has reached End of Life. The shipped version of ceph package is neither used nor supported with the release of RHOCS 4.3. * Red Hat Enterprise Linux 7 and 8 are not affected by this flaw, as the shipped versions of `ceph` are not compiled with RadosGW support. * Red Hat OpenStack Platform deployments use the ceph package directly from the Ceph channel; the RHOSP package will not be updated at this time.
Created ceph tracking bugs for this issue: Affects: fedora-all [bug 1958426]
upstream patch here https://github.com/ceph/ceph/releases/tag/v14.2.21
This issue has been addressed in the following products: Red Hat Ceph Storage 5.1 Via RHSA-2022:1174 https://access.redhat.com/errata/RHSA-2022:1174
This issue has been addressed in the following products: Red Hat Ceph Storage 4.3 Via RHSA-2022:1716 https://access.redhat.com/errata/RHSA-2022:1716
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2021-3524