Vulnerabilities in pkg:golang/github.com/go-macaron/csrf

PACKAGE
Advisory Identifier: GHSA-hhxg-px5h-jc32
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/go-macaron/csrf

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/go-macaron/csrf. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hhxg-px5h-jc32 CVE-2018-25060 HIGH Macaron csrf missing encryption and has sensitive cookies in HTTP session without secure attribute

CVE-2018-25060 at a Glance

CVE Identifier CVE-2018-25060
GHSA Identifier GHSA-hhxg-px5h-jc32
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-311: Missing Encryption of Sensitive Data
Affected Product Github.com/go macaron/csrf
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

github.com/go-macaron/csrf fixed: 0.0.0-20180426211050-dadd1711a617
Upgrade github.com/go-macaron/csrf to 0.0.0-20180426211050-dadd1711a617
Verify Direct and Transitive Dependencies

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

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.

CVE-2018-25060 Affected Github.com/go macaron/csrf Versions

1 component(s)
Fixed Versions:
0.0.0-20180426211050-dadd1711a617
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?
CVE-2018-25060 is a security vulnerability in Github.com/go macaron/csrf involving Macaron csrf missing encryption and has sensitive cookies in HTTP session without secure attribute under CWE-311: Missing Encryption of Sensitive Data.
Which Github.com/go macaron/csrf versions are affected?
Affected versions include releases prior to 0.0.0-20180426211050-dadd1711a617 across affected packages: github.com/go-macaron/csrf.
What version fixes CVE-2018-25060?
Upgrading to 0.0.0-20180426211050-dadd1711a617 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/go-macaron/csrf affected?
Yes, github.com/go-macaron/csrf is affected in releases prior to 0.0.0-20180426211050-dadd1711a617. Upgrade your dependency to 0.0.0-20180426211050-dadd1711a617 or later.
What is the CVSS score of CVE-2018-25060?
CVE-2018-25060 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2018-25060?
CVE-2018-25060 is classified under CWE-311: Missing Encryption of Sensitive Data (The product does not encrypt sensitive or critical information before storage or transmission.).
How can I check Go dependencies for CVE-2018-25060?
Run the dependency tree command: 'inspect dependencies for github.com/go-macaron/csrf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}