CVE-2013-2506: Spree auth devise Spree_auth_devise Allows Remote Authenticated Users Vulnerability

MODERATE
Advisory Identifier: GHSA-jp57-9j37-5476
Published
Advisory Summary

CVE-2013-2506 is a MODERATE spree_auth_devise allows remote authenticated users vulnerability (General Security Weakness) affecting Spree auth devise libraries in the RubyGems ecosystem. The issue involves spree_auth_devise allows remote authenticated users to assign themselves arbitrary roles. Remediation is available by upgrading affected packages to version 3.0.5.

CVE-2013-2506 at a Glance

CVE Identifier CVE-2013-2506
GHSA Identifier GHSA-jp57-9j37-5476
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Spree auth devise
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-2506

To remediate this vulnerability, upgrade all affected Spree auth devise 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_auth_devise fixed: 3.0.5
Upgrade spree_auth_devise to 3.0.5
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_auth_devise

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-2506, inspect your project dependencies for Spree auth devise:

inspect dependencies for spree_auth_devise

Analyze the terminal output to locate any version of Spree auth devise in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.5), 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 General Security Weakness. In Spree auth devise, 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

`app/models/spree/user.rb` in spree_auth_devise in Spree 1.1.x before 1.1.6, 1.2.x, and 1.3.x does not perform mass assignment safely when updating a user, which allows remote authenticated users to assign arbitrary roles to themselves.

CVE-2013-2506 Affected Spree auth devise Versions

1 component(s)
Fixed Versions:
3.0.5
Product / Package Ecosystem Affected Versions Fixed Version
spree_auth_devise
RubyGems
≥ 1.0.0
< 3.0.5
3.0.5

References

Frequently Asked Questions

What is CVE-2013-2506?
CVE-2013-2506 is a security vulnerability in Spree auth devise involving spree_auth_devise allows remote authenticated users to assign themselves arbitrary roles under General Security Weakness.
Which Spree auth devise versions are affected?
Affected versions include releases prior to 3.0.5 across affected packages: spree_auth_devise.
What version fixes CVE-2013-2506?
Upgrading to 3.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spree_auth_devise affected?
Yes, spree_auth_devise is affected in releases prior to 3.0.5. Upgrade your dependency to 3.0.5 or later.
What CWE is associated with CVE-2013-2506?
CVE-2013-2506 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2013-2506?
Run the dependency tree command: 'inspect dependencies for spree_auth_devise'. 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-jp57-9j37-5476",
  "modified" : "2023-07-03T21:54:06Z",
  "published" : "2022-05-17T05:13:40Z",
  "aliases" : [ "CVE-2013-2506" ],
  "summary" : "spree_auth_devise allows remote authenticated users to assign themselves arbitrary roles",
  "details" : "`app/models/spree/user.rb` in spree_auth_devise in Spree 1.1.x before 1.1.6, 1.2.x, and 1.3.x does not perform mass assignment safely when updating a user, which allows remote authenticated users to assign arbitrary roles to themselves.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "spree_auth_devise"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "3.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-2506"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree_auth_devise/commit/038d74771d3b5c13d13b738b73dfda1033a99f65"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spree/spree_auth_devise/commit/fda3ab9fb536c64fe18a9b78bb21c6176b3ea24d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree_auth/CVE-2013-2506.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree_auth_devise/CVE-2013-2506.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spree/spree_auth_devise"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20131207040639/https://rubygems.org/gems/spree_auth_devise/versions"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20160331131233/https://spreecommerce.com/blog/multiple-security-vulnerabilities-fixed"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-27T00:19:17Z",
    "nvd_published_at" : "2013-03-08T18:55:00Z"
  }
}