Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




fulldisclosure logo Full Disclosure mailing list archives

Re: python <= 2.5.1 standart librairy multiples int overflow, heap overflow in imageop module
From: Andrew Farmer <andfarm () gmail com>
Date: Sun, 16 Sep 2007 00:24:04 -0700

On 15 Sep 07, at 16:53, Slythers Bro wrote:
The module imageop contains a lots of int overflow, which result in  
heap overflow, and maybe memory dump.
The files imageop.c and rbgimgmodule.c are examples.
<snip>

The real question: Does anybody actually use those modules? Most  
Python programs that I've seen that do image processing use other  
methods, like PIL or calling out to Imagemagick.

A bit of searching on Google Code Search didn't find me anything that  
actually used imageop or rgbimgmodule except test cases for those  
modules. rgbimgmodule isn't even part of a standard build of Python 2.5.

Remember that Python is *not* a managed language - there's no  
guarantees of safety inherent in the language. In fact, there are  
easier ways to execute native code: take a look at ctypes, for  
example. While I'd definitely classify the behavior you've identified  
as a bug, it's unlikely to be exploitable in the context of any  
programs which use it (if, indeed, there are any).

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]