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.
Metrics
CVSS 3.1 8.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| github.com/dinever/golf | github.com/dinever/golf | < 0.3.0 |
References
- https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fePatch, Third Party Advisory
- https://github.com/dinever/golf/issues/20Issue Tracking, Third Party Advisory
- https://github.com/dinever/golf/pull/24Patch, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2020-0045Third Party Advisory
- https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fePatch, Third Party Advisory
- https://github.com/dinever/golf/issues/20Issue Tracking, Third Party Advisory
- https://github.com/dinever/golf/pull/24Patch, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2020-0045Third Party Advisory
Timeline
- Published
- Dec 27, 2022
- Last modified
- Jun 17, 2026
- NVD status
- Modified