GO-2020-0045

See a problem?
Source
https://pkg.go.dev/vuln/GO-2020-0045
Import Source
https://vuln.go.dev/ID/GO-2020-0045.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2020-0045
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Cryptographically weak random number generation in github.com/dinever/golf
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.

References
Credits
    • @elithrar

Affected packages

Go / github.com/dinever/golf

Package

Name
github.com/dinever/golf
View open source insights on deps.dev
Purl
pkg:golang/github.com/dinever/golf

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.0

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/dinever/golf",
            "symbols": [
                "Context.Render",
                "Context.RenderFromString",
                "randomBytes"
            ]
        }
    ]
}