GO-2022-0619

Authorization bypass in github.com/emicklei/go-restful, go-restful/v2 and go-restful/v3

En bref

Publiée
Mise à jour
CVE
CVE-2022-1996
Alias
GHSA-r48q-9g5r-8q2h

Description

CORS filters that use an AllowedDomains configuration parameter can match domains outside the specified set, permitting an attacker to avoid the CORS policy. The AllowedDomains configuration parameter is documented as a list of allowed origin domains, but values in this list are applied as regular expression matches. For example, an allowed domain of "example.com" will match the Origin header "example.com.malicious.domain".

Paquets affectés

PaquetVersions
Go · github.com/emicklei/go-restfulintroduced 0, fixed 2.16.0+incompatible
Go · github.com/emicklei/go-restful/v2introduced 2.7.1
Go · github.com/emicklei/go-restful/v3introduced 3.0.0, fixed 3.8.0

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database