{"id":"CVE-2016-15005","published":"2022-12-27T21:13:27Z","modified":"2025-04-11T16:39:25Z","title":"Cryptographically weak random number generation in github.com/dinever/golf","vendor":"github.com/dinever/golf","product":"github.com/dinever/golf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00415,"percentile":0.36679,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/dinever/golf/pull/24","tags":[]},{"url":"https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe","tags":[]},{"url":"https://github.com/dinever/golf/issues/20","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2020-0045","tags":[]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":7.34},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"github-com-dinever-golf","affectedVersions":[{"vendor":"github.com/dinever/golf","product":"github.com/dinever/golf","versions":["< 0.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-11T16:38:53.683800Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/dinever/golf","vulnerableRanges":["<0.3.0"],"patched":["0.3.0"],"from":["GHSA-q9qr-jwpw-3qvv","GO-2020-0045"],"provenance":"source"}],"summary":{"text":"The flaw is in github.com/dinever/golf, where CSRF tokens are generated with math/rand, a non-cryptographically secure random number generator. An attacker who can make relatively few requests can predict token values and bypass the CSRF protections; the attack vector indicates it is reachable over the network, requires no privileges, and needs a user to interact with it (for example, by visiting a malicious page).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:59Z"},"euvd":{"id":"EUVD-2022-7716","exploited":false,"provenance":"source"}}