GO-2020-0045

    Dashboard / Vulnerabilities / GO-2020-0045

    GO-2020-0045

    Published: 14 Apr 2021Last Modified: 20 May 2024

    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.

    Affected packages

    Package

    Name: github.com/dinever/golf

    Purl: pkg:golang/github.com/dinever/golf

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.3.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2020-0045 | CVE-DB