Go Vulnerability Database
GO-2020-0045
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/dinever/golf | All versions before 0.3.0 (fixed in 0.3.0) |