
Cloud Vulnerability DB
A community-led vulnerabilities database
A vulnerability was identified in the Macaron CSRF package (github.com/go-macaron/csrf) affecting versions prior to 0.0.0-20200329073418-5d38f39de352. The issue was discovered in 2018 and is tracked as CVE-2018-25060. The vulnerability relates to the CSRF cookie security settings implementation (NVD).
The vulnerability stems from a hardcoded 'false' value for the secure flag in the CSRF cookie settings. Specifically, the Options struct contained a Secure flag for CSRF cookie, but it was being ignored as the corresponding argument of SetCookie() was hardcoded to false in the csrf.Generate() function (GitHub PR).
The vulnerability could potentially expose CSRF tokens over insecure connections, as the secure flag for CSRF cookies was not being properly implemented despite being configurable in the Options struct (FortiGuard).
The issue was resolved through a pull request that modified the csrf.Generate() function to properly utilize the Options.Secure flag when setting cookies. The fix was implemented by passing the Options.Secure value to SetCookie instead of the hardcoded false value (GitHub Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."