CVE-2013-1656: Spree Spree Improper Input Validation Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-jxx8-v83v-rhw3
CWE-20
Published
Advisory Summary

CVE-2013-1656 is a MODERATE spree improper input validation vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Spree libraries in the RubyGems ecosystem. The issue involves spree improper input validation vulnerability. Remediation is available by upgrading affected packages to version 2.0.0.rc1.

CVE-2013-1656 at a Glance

CVE Identifier CVE-2013-1656
GHSA Identifier GHSA-jxx8-v83v-rhw3
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Spree
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-1656

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: 2.0.0.rc1
Upgrade spree to 2.0.0.rc1
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-2013-1656, 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 2.0.0.rc1), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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 Commerce 1.0.x before 2.0.0.rc1 allows remote authenticated administrators to instantiate arbitrary Ruby objects and execute arbitrary commands via the (1) `payment_method` parameter to `core/app/controllers/spree/admin/payment_methods_controller.rb`; and the (2) `promotion_action parameter` to `promotion_actions_controller.rb`, (3) `promotion_rule parameter` to `promotion_rules_controller.rb`, and (4) `calculator_type` parameter to `promotions_controller.rb` in `promo/app/controllers/spree/admin/`, related to unsafe use of the constantize function.

CVE-2013-1656 Affected Spree Versions

1 component(s)
Fixed Versions:
2.0.0.rc1
Product / Package Ecosystem Affected Versions Fixed Version
spree
RubyGems
≥ 1.0.0
< 2.0.0.rc1
2.0.0.rc1

References

Frequently Asked Questions

What is CVE-2013-1656?
CVE-2013-1656 is a security vulnerability in Spree involving Spree Improper Input Validation vulnerability under CWE-20: Improper Input Validation.
Which Spree versions are affected?
Affected versions include releases prior to 2.0.0.rc1 across affected packages: spree.
What version fixes CVE-2013-1656?
Upgrading to 2.0.0.rc1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spree affected?
Yes, spree is affected in releases prior to 2.0.0.rc1. Upgrade your dependency to 2.0.0.rc1 or later.
What CWE is associated with CVE-2013-1656?
CVE-2013-1656 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check RubyGems dependencies for CVE-2013-1656?
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-jxx8-v83v-rhw3",
  "modified" : "2023-08-29T09:24:34Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-1656" ],
  "summary" : "Spree Improper Input Validation vulnerability",
  "details" : "Spree Commerce 1.0.x before 2.0.0.rc1 allows remote authenticated administrators to instantiate arbitrary Ruby objects and execute arbitrary commands via the (1) `payment_method` parameter to `core/app/controllers/spree/admin/payment_methods_controller.rb`; and the (2) `promotion_action parameter` to `promotion_actions_controller.rb`, (3) `promotion_rule parameter` to `promotion_rules_controller.rb`, and (4) `calculator_type` parameter to `promotions_controller.rb` in `promo/app/controllers/spree/admin/`, related to unsafe use of the constantize function.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "2.0.0.rc1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1656"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree/commit/70092eb55b8be8fe5d21a7658b62da658612fba7"
  }, {
    "type" : "WEB",
    "url" : "https://blog.convisoappsec.com/en/spree-commerce-multiple-unsafe-reflection-vulnerabilities-cve-2013-1656"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2013-1656.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spree/spree"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20130907044454/https://www.conviso.com.br/advisories/CVE-2013-1656.txt"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140329142330/http://spreecommerce.com/blog/multiple-security-vulnerabilities-fixed"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20140618100330/http://blog.conviso.com.br/2013/03/spree-commerce-multiple-unsafe.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:44:31Z",
    "nvd_published_at" : "2013-03-08T18:55:01Z"
  }
}