Bug 161095

Summary: CAN-2005-1992 ruby arbitrary command execution on XMLRPC server
Product: Red Hat Enterprise Linux 4 Reporter: Josh Bressers <bressers>
Component: rubyAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: public=20050617,impact=moderate,source=debian,reported=20050620
Fixed In Version: RHSA-2005-543 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-05 13:31:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josh Bressers 2005-06-20 15:26:08 UTC
I ran across this issue in the Debian BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315064
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/5237

It seems that by executing an XMLRPC server in ruby in this manner:
s.add_handler(XMLRPC::iPIMethods("sample")

It becomes possible to execute any arbitrary commands within the XMLRPC
server.

Comment 7 Stefan Neufeind 2005-07-12 20:17:16 UTC
Attaching a note to the gentoo-advisory - I think it's related. Version in
FC3/FC4 are also affected - should we file a related bugs for those?

http://www.gentoo.org/security/en/glsa/glsa-200507-10.xml

Comment 8 Stefan Neufeind 2005-07-12 20:31:50 UTC
It seems Debian ships with a fix?

http://www.debian.org/security/2005/dsa-748

Comment 10 Red Hat Bugzilla 2005-08-05 13:31:35 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-543.html