CVE-2022-29248
Cross-domain cookie leakage in Guzzle
描述
Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with ['cookies' => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.
如何修補 CVE-2022-29248
要修補 CVE-2022-29248,請將受影響套件升級到下列已修補版本。
- —升級至 9.2.20 或更新版本
- —升級至 7.4.4-1 或更新版本
- —升級至 1:1.35.8-1~deb11u1 或更新版本
- —升級至 9.2.20 或更新版本
- —升級至 6.5.6 或更新版本
CVE-2022-29248 正在被利用嗎?
低 — EPSS 為 1.2%,目前沒有觀察到大規模利用活動。
受影響套件(5)
- >= 9.2.0, < 9.2.20, >= 9.3.0, < 9.3.14
- from 0, < 7.4.4-1
- from 0, < 1:1.35.8-1~deb11u1
- >= 8.0.0, < 9.2.20 | >= 9.3.0, < 9.3.14
- from 0, < 6.5.6
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |