ADVISORIES

GitHub Advisory Database

GHSA-q9qr-jwpw-3qvv

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

EcosystemPackageAffected versions
Gogithub.com/dinever/golf
All versions before 0.3.0 (fixed in 0.3.0)

References