what you don't know can hurt you

Fog Dragonfly 0.8.2 Command Injection

Fog Dragonfly 0.8.2 Command Injection
Posted Sep 3, 2013
Authored by Larry W. Cashdollar

Ruby Gem Fog Dragonfly version 0.8.2 suffers from a remote command injection vulnerability.

tags | advisory, remote, ruby
advisories | CVE-2013-5671
MD5 | 28d2bd5fa039d9dd78f698db9069e760

Fog Dragonfly 0.8.2 Command Injection

Change Mirror Download
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

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

February 2015

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Feb 1st
    2 Files
  • 2
    Feb 2nd
    17 Files
  • 3
    Feb 3rd
    15 Files
  • 4
    Feb 4th
    16 Files
  • 5
    Feb 5th
    14 Files
  • 6
    Feb 6th
    4 Files
  • 7
    Feb 7th
    0 Files
  • 8
    Feb 8th
    0 Files
  • 9
    Feb 9th
    0 Files
  • 10
    Feb 10th
    0 Files
  • 11
    Feb 11th
    0 Files
  • 12
    Feb 12th
    0 Files
  • 13
    Feb 13th
    0 Files
  • 14
    Feb 14th
    0 Files
  • 15
    Feb 15th
    0 Files
  • 16
    Feb 16th
    0 Files
  • 17
    Feb 17th
    0 Files
  • 18
    Feb 18th
    0 Files
  • 19
    Feb 19th
    0 Files
  • 20
    Feb 20th
    0 Files
  • 21
    Feb 21st
    0 Files
  • 22
    Feb 22nd
    0 Files
  • 23
    Feb 23rd
    0 Files
  • 24
    Feb 24th
    0 Files
  • 25
    Feb 25th
    0 Files
  • 26
    Feb 26th
    0 Files
  • 27
    Feb 27th
    0 Files
  • 28
    Feb 28th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2015 Packet Storm. All rights reserved.

close