Cross-origin data access via suffix-matched origins
Published Mar 6, 2024 · Updated Aug 5, 2024
CORS authorization bypass in zeromicro go-zero before 1.4.4 allows remote attackers to read or modify data through crafted origins. The rest/internal/cors isOriginAllowed function accepts any origin ending with an allowed string, so not-safe.com matches safe.com without a domain-boundary check. Exposure requires an application to enable the CORS filter with an allowlist, and impact is limited to application endpoints reachable with the browser's user context.
Summary
What happened
CORS authorization bypass in zeromicro go-zero before 1.4.4 allows remote attackers to read or modify data through crafted origins. The rest/internal/cors isOriginAllowed function accepts any origin ending with an allowed string, so not-safe.com matches safe.com without a domain-boundary check. Exposure requires an application to enable the CORS filter with an allowlist, and impact is limited to application endpoints reachable with the browser's user context.
The record
- CVE
- CVE-2024-27302
- Published
- Mar 6, 2024
- Updated
- Aug 5, 2024
- Vendor
- zeromicro
- Product
- go-zero
- Classifications
- CWE-639, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 6, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <1.4.4
- Affected versionversion=< 1.4.4
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-fgxv-gw55-r5fq CORS bypass proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo