CSRF bypass via predictably generated XSRF tokens
Published Dec 27, 2022 · Updated Apr 11, 2025
Cross-site request forgery in Dinever Golf before 0.3.0 allows remote attackers to bypass XSRF protections by predicting tokens. The randomBytes function in xsrf.go reseeds math/rand from the current Unix nanosecond time and selects token characters with rand.Intn, making generated values predictable. Exploitation requires user interaction and an application route that uses Golf's XSRF protection; successful prediction permits forged state-changing requests under the victim's authenticated session.
Summary
What happened
Cross-site request forgery in Dinever Golf before 0.3.0 allows remote attackers to bypass XSRF protections by predicting tokens. The randomBytes function in xsrf.go reseeds math/rand from the current Unix nanosecond time and selects token characters with rand.Intn, making generated values predictable. Exploitation requires user interaction and an application route that uses Golf's XSRF protection; successful prediction permits forged state-changing requests under the victim's authenticated session.
The record
- CVE
- CVE-2016-15005
- Published
- Dec 27, 2022
- Updated
- Apr 11, 2025
- Vendor
- Dinever
- Product
- Golf
- Classifications
- CWE-352
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Dec 27, 2022CVE publishedPublication date reported by the CVE source.
- Apr 11, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <0.3.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo