AUSCERT External Security Bulletin Redistribution

                    ESB-2001.039 -- ISS Security Alert
              Remote Vulnerabilities in BIND versions 4 and 8
                              31 January 2001


        AusCERT Security Bulletin Summary

Product:                BIND
Vendor:                 ISC
Impact:                 Execute Arbitrary Code/Commands
                        Access Privileged Data
                        User Access
Access Required:        Remote

Ref:                    ESB-2001.037

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

Internet Security Systems Security Alert
January 29, 2001

Remote Vulnerabilities in BIND versions 4 and 8


ISS X-Force is aware of several vulnerabilities in current versions of
Internet Software Consortiums Berkeley Internet Name Domain (BIND). There
is a buffer overflow present in BIND version 8 that an attacker could use
to remotely execute arbitrary code. Version 4 of BIND contains three
vulnerabilities, a buffer overflow and a format string vulnerability, both
of which allow a remote attacker to execute arbitrary code, and a
vulnerability which can expose the environment variables of the BIND
server. BIND is the most popular implementation of the Domain Name Service
(DNS) protocol. DNS is the Internet protocol that converts host and domain
names into their corresponding IP addresses and vice-versa.  


ISC BIND 8 Buffer Overflow in Transaction Signature (TSIG) Handling Code:
BIND 8 contains a vulnerability that may allow a remote attacker to
compromise any server with a vulnerable version of BIND installed.  The
vulnerability is present in Transaction Signatures (TSIG) functionality.
Most current versions up to version 9.x are vulnerable.  It is not
necessary for the remote attacker to control an authoritative DNS server
to the target to exploit this vulnerability.  Both recursive and
non-recursive servers are vulnerable.

ISC BIND 4 Buffer Overflow in nslookupComplain():
A vulnerability exists in BIND 4 which under very specific circumstances
may allow remote attackers to compromise servers running vulnerable
versions of BIND 4.  A buffer overflow condition in the nslookupComplain()
function may be exploited to grant access to remote users.  The attacker
must have control of the targets authoritative nameserver to successfully
exploit this vulnerability.

ISC BIND 4 Input Validation Error in nslookupComplain():
The second vulnerability present in BIND 4 is present in the
nslookupComplain() function as well.  A user-supplied format string may be
manipulated to run arbitrary code.  The attacker must have control of the
targets authoritative nameserver to successfully exploit this

ISC BIND 4 Exposure of Environment Variables:
This vulnerability may allow a remote attacker to expose variables within
the BIND server. By sending a malformed query to vulnerable BIND servers,
a remote attacker can gain access to the program stack.

Additional limitations to successful exploitation of this vulnerability
include the use of a limited character set when constructing the overflow
string, as well as dynamic conditions such as the layout and allocation of
memory for the BIND process.

Affected Systems:

ISC BIND version 8:
8.2, 8.2.1
8.2.2 through 8.2.2-P7
8.2.3-T1A through 8.2.3-T9B
ISC Bind version 4:
4.9.3 through 4.9.7


It is recommended that all DNS administrators using BIND 4.9.x upgrade to
BIND 4.9.8 and those using BIND 8.2.x upgrade to BIND 8.2.3. These
upgrades may be found at:  ftp://ftp.isc.org/isc/BIND/src/.

DNS administrators should take precautions to limit the affects of
permissions on their DNS server installations.  The DNS server should
never be executed with super-user privileges, and should also be sandboxed
under a chroot environment.

Please refer to the following URL for information on the use of  chroot
in order to provide an additional layer of security for exposed services:

ISS SAFEsuite intrusion detection system, RealSecure, and network
security assessment product, Internet Scanner, will have signatures
available to detect these vulnerabilities in the next X-Press Updates.

Credits and References:

CERT Advisory CA-201-02 Multiple Vulnerabities in BIND
Network Associates Advisory
Internet Software Consortium
New BIND 4 and BIND 8 releases
BIND 9.1

About Internet Security Systems (ISS) 

Internet Security Systems (ISS) is a leading global provider of security
management solutions for the Internet. By providing industry-leading
SAFEsuite security software, remote managed security services, and
strategic consulting and education offerings, ISS is a trusted security
provider to its customers, protecting digital assets and ensuring safe and
uninterrupted e-business. ISS' security management solutions protect more
than 5,500 customers worldwide including 21 of the 25 largest U.S.
commercial banks, 10 of the largest telecommunications companies and over
35 government agencies. Founded in 1994, ISS is headquartered in Atlanta,
GA, with additional offices throughout North America and international
operations in Asia, Australia, Europe, Latin America and the Middle East.
For more information, visit the Internet Security Systems web site at
www.iss.net or call 888-901-7477.

Copyright (c) 2001 Internet Security Systems, Inc.

Permission is hereby granted for the redistribution of this Alert
electronically. It is not to be edited in any way without express consent
of the X-Force. If you wish to reprint the whole or any part of this Alert
in any other medium excluding electronic medium, please e-mail
xforce@iss.net for permission.


The information within this paper may change without notice. Use of this
information constitutes acceptance for use in an AS IS condition. There
are NO warranties with regard to this information. In no event shall the
author be liable for any damages whatsoever arising out of or in
connection with the use or spread of this information. Any use of this
information is at the user's own risk.

X-Force PGP Key available at: http://xforce.iss.net/sensitive.php as well
as on MIT's PGP key server and PGP.com's key server.

Please send suggestions, updates, and comments to: X-Force
mailto:xforce@iss.net of Internet Security Systems, Inc.

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

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 original authors 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 system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security

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

Version: 2.6.3i
Charset: noconv
Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key