GHSA-q9qr-jwpw-3qvv

    Dashboard / Vulnerabilities / GHSA-q9qr-jwpw-3qvv

    GHSA-q9qr-jwpw-3qvv

    Published: 28 Dec 2022Last Modified: 20 May 2024

    Summary: Golf may allow attacker to bypass CSRF protections due to weak PRNG

    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
    GHSA-q9qr-jwpw-3qvv | CVE-DB