{"id":"CVE-2024-27302","state":"PUBLISHED","title":"Authorization Bypass Through User-Controlled Key in go-zero","description":"go-zero is a web and rpc framework. Go-zero allows user to specify a CORS Filter with a configurable allows param - which is an array of domains allowed in CORS policy. However, the `isOriginAllowed` uses `strings.HasSuffix` to check the origin, which leads to bypass via a malicious domain. This vulnerability is capable of breaking CORS policy and thus allowing any page to make requests and/or retrieve data on behalf of other users. Version 1.4.4 fixes this issue.\n","publishedAt":"2024-03-06T18:31:31.309Z","updatedAt":"2024-08-05T20:09:47.572Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["zeromicro go-zero"],"affected":[{"vendor":"zeromicro","product":"go-zero","versions":[{"version":"< 1.4.4","status":"affected"}]}],"references":["https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq","https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db"],"weaknesses":["CWE-639"],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27302.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-27302","state":"PUBLISHED","datePublished":"2024-03-06T18:31:31.309Z","dateUpdated":"2024-08-05T20:09:47.572Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-02-22T18:08:38.875Z"},"containers":{"cna":{"title":"Authorization Bypass Through User-Controlled Key in go-zero","descriptions":[{"lang":"en","value":"go-zero is a web and rpc framework. Go-zero allows user to specify a CORS Filter with a configurable allows param - which is an array of domains allowed in CORS policy. However, the `isOriginAllowed` uses `strings.HasSuffix` to check the origin, which leads to bypass via a malicious domain. This vulnerability is capable of breaking CORS policy and thus allowing any page to make requests and/or retrieve data on behalf of other users. Version 1.4.4 fixes this issue.\n"}],"affected":[{"vendor":"zeromicro","product":"go-zero","versions":[{"version":"< 1.4.4","status":"affected"}]}],"references":[{"url":"https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq","name":"https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db","name":"https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-639","lang":"en","description":"CWE-639: Authorization Bypass Through User-Controlled Key","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-03-06T18:31:31.309Z"},"source":{"advisory":"GHSA-fgxv-gw55-r5fq","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq","name":"https://github.com/zeromicro/go-zero/security/advisories/GHSA-fgxv-gw55-r5fq","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db","name":"https://github.com/zeromicro/go-zero/commit/d9d79e930dff6218a873f4f02115df61c38b15db","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:27:59.895Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"zeromicro","product":"go-zero","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.4.4","versionType":"custom"}],"cpes":["cpe:2.3:a:zeromicro:go-zero:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-05T20:08:07.431796Z","id":"CVE-2024-27302","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-05T20:09:47.572Z"}}]}}}