CVE-2010-3978: Spree Spree Allows Remote Attackers To Vulnerability

MODERATE
Advisory Identifier: GHSA-hwrx-wc75-mgh7
CWE-200
Published
Advisory Summary

CVE-2010-3978 is a MODERATE spree allows remote attackers to vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Spree libraries in the RubyGems ecosystem. The issue involves spree allows remote attackers to obtain sensitive information. Remediation is available by upgrading affected packages to version 0.11.2, 0.30.0.

CVE-2010-3978 at a Glance

CVE Identifier CVE-2010-3978
GHSA Identifier GHSA-hwrx-wc75-mgh7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Spree
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2010-3978

To remediate this vulnerability, upgrade all affected Spree dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

spree fixed: 0.11.2
Upgrade spree to 0.11.2
spree fixed: 0.30.0
Upgrade spree to 0.30.0
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 spree

How to Check if You Are Affected

To determine whether your application is affected by CVE-2010-3978, inspect your project dependencies for Spree:

inspect dependencies for spree

Analyze the terminal output to locate any version of Spree in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.2), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Spree, 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

Spree 0.11.x before 0.11.2 and 0.30.x before 0.30.0 exchanges data using JavaScript Object Notation (JSON) without a mechanism for validating requests, which allows remote attackers to obtain sensitive information via vectors involving (1) `admin/products.json`, (2) `admin/users.json`, or (3) `admin/overview/get_report_data`, related to a "JSON hijacking" issue.

CVE-2010-3978 Affected Spree Versions

2 component(s)
Fixed Versions:
0.11.20.30.0
Product / Package Ecosystem Affected Versions Fixed Version
spree
RubyGems
≥ 0.11.0
< 0.11.2
0.11.2
spree
RubyGems
≥ 0.30.0.beta1
< 0.30.0
All 1 versions
0.30.0.beta1
0.30.0

References

Frequently Asked Questions

What is CVE-2010-3978?
CVE-2010-3978 is a security vulnerability in Spree involving Spree allows remote attackers to obtain sensitive information under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Spree versions are affected?
Affected versions include releases prior to 0.11.2, 0.30.0 across affected packages: spree.
What version fixes CVE-2010-3978?
Upgrading to 0.11.2, 0.30.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spree affected?
Yes, spree is affected in releases prior to 0.11.2, 0.30.0. Upgrade your dependency to 0.11.2, 0.30.0 or later.
What CWE is associated with CVE-2010-3978?
CVE-2010-3978 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check RubyGems dependencies for CVE-2010-3978?
Run the dependency tree command: 'inspect dependencies for spree'. 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-hwrx-wc75-mgh7",
  "modified" : "2023-01-27T00:18:49Z",
  "published" : "2022-05-14T02:42:49Z",
  "aliases" : [ "CVE-2010-3978" ],
  "summary" : "Spree allows remote attackers to obtain sensitive information",
  "details" : "Spree 0.11.x before 0.11.2 and 0.30.x before 0.30.0 exchanges data using JavaScript Object Notation (JSON) without a mechanism for validating requests, which allows remote attackers to obtain sensitive information via vectors involving (1) `admin/products.json`, (2) `admin/users.json`, or (3) `admin/overview/get_report_data`, related to a \"JSON hijacking\" issue.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "0.11.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.30.0.beta1"
      }, {
        "fixed" : "0.30.0"
      } ]
    } ],
    "versions" : [ "0.30.0.beta1" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-3978"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/railsdog/spree/commit/19944bd999c310d9b10d16a41f48ebac97dc4fac"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/railsdog/spree/commit/d881b2bb610ea33e2364ff16feb8e702dfeda135"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2010-3978.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spree/spree"
  }, {
    "type" : "WEB",
    "url" : "https://spreecommerce.com/blog/json-hijacking-vulnerability"
  }, {
    "type" : "WEB",
    "url" : "http://spreecommerce.com/blog/2010/11/02/json-hijacking-vulnerability"
  }, {
    "type" : "WEB",
    "url" : "http://spreecommerce.com/blog/2010/11/09/spree-0-30-0-released"
  }, {
    "type" : "WEB",
    "url" : "http://twitter.com/conviso/statuses/29555076248"
  }, {
    "type" : "WEB",
    "url" : "http://www.conviso.com.br/json-hijacking-vulnerability"
  }, {
    "type" : "WEB",
    "url" : "http://www.conviso.com.br/security-advisory-spree-e-commerce-json-v-0-11x"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/514674/100/0/threaded"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-27T00:18:49Z",
    "nvd_published_at" : "2010-11-17T16:00:00Z"
  }
}