CVE-2016-15005 Cryptographically weak random number generation in github.com/dinever/golf
Attackers can predict CSRF tokens due to weak random number generation, bypassing CSRF protections in the Golf web framework.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2016-15005?
CVE-2016-15005 is a high-severity vulnerability in github.com/dinever/golf, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-352
Which versions are affected by CVE-2016-15005?
3 open source packages ship an affected version, including github.com/dinever/golf. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/dinever/golf Go | All versions | 0.3.0 |
github.com/dinever/golf Go | All versions | 0.3.0 |
github.com/dinever/golf Go | All versions | 0.3.0 |
Products include Golf Project Golf.
How do I fix CVE-2016-15005?
Upgrade github.com/dinever/golf to 0.3.0 or later.
Is CVE-2016-15005 being exploited?
There is no known exploitation of CVE-2016-15005 in the wild and no public exploit code.
Sources
Also known as GHSA-q9qr-jwpw-3qvv, GO-2020-0045.