SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (E-mail Server)  >   Sendmail Vendors:   Sendmail Consortium
(NetBSD Issues Fix) Sendmail Buffer Overflow in Parsing Addresses May Let Remote or Local Users Execute Arbitrary Code With Root Privileges
SecurityTracker Alert ID:  1006481
SecurityTracker URL:  http://securitytracker.com/id/1006481
CVE Reference:   CVE-2003-0161   (Links to External Site)
Date:  Apr 4 2003
Impact:   Execution of arbitrary code via local system, Execution of arbitrary code via network, Root access via local system, Root access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 8.12.8 and prior versions
Description:   A buffer overflow vulnerability was reported in Sendmail in the address parsing code. A remote or local user could cause arbitrary code to be executed with root privileges.

The flaw reportedly resides in 'parseaddr.c' in a char to int variable conversion. Data received from untrusted sources, potentially including e-mail addresses or DNS domain names, that contain extended ASCII characters and that are longer than a certain size may be able to trigger the flaw and cause code to be executed.

The vendor is reporting this as a "critical security problem."

The vendor credits Michal Zalewski for reporting the flaw.

Impact:   A remote or local user could cause arbitrary code to be executed with root privileges.
Solution:   NetBSD has released a fix.

NetBSD-current:

Systems running NetBSD-current dated from before 2003-03-30 should be upgraded to NetBSD-current dated 2003-03-31 or later.

The following directories need to be updated from the netbsd-current CVS branch (aka HEAD):
gnu/dist/sendmail/sendmail

To update from CVS, re-build, and re-install sendmail:
# cd src
# cvs update -d -P gnu/dist/sendmail/sendmail
# cd gnu/usr.sbin/sendmail

# make USETOOLS=no cleandir dependall
# make USETOOLS=no install


NetBSD 1.6:

The binary distribution of NetBSD 1.6 is vulnerable. Systems running NetBSD 1.6 sources dated from before 2003-03-30 should be upgraded from NetBSD 1.6 sources dated 2003-03-31 or later.

NetBSD 1.6.1 will include the fix.

The following directories need to be updated from the netbsd-1-6 CVS branch:
gnu/dist/sendmail/sendmail

To update from CVS, re-build, and re-install sendmail:

# cd src
# cvs update -d -P -r netbsd-1-6 gnu/dist/sendmail/sendmail
# cd gnu/usr.sbin/sendmail

# make USETOOLS=no cleandir dependall
# make USETOOLS=no install


NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3:

The binary distribution of NetBSD 1.5.3 is vulnerable.

Systems running NetBSD 1.5, 1.5.1, 1.5.2, or 1.5.3 sources dated from before 2003-04-01 should be upgraded from NetBSD 1.5.* sources dated 2003-04-02 or later.

The following directories need to be updated from the netbsd-1-5 CVS branch:
gnu/dist/sendmail/sendmail

To update from CVS, re-build, and re-install sendmail:

# cd src
# cvs update -d -P -r netbsd-1-5 gnu/dist/sendmail/sendmail
# cd gnu/usr.sbin/sendmail

# make cleandir dependall
# make install

Vendor URL:  www.sendmail.org/8.12.9.html (Links to External Site)
Cause:   Boundary error
Underlying OS:  UNIX (NetBSD)
Underlying OS Comments:  1.5, 1.5.1, 1.5.2, 1.5.3, 1.6

Message History:   This archive entry is a follow-up to the message listed below.
Mar 29 2003 Sendmail Buffer Overflow in Parsing Addresses May Let Remote or Local Users Execute Arbitrary Code With Root Privileges



 Source Message Contents

Subject:  NetBSD Security Advisory 2003-009: sendmail buffer overrun in prescan() address parser




-----BEGIN PGP SIGNED MESSAGE-----


		 NetBSD Security Advisory 2003-009
		 =================================

Topic:		sendmail buffer overrun in prescan() address parser

Version:	NetBSD-current:	source prior to Mar 30, 2003
		NetBSD 1.6:	affected
		NetBSD-1.5.3:	affected
		NetBSD-1.5.2:	affected
		NetBSD-1.5.1:	affected
		NetBSD-1.5:	affected
		pkgsrc:		prior to sendmail-8.12.9

Severity:	Remote root compromise

Fixed:		NetBSD-current:		March 30, 2003
		NetBSD-1.6 branch:	March 30, 2003 (1.6.1 will include the fix)
		NetBSD-1.5 branch:	April 1, 2003 
		pkgsrc:		sendmail-8.12.9 corrects this issue


