CVE-2013-2506: Spree auth devise Spree_auth_devise Allows Remote Authenticated Users Vulnerability
MODERATECVE-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
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.
Upgrade spree_auth_devise to 3.0.5
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
CVE-2013-2506 Affected Spree auth devise Versions
1 component(s)| 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?
Which Spree auth devise versions are affected?
What version fixes CVE-2013-2506?
Is spree_auth_devise affected?
What CWE is associated with CVE-2013-2506?
How can I check RubyGems dependencies for CVE-2013-2506?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}