Cross-origin data access via regex domain matching
Published Jun 6, 2022 · Updated Aug 3, 2024
Authorization bypass in go-restful before 2.16.0 and go-restful/v3 before 3.8.0 allows remote attackers to read data via crafted origins. CrossOriginResourceSharing.isOriginAllowed compiles each AllowedDomains value as an unanchored regular expression and accepts any Origin containing a match. Exploitation requires an application to enable this CORS filter and a victim with access to protected data to visit an attacker-controlled page, which can read responses under the victim's browser credentials.
Summary
What happened
Authorization bypass in go-restful before 2.16.0 and go-restful/v3 before 3.8.0 allows remote attackers to read data via crafted origins. CrossOriginResourceSharing.isOriginAllowed compiles each AllowedDomains value as an unanchored regular expression and accepts any Origin containing a match. Exploitation requires an application to enable this CORS filter and a victim with access to protected data to visit an attacker-controlled page, which can read responses under the victim's browser credentials.
The record
- CVE
- CVE-2022-1996
- Published
- Jun 6, 2022
- Updated
- Aug 3, 2024
- Vendor
- Ernest Micklei
- Product
- go-restful
- Classifications
- CWE-639, T1189
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 6, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 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=unspecified <v3.8.0
What conditions does exploitation require?
What is affected?
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
- Issue 489 CORS filter 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