dinever/golf · Security
Golf may allow attacker to bypass CSRF protections due to weak PRNG
- GHSA ID
- GHSA-q9qr-jwpw-3qvv
- CVE ID
- CVE-2016-15005
- Severity
- high
- Published
- Updated
- CVSS
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS v3
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-332 · Insufficient Entropy in PRNG
- CWE-352 · Cross-Site Request Forgery (CSRF)
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-15005 ↗
- https://github.com/dinever/golf/issues/20 ↗
- https://github.com/dinever/golf/pull/24 ↗
- https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe ↗
- https://pkg.go.dev/vuln/GO-2020-0045 ↗
- https://github.com/dinever/golf/releases/tag/v0.3.0 ↗
- https://github.com/advisories/GHSA-q9qr-jwpw-3qvv ↗