Remote command execution in Ruby Gem ldoce 0.0.2
Larry W. Cashdollar
@_larry0
3/25/2013
Ldoce Ruby Gem:
Easily interface with the Longman Dictionary of Contemporary English API from Ruby:
NB currently mac only as it depends on the afplay command.
https://github.com/markburns/ldoce
Ldoce passes an mp3 url to commandline for audio output of the pronunciation of a dictonary word:
If the URL or filename for the mp3 files contain shell metacharacters code can be executed remotely as the client:
[./ldoce-0.0.2/lib/ldoce/word.rb]
if mp3?
unless File.exists? filename
command = "curl #{mp3_url} -silent > {filename}"
`{command}`
end
`afplay #{filename}`
end
# 0day.today [2018-03-06] #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