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]

[UNIX] XMail 'sendmail' Recipient Local Buffer Overflow

Subject: [UNIX] XMail 'sendmail' Recipient Local Buffer Overflow
Date: 17 Oct 2005 09:56:09 +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 

- - - - - - - - -



  XMail 'sendmail' Recipient Local Buffer Overflow
------------------------------------------------------------------------


SUMMARY

" <http://www.xmailserver.org/> XMail is an Internet and Intranet mail 
server featuring an SMTP server, POP3 server, finger server and multiple 
domains."

Local exploitation of a buffer overflow vulnerability in XMail, as 
distributed with multiple vendors' operating systems, allows local 
attackers to execute arbitrary code with elevated privileges.

DETAILS

Vulnerable Systems:
 * XMail version 1.21

Immune Systems:
 * XMail version 1.22

The vulnerability exists because of insufficient bounds checking on 
user-supplied data. Specifically, the AddressFromAtPtr function fails to 
check bounds on arguments passed from other functions, and as a result an 
exploitable stack overflow condition occurs when specifying the "-t" 
command line option. The "-t" command line option allows users to specify 
the recipient value in the text of the message on a line beginning with 
"To:". XMail passes the user-supplied value without bounds checking to 
AdressFromAtPtr and attempts to store the hostname portion of the e-mail 
address in a 256-byte buffer. Crafted e-mail addresses can overflow the 
buffer and overwrite stack process control data, resulting in local code 
execution with elevated privileges.

Successful exploitation will result in code execution with elevated 
privileges. XMail is distributed in RPM, DEB and source format. The RPM 
distribution installs the sendmail binary with setuid root privileges.

Exploitation of XMail installed from RPM will yield root. Other 
distribution formats install the sendmail binary as setgid mail.

Exploitation resulting in group mail privileges will allow an attacker to 
read all unencrypted mail stored locally in the system mail folders.

Vendor Status:
The vendor has released XMail 1.22 to address this issue which is 
available for download at:  <http://www.xmailserver.org/> 
http://www.xmailserver.org/

CVE Information:
 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2943> 
CAN-2005-2943

Disclosure Timeline:
10/12/2005 - Initial vendor notification
10/12/2005 - Initial vendor response
10/13/2005 - Coordinated public disclosure


ADDITIONAL INFORMATION

The information has been provided by  <mailto:labs-no-reply@idefense.com> 
iDEFENSE Labs.
The original article can be found at:  
<http://www.idefense.com/application/poi/display?id=321&type=vulnerabilities> 
http://www.idefense.com/application/poi/display?id=321&type=vulnerabilities



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


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>
  • [UNIX] XMail 'sendmail' Recipient Local Buffer Overflow, SecuriTeam <=