Lucene search
K

Ruby Gem Sprout 0.7.246 Command Injection

🗓️ 02 Dec 2013 00:00:00Reported by Larry W. CashdollarType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 22 Views

Command injection vulnerability in Ruby Gem sprout 0.7.246, allows remote command executio

Code
`Title: Command injection vulnerability in Ruby Gem sprout 0.7.246  
  
Download: http://rubygems.org/gems/sprout, http://projectsprouts.org/  
  
Vulnerability:  
  
The unpack_zip() function contains the following code:  
  
sprout-0.7.246/lib/sprout/archive_unpacker.rb  
  
60 zip_dir = File.expand_path(File.dirname(zip_file))  
61 zip_name = File.basename(zip_file)  
62 output = File.expand_path(dir)  
63 # puts ">> zip_dir: #{zip_dir} zip_name: #{zip_name} output: #{output} "   
64 %x(cd #{zip_dir};unzip #{zip_name} -d #{output})  
  
  
If the attacker can control zip_dir, zip_name or output then they can possibly   
execute shell commands by injecting shell meta characters as input.   
  
  
PoC:  
  
For example: filename;id;.zip  
  
I contacted the developer a few weeks ago but received no response.  
  
Thanks!  
Larry W. Cashdollar  
@_larry0  
  
`

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

02 Dec 2013 00:00Current
0.5Low risk
Vulners AI Score0.5
22