Advisory

GHSA-q9qr-jwpw-3qvv

Also known as: CVE-2016-15005, GO-2020-0045

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-12-28 00:30 UTC
Modified
2024-05-20 19:42 UTC

Affected packages and fixes

github.com/dinever/golf

Go · All systems

Affected

  • introduced 0, fixed 0.3.0 (semver)

Fixed versions

0.3.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences