Operating System:

Published:

05 March 2003

Protect yourself against future threats.

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

===========================================================================
             AUSCERT External Security Bulletin Redistribution

            ESB-2003.0147 -- NetBSD Security Advisory 2003-002
                  Malformed header Sendmail Vulnerability
                               05 March 2003

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

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:                sendmail
Vendor:                 NetBSD
Operating System:       NetBSD-current prior to 04/03/2003
                        NetBSD 1.6
                        NetBSD-1.5.3
                        NetBSD-1.5.2
                        NetBSD-1.5.1
                        NetBSD-1.5
Impact:                 Root Compromise
Access Required:        Remote

Ref:                    AA-2003.01
                        ESB-2003.0134
                        ESB-2003.0135

Comment: CVE Id: CAN-2002-1337

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

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


		 NetBSD Security Advisory 2003-002
		 =================================

Topic:		Malformed header Sendmail Vulnerability

Version:	NetBSD-current:	source prior to March 4, 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:		mail/sendmail, mail/sendmail811, and
				mail/sendmail88 are affected.

Severity:	Possible remote root compromise

Fixed:		NetBSD-current:		March 4, 2003
		NetBSD-1.6 branch:	March 4, 2003 (1.6.1 includes the fix)
		NetBSD-1.5 branch:	March 4, 2003
		pkgsrc:			mail/sendmail version 8.12.8
					and mail/sendmail811 version 8.11.6nb3
					fix this issue.  There is currently no
					fix for mail/sendmail88.


Abstract
========

A malformed email message may allow remote attackers to gain the privledge
of the sendmail daemon process.  This is usually root.

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

Internet Security Systems (ISS) has discovered a remotely exploitable
vulnerability in the mail transfer agent (MTA) sendmail.  The vulnerability
is message-oriented, which means that even sendmail daemons not directly
exposed to the internet can be compromised.

Further, no sendmail logs will indicate anything out of the ordinary in an
unpatched sendmail system.

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

We advise sites running sendmail to upgrade as soon as possible.  If upgrade
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, please 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-04
	should be upgraded to NetBSD-current dated 2003-03-04 or later.

	The following directories need to be updated from the
	netbsd-current CVS branch (aka HEAD):
		src/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
		# cd sendmail
		# make USETOOLS=no install


* NetBSD 1.6:

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

	NetBSD 1.6.1 will include the fix.

	The following directories need to be updated from the
	netbsd-1-6 CVS branch:
		src/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
                # cd sendmail
                # make USETOOLS=no install


* NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3:

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

	The following directories need to be updated from the
	netbsd-1-5 CVS branch:
		src/gnu/dist/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 USETOOLS=no cleandir dependall
                # cd sendmail
                # make USETOOLS=no install


Thanks To
=========

Andrew Brown for preparing the fixes for the in-tree sendmail.
Stoned Elipot for preparing the fixes for pkgsrc.

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

	2003-03-03	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-002.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.

$NetBSD: NetBSD-SA2003-002.txt,v 1.4 2003/03/04 03:34:36 groo Exp $

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

iQCVAwUBPmQ5dz5Ru2/4N2IFAQH6tgP/TJmQYxaGYMdt6vj3TFNauloy5XXAtK1w
GfD1F3qWZaOccJ4IznyuCTaa/4l+KHFNgkV5eYnUKG2c8Ofttckzjk3e0fqQVpQ5
/BQNM0xaz8opcMIwF8t9XXniwUsNaF5UzAExsV1BbrGI4fwwGd7nO+JsoAuQ/hBc
fuSZWmoTawE=
=9gib
- -----END PGP SIGNATURE-----

- --------------------------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.

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 use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.

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:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Teams).

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.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBPmYnfSh9+71yA2DNAQEGwwQAi1bD6ngVvTkddx/y52gqx8N6XqW9Bmlx
IWSQaOeUyaew2OALRf47O1zpCxvT3D/gcwnvBhsa8LIdMs/DYQWLNo/6X1t8Phhl
CeZD6RUMOd7EuHSZxJMFFr2MVVIHh6loUStsKsHWMFV1AnbYLHYO3L0flHFt+8OP
Lm3v6Wd/Y4Q=
=dYIQ
-----END PGP SIGNATURE-----