Multiple Vendor libnsl Vulnerabilities

BID:148

Info

Multiple Vendor libnsl Vulnerabilities

Bugtraq ID: 148
Class: Boundary Condition Error
CVE:
Remote: Yes
Local: Yes
Published: Jul 01 1998 12:00AM
Updated: Jul 01 1998 12:00AM
Credit: These overruns were posted by George Clooney ([email protected]) on July 1, 1998. The actual vulnerability advisory posted was by RSI, and was written by Matt Conover and Mark Zielinski.
Vulnerable: Sun Solaris 2.5.1 _x86
Sun Solaris 2.5.1 _ppc
Sun Solaris 2.5.1
Sun Solaris 2.6_x86
Sun Solaris 2.6
Sun Solaris 2.5_x86
Sun Solaris 2.5
Sun Solaris 2.4_x86
Sun Solaris 2.4
Sun Solaris 2.3
Sun Solaris 2.2
IBM AIX 4.3.2
IBM AIX 4.3.1
IBM AIX 4.3
IBM AIX 4.2.1
IBM AIX 4.2
Not Vulnerable: Sun Solaris 7.0_x86
Sun Solaris 7.0

Discussion

Multiple Vendor libnsl Vulnerabilities

Several buffer overruns exist in the NSL (network services library) of Solaris 2.2, 2.3, 2.4, 2.5, 2.5.1 and 2.6. The potential exists for these buffer overruns being exploitable by an attacker, in order to gain access to a system, or obtain root on the system.

It should be noted, however, that exploits for these attacks have never been seen in the wild, nor is it clear they are exploitable with the would be attacker already having access to the NIS or NIS+ server on the network they are attacking -- at which point, they would be able to access any machine on the network already.

The vulnerable functions are: (taken from RSI advisory)
extract_secret () : Buffer overflows while copying data into a local buffer
getkeys_nis () : Buffer overflows if key value is larger then the buffer
getpublickey () : Calls getkeys_nis ()
getsecretkey () : Calls getkeys_nis ()

authdes_seccreate () : Calls getpublickey ()
rpc_broadcast_exp () : Buffer overflow if allowed to specify network protocol type
rpc_broadcast () : Calls rpc_broadcast_exp ()
clnt_create_timed () : Buffer overflow if allowed to specify network protocol type
host2netname () : Buffer overflow while specifying hostname.
getnetname () : Calls host2netname ()
clnt_create () : Calls clnt_create_timed ()
rpc_call () : Buffer overflow if allowed to specify network protocol type
authdes_pk_seccreate () : Calls getnetname ()

__nis_init_callback () : Calls getpublickey ()
__nis_core_lookup () : Buffer overflow while copying paramaters into a local buffer
nis_make_rpchandle () : Calls host2netname ()
nis_dump_r () : Calls nis_make_rpchandle ()
nis_dump () : Calls nis_dump_r ()
__nis_auth2princ () : Buffer overflow while specifying machine name
__nis_host2nis_server () : Buffer overflow while specifyinghostname
nis_name_of_r () : Buffer overflow while copying paramaters into a local buffer
nis_old_data_r () : Buffer overflow while copying paramaters into a local buffer
nis_list () : Calls __nis_core_lookup ()
nis_add () : Calls nis_nameops ()
nis_remove () : Calls nis_nameops ()
nis_modify () : Calls nis_nameops ()
nis_mkdir () : Calls nis_make_rpchandle ()
nis_rmdir () : Calls nis_make_rpchandle ()

Exploit / POC

Multiple Vendor libnsl Vulnerabilities

No exploits for this vulnerability exist. The actual viability of creating one is slim.

Solution / Fix

Multiple Vendor libnsl Vulnerabilities

Solution:
Patches are available from Sun for this vulnerability, as well as others, at http://sunsolve.sun.com


Sun Solaris 2.6
  • Sun 105401-14


Sun Solaris 2.4_x86

Sun Solaris 2.6_x86

Sun Solaris 2.5

Sun Solaris 2.3
  • Sun 101318-91
    sparc


Sun Solaris 2.5_x86

Sun Solaris 2.4

Sun Solaris 2.5.1 _x86

Sun Solaris 2.5.1

References

Multiple Vendor libnsl Vulnerabilities

References:

© 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