Ruby Gem ldoce 0.0.2 Remote command execution

2013.04.01
Risk: High
Local: No
Remote: Yes
CWE: CWE-20


CVSS Base Score: 6.8/10
Impact Subscore: 6.4/10
Exploitability Subscore: 8.6/10
Exploit range: Remote
Attack complexity: Medium
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

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

References:

http://seclists.org/oss-sec/2013/q1/778
https://github.com/markburns/ldoce


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top