CVE-2008-7310: Spree Spree Does Not Properly Restrict Vulnerability
MODERATECVE-2008-7310 is a MODERATE spree does not properly restrict vulnerability (General Security Weakness) affecting Spree libraries in the RubyGems ecosystem. The issue involves spree does not properly restrict the use of a hash to provide values for a model's attributes. Remediation is available by upgrading affected packages to version 0.4.0.
CVE-2008-7310 at a Glance
How to Fix CVE-2008-7310
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.
Upgrade spree to 0.4.0
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-2008-7310, 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.4.0), 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, 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-2008-7310 Affected Spree Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
spree
|
RubyGems |
< 0.4.0
|
0.4.0
|
References
Frequently Asked Questions
What is CVE-2008-7310?
Which Spree versions are affected?
What version fixes CVE-2008-7310?
Is spree affected?
What CWE is associated with CVE-2008-7310?
How can I check RubyGems dependencies for CVE-2008-7310?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7h48-m3rw-vr27",
"modified" : "2023-01-27T00:01:51Z",
"published" : "2022-05-17T05:31:08Z",
"aliases" : [ "CVE-2008-7310" ],
"summary" : "Spree does not properly restrict the use of a hash to provide values for a model's attributes",
"details" : "Spree 0.2.0 does not properly restrict the use of a hash to provide values for a model's attributes, which allows remote attackers to set the Order state value and bypass the intended payment step via a modified URL, related to a \"mass assignment\" vulnerability.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "spree"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-7310"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2008-7310.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spree/spree"
}, {
"type" : "WEB",
"url" : "https://spreecommerce.com/blog/security-vulnerability-mass-assignment"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20080925003904/http://railspikes.com/2008/9/22/is-your-rails-application-safe-from-mass-assignment"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20101128024717/http://spreecommerce.com/blog/2008/09/16/security-vulnerability-mass-assignment-of-order-params"
}, {
"type" : "WEB",
"url" : "http://railspikes.com/2008/9/22/is-your-rails-application-safe-from-mass-assignment"
}, {
"type" : "WEB",
"url" : "http://spreecommerce.com/blog/2008/09/16/security-vulnerability-mass-assignment-of-order-params"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-27T00:01:51Z",
"nvd_published_at" : "2012-04-05T13:25:00Z"
}
}