Lucene search

K
githubGitHub Advisory DatabaseGHSA-869C-J7WC-8JQV
HistoryJun 29, 2024 - 6:31 a.m.

Gin mishandles a wildcard at the end of an origin string

2024-06-2906:31:40
GitHub Advisory Database
github.com
5
gin-gonic
cors middleware
wildcard.

CVSS3

9.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

AI Score

6.8

Confidence

High

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.

Affected configurations

Vulners
Node
gin-contribcorsRange<1.6.0
OR
gin-gonicginRange<1.6.0
VendorProductVersionCPE
gin-contribcors*cpe:2.3:a:gin-contrib:cors:*:*:*:*:*:*:*:*
gin-gonicgin*cpe:2.3:a:gin-gonic:gin:*:*:*:*:*:*:*:*

CVSS3

9.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

AI Score

6.8

Confidence

High