CVE-2024-27302
CORS Filter bypass in github.com/zeromicro/go-zero
9.1
CRITICAL
CVSS 3.1
EPSS 0.32%
描述
The CORS Filter feature in go-zero allows users to specify an array of domains allowed in the CORS policy. However, the isOriginAllowed function uses strings.HasSuffix to check the origin, which can lead to a bypass via a domain like "evil-victim.com". This vulnerability is capable of breaking CORS policy and thus allowing any page to make requests and retrieve data on behalf of other users.
如何修補 CVE-2024-27302
要修補 CVE-2024-27302,請將受影響套件升級到下列已修補版本。
- —升級至 1.4.4 或更新版本
- —升級至 1.4.4 或更新版本
CVE-2024-27302 正在被利用嗎?
低 — EPSS 為 0.3%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- from 0, < 1.4.4
- from 0, < 1.4.4
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |