Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[NEWS] Python Arbitrary Code Execution Through SimpleXMLRPCServer

Subject: [NEWS] Python Arbitrary Code Execution Through SimpleXMLRPCServer
Date: 17 Feb 2005 16:49:38 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  Python Arbitrary Code Execution Through SimpleXMLRPCServer
------------------------------------------------------------------------


SUMMARY

Python is "an interpreted, interactive, object-oriented programming 
language. Python combines remarkable power with very clear syntax. It has 
modules, classes, exceptions, very high level dynamic data types, and 
dynamic typing. There are interfaces to many system calls and libraries, 
as well as to various windowing systems (X11, Motif, Tk, Mac, MFC). New 
built-in modules are easily written in C or C++. Python is also usable as 
an extension language for applications that need a programmable 
interface".

A vulnerability in the way SimpleXMLRPCServer has implemented its 
register_instance() function allows remote attacker to read and/or modify 
global values used by the Python program.

DETAILS

Vulnerable Systems:
 * dev-lang/python version 2.3.4 and prior

Immune Systems:
 * dev-lang/python version 2.2.3-r6 or newer

Description
Graham Dumpleton discovered that XML-RPC servers making use of the 
SimpleXMLRPCServer library, which utilizes the register_instance() method 
to register an object without a _dispatch() method, are vulnerable to a 
flaw allowing to read or modify globals of the associated module.

A remote attacker may be able to exploit the flaw in such XML-RPC servers 
to execute arbitrary code on the server host with the rights of the 
XML-RPC server.

Solution
Python users that don't make use of any SimpleXMLRPCServer-based XML-RPC 
servers, or making use of servers using only the register_function() 
method are not affected.

It is highly recommended to upgrade to a newer version as well.


ADDITIONAL INFORMATION

The information has been provided by  <mailto:koon@gentoo.org> Thierry 
Carrez.

Python PSF-2005-001  <http://www.python.org/security/PSF-2005-001/> 
http://www.python.org/security/PSF-2005-001/



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [NEWS] Python Arbitrary Code Execution Through SimpleXMLRPCServer, SecuriTeam <=