Abstract
========

- From the CERT advisory:

    There is a remotely exploitable vulnerability in sendmail that
    could allow an attacker to gain control of a vulnerable sendmail
    server. Address parsing code in sendmail does not adequately check
    the length of email addresses. An email message with a specially
    crafted address could trigger a stack overflow. This vulnerability
    was discovered by Michal Zalewski.

    This vulnerability is different than the one described in CA-2003-07.

    It is a different vulnerability than NetBSD SA2003-002.


Technical Details
=================

http://www.cert.org/advisories/CA-2003-12.html


Solutions and Workarounds
=========================


We advise sites running sendmail to upgrade as soon as possible.  If upgrading
is impossible at this time, we recommend you turn off the sendmail service.

To determine if sendmail is running on your system, issue the command:

        # /etc/rc.d/sendmail status

To stop currently running sendmail processes, issue the command:

        # /etc/rc.d/sendmail stop

To ensure sendmail does not start after the next reboot, issue the command:

	# echo "sendmail=NO" >>/etc/rc.conf.d/sendmail

To allow sendmail to start once upgraded, remove the sendmail=NO line
from the end of /etc/rc.conf.d/sendmail.


The following instructions describe how to upgrade your sendmail
binaries by updating your source tree and rebuilding and
installing a new version of sendmail.

* NetBSD-current:

	Systems running NetBSD-current dated from before 2003-03-30
	should be upgraded to NetBSD-current dated 2003-03-31 or later.

	The following directories need to be updated from the
	netbsd-current CVS branch (aka HEAD):
		gnu/dist/sendmail/sendmail

	To update from CVS, re-build, and re-install sendmail:
		# cd src
		# cvs update -d -P gnu/dist/sendmail/sendmail
		# cd gnu/usr.sbin/sendmail

		# make USETOOLS=no cleandir dependall
		# make USETOOLS=no install


* NetBSD 1.6:

	The binary distribution of NetBSD 1.6 is vulnerable.   

	Systems running NetBSD 1.6 sources dated from before
	2003-03-30 should be upgraded from NetBSD 1.6 sources dated
	2003-03-31 or later.

	NetBSD 1.6.1 will include the fix.

	The following directories need to be updated from the
	netbsd-1-6 CVS branch:
		gnu/dist/sendmail/sendmail

	To update from CVS, re-build, and re-install sendmail:

		# cd src
		# cvs update -d -P -r netbsd-1-6 gnu/dist/sendmail/sendmail
		# cd gnu/usr.sbin/sendmail

		# make USETOOLS=no cleandir dependall
		# make USETOOLS=no install




* NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3:

	The binary distribution of NetBSD 1.5.3 is vulnerable.   

	Systems running NetBSD 1.5, 1.5.1, 1.5.2, or 1.5.3 sources dated
	from before 2003-04-01 should be upgraded from NetBSD 1.5.*
	sources dated 2003-04-02 or later.

	The following directories need to be updated from the
	netbsd-1-5 CVS branch:
		gnu/dist/sendmail/sendmail

	To update from CVS, re-build, and re-install sendmail:

		# cd src
		# cvs update -d -P -r netbsd-1-5 gnu/dist/sendmail/sendmail
		# cd gnu/usr.sbin/sendmail

		# make cleandir dependall
		# make install



Thanks To
=========


Michal Zalewski and CERT for notification.

Andrew Brown for patches.


Revision History
================

	2003-04-04	Initial release


More Information
================

Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at 
  ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2003-009.txt.asc

Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/.


Copyright 2003, The NetBSD Foundation, Inc.  All Rights Reserved.
Redistribution permitted only in full, unmodified form.

$NetBSD: NetBSD-SA2003-009.txt,v 1.2 2003/04/04 05:52:33 david Exp $

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iQCVAwUBPo2tzz5Ru2/4N2IFAQGqCwP/VHFGvO5DKvScEw5xyRl995roy2ykfVLO
xU68gUlFvohn8a8cE5C5+xZqUZsv9Ce72f4QoGm/nAAb8CW7tUft6/kQ+DYmjPpX
sYQWOq3m/zcFEmiOzeVpq+KwT/+1vXByjRrBIZkKuXHTqzofaWDv0hvFCbq2d0gB
h2JQqTxRA1s=
=VjhU
-----END PGP SIGNATURE-----


 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2022, SecurityGlobal.net LLC