Netscape Servers Suite Heap Buffer Overflow Vulnerability

BID:1865

Info

Netscape Servers Suite Heap Buffer Overflow Vulnerability

Bugtraq ID: 1865
Class: Boundary Condition Error
CVE:
Remote: Yes
Local: Yes
Published: Oct 31 2000 12:00AM
Updated: Oct 31 2000 12:00AM
Credit: This vulnerability was found by Emiliano Kargieman and Agustin Kato Azubel from Core SDI S.A. and posted to the Bugtraq mailing list on October 31, 2000.
Vulnerable: Netscape Directory Server 4.12
- Microsoft Windows NT 4.0 SP6
- Microsoft Windows NT 4.0 SP5
- Microsoft Windows NT 4.0 SP4
- Microsoft Windows NT 4.0 SP3
- Microsoft Windows NT 4.0 SP2
- Microsoft Windows NT 4.0 SP1
- Microsoft Windows NT 4.0
Netscape Certificate Server 4.2
- Microsoft Windows NT 4.0 SP6
- Microsoft Windows NT 4.0 SP5
- Microsoft Windows NT 4.0 SP4
- Microsoft Windows NT 4.0 SP3
- Microsoft Windows NT 4.0 SP2
- Microsoft Windows NT 4.0 SP1
- Microsoft Windows NT 4.0
Not Vulnerable:

Discussion

Netscape Servers Suite Heap Buffer Overflow Vulnerability

An exploitable heap buffer overflow vulnerability was discovered in the Netscape Directory Server product. The Netscape Certificate Management System has also several server components that share the problem. Vulnerable systems allow the execution of arbitrary code as the user running the services.

The Netscape Directory Server 4.12 provides a Web to LDAP gateway, by means of the Directory Services Gateway (DSGW) web server. No authentication credentails are required from the client to access DSGW. The same service is installed and used as part of the Certificate Management System (Netscape/iPlanet CMS 4.2) and in this case it listens on a tcp port choosen during the installation process (24326/tcp in this example).


A request with an URI as follows:

http://server:24326/dsgw/bin/search?context=<1011 'a' chars>

will overflow a buffer located in the heap.

This buffer is allocated at 404501 with a call to an internal function that ends up calling MSVCRT!malloc. The buffer is allocated with a fixed size of 1024 bytes.

T hen at 40455B a call to sprintf is made like this:

sprintf(pFixedBuffer, "%s$$LANGDIR/%s.conf", "../context/", userbuff);

since sprintf doesn't do any bounds checking, the buffer can be overflowed depending on the size of 'userbuff' which is the argument the user specifies to the 'context=' parameter when calling the vulnerable program. A string of 999 bytes is enough to overflow the 'pFixedBuffer' by 1 byte and cause an exception.

Due to the nature of the data overwritten, this vulnerability could be exploited, being possible to execute arbitrary machine code.

The same problem seems to be present in almost all the binaries (12) in the Netscape\Server4\dsgw\bin directory (except for tutor).

Exploit / POC

Netscape Servers Suite Heap Buffer Overflow Vulnerability

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report