Description
Spreecommerce versions prior to 0.50.x contain a remote command execution vulnerability in the API's search functionality. Improper input sanitation allows attackers to inject arbitrary shell commands via the search[instance_eval] parameter, which is dynamically invoked using Ruby’s send method. This flaw enables unauthenticated attackers to execute commands on the server.
Problem types
CWE-94 Improper Control of Generation of Code ('Code Injection')
Product status
* before 0.50.x
Credits
Joernchen (Phenoelit)
References
raw.githubusercontent.com/.../http/spree_searchlogic_exec.rb
www.exploit-db.com/exploits/17199
web.archive.org/...mmerce.com/blog/2011/04/19/security-fixes
github.com/spree
www.vulncheck.com/advisories/spreecommerce-api-rce