Skip to content
OpenAdvisories
High · 8.8 CVE-2016-15005 EUVD-2022-7716GHSA-q9qr-jwpw-3qvvGO-2020-0045

Cryptographically weak random number generation in github.com/dinever/golf

Published Dec 27, 2022 · Updated Apr 11, 2025 · Assigned by Go

Description

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 products

VendorProductAffectedFixed
github.com/dinever/golf github.com/dinever/golf < 0.3.0 0.3.0

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/dinever/golf < 0.3.0 0.3.0 GHSA-q9qr-jwpw-3qvv

References