Spreecommerce
cpe:2.3:a:spreecommerce:spree:*:*:*:*:*:*:*
- < 0.50.0
This vulnerability is being actively exploited in the wild.
A remote command execution vulnerability has been identified in Spreecommerce versions prior to 0.50.x. This issue arises in the API's search functionality, where improper input sanitation allows attackers to inject arbitrary shell commands via the search[instance_eval] parameter. The injected commands are executed on the server using Ruby's send method, enabling unauthenticated attackers to execute commands remotely.
Exploitation of this vulnerability allows for arbitrary command execution on the server where Spreecommerce is hosted.
To reproduce this vulnerability, send a GET request to the 'api/orders.json' endpoint with a 'search[instance_eval]' parameter. Inject the desired shell command into this parameter. The command will be executed on the server, allowing for remote command execution.
Users are advised to upgrade to Spreecommerce version 0.50.x or later, where this vulnerability has been patched. If an immediate upgrade is not possible, a temporary hotfix can be applied by creating an initializer that disables the vulnerable search functionality.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.