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:




Vulnerability Development mailing list archives

Re: Buffer overflow in procmail [suid!]
From: Adam Prato <sirsyko () MERGIOO ISHIBOO COM>
Date: Thu, 10 Aug 2000 15:34:40 -0400

On Thu, Aug 10, 2000 at 12:19:25PM -0300, Aaron Campbell wrote:
On Thu, 10 Aug 2000, Tobias von Koch wrote:

I think I've found a buffer overflow in procmail from Redhat 6.2 (v3.14
1999/11/22, others not tested).

[snip]

$ /usr/bin/procmail x=`perl -e "print 1x2054"`
 <Ctrl>-D
Segmentation fault

You can get root privileges (with some code) now....

The overflow occurs at the following call in asenvcpy() (in misc.c):

      strcpy((char*)(sgetcp=buf2),++src);

Notice right before that is a call to setids(). So procmail drops its
privileges before the overflow occurs.

But yikes, what a mess of code to read. Why is the source like this? Is it
optimized for speed of compilation or something?

cant reproduce this on *bsd either.

You can get root privileges (with some code) now....

did you actually try?

<ss>


  By Date           By Thread  

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