Skip to main content
← All vulnerabilities
CVE-2024-27302GHSA-FGXV-GW55-R5FQGO-2024-2604

Authorization Bypass Through User-Controlled Key in go-zero

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.4.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • zeromicro go-zero

    fixed in 1.4.4

  • github.com/zeromicro/go-zeroGo

    fixed in 1.4.4

References 2

GitHub · zeromicro/go-zero