Lucene search

K
cveGoCVE-2016-15005
HistoryDec 27, 2022 - 10:15 p.m.

CVE-2016-15005

2022-12-2722:15:11
CWE-352
Go
web.nvd.nist.gov
42
csrf
tokens
math/rand
cryptographically secure
random number generator
csrf protections
nvd

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

8.6

Confidence

High

EPSS

0.001

Percentile

47.5%

CSRF tokens are generated using math/rand, which is not a cryptographically secure random number generator, allowing an attacker to predict values and bypass CSRF protections with relatively few requests.

Affected configurations

Nvd
Node
golf_projectgolfRange<0.3.0go
VendorProductVersionCPE
golf_projectgolf*cpe:2.3:a:golf_project:golf:*:*:*:*:*:go:*:*

CNA Affected

[
  {
    "vendor": "github.com/dinever/golf",
    "product": "github.com/dinever/golf",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "github.com/dinever/golf",
    "versions": [
      {
        "version": "0",
        "lessThan": "0.3.0",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "randomBytes"
      },
      {
        "name": "Context.Render"
      },
      {
        "name": "Context.RenderFromString"
      }
    ],
    "defaultStatus": "unaffected"
  }
]

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

8.6

Confidence

High

EPSS

0.001

Percentile

47.5%

Related for CVE-2016-15005