Lucene search
K

Ruby Gem Command Wrap Command Execution

🗓️ 18 Mar 2013 00:00:00Reported by Larry W. CashdollarType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 17 Views

Remote command execution risk in Ruby Gem Command Wra

Code
`Remote command execution in Ruby Gem Command Wrap  
  
3/15/2013  
http://rubygems.org/gems/command_wrap  
  
Commands executed if the remote URL or filename contains the shell character ';'. The commands will be executed as the client user if tricked into using the malicious URL or filename.  
  
Examining the following lines:  
  
command_wrap.rb-7- def self.capture (url, target)  
  
command_wrap.rb-8- command = CommandWrap::Config::Xvfb.command(File.dirname(__FILE__) + "/../bin/CutyCapt --min-width=1024 --min-height=768 --url={url} --out={target}") command_wrap.rb:9: `#{command}`  
command_wrap.rb-10- end  
command_wrap.rb-11-  
--  
command_wrap.rb-72- command = CommandWrap::Config::Xvfb.command(File.dirname(__FILE__) + "/../bin/wkhtmltopdf --quiet --print-media-type #{source} #{params} #{target}") command_wrap.rb-73-  
command_wrap.rb:74: `#{command}`  
  
Untrusted data is passed to the command line.  
  
Larry W. Cashdollar  
@_larry0  
http://vapid.dhs.org  
`

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

18 Mar 2013 00:00Current
7.4High risk
Vulners AI Score7.4
17