CVE-2024-27302

CVSS 3.1 Score 9.1 of 10 (high)

Attack Complexity low
Confidentiality high
Integrity high
Availability none
Scope unchanged
Privileges Required none

Details

Published Mar 6, 2024
CWE ID 639

Summary

CVE-2024-27302 is a vulnerability affecting the go-zero web and RPC framework. The issue lies in the way the framework handles CORS (Cross-Origin Resource Sharing) filters. go-zero allows users to define a CORS policy with a configurable 'allows' parameter, which is an array of permitted domains. However, the `isOriginAllowed` function, which checks the origin against the allowed list, uses `strings.HasSuffix` in an insecure manner. This can be exploited by malicious actors to bypass the CORS policy, granting unauthorized access to data and resources for other users. The vulnerability, which can break the security sandbox, is fixed in version 1.4.4 of go-zero.

Ligh bulbPrevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.

Share