CVE-2018-25060: Github.com/go macaron/csrf Macaron Csrf Missing Encryption And Vulnerability
HIGHCVE-2018-25060 is a HIGH (CVSS 7.5) macaron csrf missing encryption and vulnerability (CWE-311: Missing Encryption of Sensitive Data) affecting Github.com/go macaron/csrf libraries in the Go ecosystem. The issue involves macaron csrf missing encryption and has sensitive cookies in http session without secure attribute. Remediation is available by upgrading affected packages to version 0.0.0-20180426211050-dadd1711a617.
CVE-2018-25060 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2018-25060
To remediate this vulnerability, upgrade all affected Github.com/go macaron/csrf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/go-macaron/csrf to 0.0.0-20180426211050-dadd1711a617
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/go-macaron/csrf
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-25060, inspect your project dependencies for Github.com/go macaron/csrf:
inspect dependencies for github.com/go-macaron/csrf
Analyze the terminal output to locate any version of Github.com/go macaron/csrf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20180426211050-dadd1711a617), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-311: Missing Encryption of Sensitive Data, where the product does not encrypt sensitive or critical information before storage or transmission. In Github.com/go macaron/csrf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-25060 Affected Github.com/go macaron/csrf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/go-macaron/csrf
|
Go |
< 0.0.0-20180426211050-dadd1711a617
|
0.0.0-20180426211050-dadd1711a617
|
References
Frequently Asked Questions
What is CVE-2018-25060?
Which Github.com/go macaron/csrf versions are affected?
What version fixes CVE-2018-25060?
Is github.com/go-macaron/csrf affected?
What is the CVSS score of CVE-2018-25060?
What CWE is associated with CVE-2018-25060?
How can I check Go dependencies for CVE-2018-25060?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hhxg-px5h-jc32",
"modified" : "2024-03-01T14:24:38Z",
"published" : "2022-12-30T12:30:25Z",
"aliases" : [ "CVE-2018-25060" ],
"summary" : "Macaron csrf missing encryption and has sensitive cookies in HTTP session without secure attribute",
"details" : "A vulnerability was found in Macaron csrf and classified as problematic. Affected by this issue is some unknown functionality of the file `csrf.go`. The manipulation of the argument Generate leads to sensitive cookie without secure attribute. The attack may be launched remotely. The name of the patch is dadd1711a617000b70e5e408a76531b73187031c. It is recommended to apply a patch to fix this issue. VDB-217058 is the identifier assigned to this vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/go-macaron/csrf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20180426211050-dadd1711a617"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-25060"
}, {
"type" : "WEB",
"url" : "https://github.com/go-macaron/csrf/pull/7"
}, {
"type" : "WEB",
"url" : "https://github.com/go-macaron/csrf/commit/dadd1711a617000b70e5e408a76531b73187031c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/go-macaron/csrf"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-1213"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.217058"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.217058"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-311", "CWE-614" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-09T21:58:58Z",
"nvd_published_at" : "2022-12-30T12:15:00Z"
}
}