Lucene search

K
cveGoCVE-2021-4236
HistoryDec 27, 2022 - 10:15 p.m.

CVE-2021-4236

2022-12-2722:15:12
CWE-476
Go
web.nvd.nist.gov
53
cve-2021-4236
web sockets
authenticatemethod
nil pointer
authentication bypass
nvd

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

9.5

Confidence

High

EPSS

0.002

Percentile

57.3%

Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to be non-nil, or authentication bypass. This issue only affects WebSockets with an AuthenticateMethod hook. Request handlers that do not explicitly use WebSockets are not vulnerable.

Affected configurations

Nvd
Node
web_projectwebRange1.4.01.5.2go
VendorProductVersionCPE
web_projectweb*cpe:2.3:a:web_project:web:*:*:*:*:*:go:*:*

CNA Affected

[
  {
    "vendor": "github.com/ecnepsnai/web",
    "product": "github.com/ecnepsnai/web",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "github.com/ecnepsnai/web",
    "versions": [
      {
        "version": "1.4.0",
        "lessThan": "1.5.2",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "Server.socketHandler"
      },
      {
        "name": "Server.Socket"
      }
    ],
    "defaultStatus": "unaffected"
  }
]

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

9.5

Confidence

High

EPSS

0.002

Percentile

57.3%