GHSA-q9qr-jwpw-3qvv

Suggest an improvement
Source
https://github.com/advisories/GHSA-q9qr-jwpw-3qvv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-q9qr-jwpw-3qvv/GHSA-q9qr-jwpw-3qvv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q9qr-jwpw-3qvv
Aliases
Published
2022-12-28T00:30:23Z
Modified
2024-05-20T19:42:50Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
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.

References

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