thesp0nge / dawnscanner

Dawn is a static analysis security scanner for ruby written web applications. It supports Sinatra, Padrino and Ruby on Rails frameworks.
MIT License
737 stars 86 forks source link

CVE-2015-7541: colorscore Gem for Ruby lib/colorscore/histogram.rb Arbitrary Command Injection #171

Closed thesp0nge closed 8 years ago

thesp0nge commented 8 years ago

OSVDB-132516 http://seclists.org/oss-sec/2016/q1/17

The contents of the image_path, colors, and depth variables generated from possibly user-supplied input are passed directly to the shell via convert .... If a user supplies a value that includes shell metacharacters such as ';', an attacker may be able to execute shell commands on the remote system as the user id of the Ruby process. To resolve this issue, the aforementioned variables (especially image_path) must be sanitized for shell metacharacters. Currently, no fix for this issue exists.