Lucene search
K

Fog Dragonfly 0.8.2 Command Injection Vulnerability

🗓️ 04 Sep 2013 00:00:00Reported by Larry CashdollarType 
zdt
 zdt
🔗 0day.today👁 29 Views

Remote Command Injection in fog-dragonfly-0.8.2 Ruby Gem allows unescaped user input for shell execution in imagemagickutils.r

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2013-5671
12 May 201414:00
cve
Cvelist
CVE-2013-5671
12 May 201414:00
cvelist
EUVD
EUVD-2017-0293
7 Oct 202500:30
euvd
Github Security Blog
Code injection in dragonfly gem
24 Oct 201718:33
github
NVD
CVE-2013-5671
12 May 201414:55
nvd
OSV
GHSA-QRGF-JQQM-X7XV Code injection in dragonfly gem
24 Oct 201718:33
osv
Prion
Command injection
12 May 201414:55
prion
RubySec
fog-dragonfly Gem for Ruby imagemagickutils.rb Remote Command Execution
3 Sep 201300:00
rubygems
RubySec
fog-dragonfly Gem for Ruby imagemagickutils.rb Remote Command Execution
3 Sep 201300:00
rubygems
TITLE: Remote Command Injection in fog-dragonfly-0.8.2 Ruby Gem

Credit: Larry W. Cashdollar, @_larry0

Date: 8/16/2013

CVE: 2013-5671

Download: https://rubygems.org/gems/fog-dragonfly

Description:
"Dragonfly is an on-the-fly Rack-based image handling framework. It is suitable for use with Rails, Sinatra and other web frameworks. Although it's mainly used for images, it can handle any content type."
Unescaped user supplied input is passed to the command line for shell execution:
from fog-dragonfly-0.8.2/lib/dragonfly/imagemagickutils.rb:

20     def convert(tempobject, args='', format=nil)
 21       tempfile = newtempfile(format)
 22       run "#{convertcommand} #{args} #{tempobject.path} #{tempfile.path}"
 23       tempfile
 24     end
.
.
.

61     def run(command)
 62       log.debug("Running command: #{command}") if ImageMagickUtils.log_commands
 63       begin
 64         result = #{command}


Vendor Notified: 8/16/2013

#  0day.today [2018-04-07]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Sep 2013 00:00Current
0.2Low risk
Vulners AI Score0.2
EPSS0.02165
29