VirtualCatalog Commerce Application Discloses Script Source Code to Remote Users and Lets Remote Users Execute Certain Commands via the Web Server
SecurityTracker Alert ID: 1001707|
SecurityTracker URL: http://securitytracker.com/id/1001707
(Links to External Site)
Updated: Jun 12 2001|
Original Entry Date: Jun 8 2001
Disclosure of user information, Execution of arbitrary code via network|
Fix Available: Yes Vendor Confirmed: Yes |
Version(s): All versions appear to be affected|
Cgisecurity.com reported a vulnerability in Virtual Focus's VirtualCatalog shopping cart that allows a remote user to execute commands on the web server and obtain files from the web server, including the source code of the shopping cart cgi scripts.|
The vulnerability is reportedly due to the lack of validation checking on a template variable in CatalogMgr.pl. As a result, a remote user can execute commands on the web server with the privileges of the web server.
This vulnerability could allow a remote user to obtain the source code of the scripts using the following type of request:
(Note: Paths may vary)
It is reported that the vendor discovered additional vulnerabilities that are not described in this alert when the vendor was patching the reported vulnerability.
[Alert Modification: This was originally reported as a vulnerability in VirtualCart. However, the vulnerability resides in VirtualCatalog.]
A remote user can execute commands via the web server with the privileges of the web server. Using these commands, the remote user can obtain files from the web server, including the source code of the shopping cart scripts.|
The vendor has released a patch which is reportedly available at: http://www.cgisecurity.net/advisory/patch/VirtualCatalog.tar.gz|
Vendor URL: www.vcart.com/ (Links to External Site)
Access control error, Input validation error|
Linux (Any), UNIX (Any), Windows (NT), Windows (2000)|
Source Message Contents
Date: Thu, 7 Jun 2001 17:58:21 +0000 (GMT)|
Subject: cgisecurity.com Advisory #5
Well I had about 3 advisories I was working on but my HD died
and this was the only thing I could salvage. The vendor's patch
is also contained below in a url.
[ Cgi Security Advisory #5 ]
VirtualCart Shopping Cart
Script Effected: VirtualCart Shopping Cart
Price: $199.00 for a single user license
All versions appear to be effected
Unix, Linux, NT
The problem lies in a file called CatalogMgr.pl.
The template variable does no validation checking and due to this
remote command execution is possible as the uid of the webserver.
(Usually user www or nobody)
The following request listed below would allow grabbing of the scripts
(Note: Paths may vary)
The vendor has been contacted about this security issue.
Check the vendor webpage for futher updates or use the
vendor patch provided above towards the top of this advisory.
One quick solution to fix the remote command execution would be to put this
script into "Taint mode". This is done my modifying the path to perl at the
very top of this script. Simply change #!/usr/bin/perl to #!/usr/bin/perl -T.
It is also noted that the vendor found 3 other holes after we contacted them
and the patch above fixes those holes as well.
Published to the Public June 2001
Copyright May 2001 Cgisecurity.com