GO-2020-0045
Dashboard / Vulnerabilities / GO-2020-0045
GO-2020-0045
Published: 14 Apr 2021Last Modified: 20 May 2024
Aliases:
Summary: Cryptographically weak random number generation in github.com/dinever/golf
Details: 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.
References: https://github.com/dinever/golf/pull/24, https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe, https://github.com/dinever/golf/issues/20
Affected packages
Package
Name: github.com/dinever/golf
Purl: pkg:golang/github.com/dinever/golf
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -0.3.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
