MEDIUM
GHSA-7h48-m3rw-vr27
Spree does not properly restrict the use of a hash to provide values for a model's attributes
Quick fix
GHSA-7h48-m3rw-vr27 — spree: upgrade to the fixed version with the command below.
bundle update spreeDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2008-7310[ADVISORY]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2008-7310.yml[WEB]
- https://github.com/spree/spree[PACKAGE]
- https://spreecommerce.com/blog/security-vulnerability-mass-assignment[WEB]
- https://web.archive.org/web/20080925003904/http://railspikes.com/2008/9/22/is-your-rails-application-safe-from-mass-assignment[WEB]
- https://web.archive.org/web/20101128024717/http://spreecommerce.com/blog/2008/09/16/security-vulnerability-mass-assignment-of-order-params[WEB]
- http://railspikes.com/2008/9/22/is-your-rails-application-safe-from-mass-assignment[WEB]
- http://spreecommerce.com/blog/2008/09/16/security-vulnerability-mass-assignment-of-order-params[WEB]