blob: 8541875d6cdab3f175fce7259d39579bcc306dea [file] [log] [blame]
{
"id": "GO-2020-0045",
"published": "2021-04-14T20:04:52Z",
"modified": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2016-15005",
"GHSA-q9qr-jwpw-3qvv"
],
"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": [
{
"package": {
"name": "github.com/dinever/golf",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.0"
}
]
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2020-0045"
},
"ecosystem_specific": {
"imports": [
{
"path": "github.com/dinever/golf",
"symbols": [
"Context.Render",
"Context.RenderFromString",
"randomBytes"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://github.com/dinever/golf/pull/24"
},
{
"type": "FIX",
"url": "https://github.com/dinever/golf/commit/3776f338be48b5bc5e8cf9faff7851fc52a3f1fe"
},
{
"type": "REPORT",
"url": "https://github.com/dinever/golf/issues/20"
}
],
"credits": [
{
"name": "@elithrar"
}
],
"schema_version": "1.3.1"
}