github.com/zeromicro/go-zero
Affected
- introduced
0, fixed1.4.4(semver)
Fixed versions
1.4.4
Fix
- Fixed version
1.4.4go get github.com/zeromicro/[email protected]
Advisory
Also known as: CVE-2024-27302, GHSA-fgxv-gw55-r5fq
CORS Filter bypass in github.com/zeromicro/go-zero
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.
Not rated by the source.
0, fixed 1.4.4 (semver)1.4.4
1.4.4go get github.com/zeromicro/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: Go Vulnerability Database · CC BY 4.0