GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Virtual Subhosting Security Issues

bullet Introduction
It is important to consider some of the security issues that relate to Virtual Subhosting. We recognize that in most cases it is likely that not only are you providing your clients with hosting service, but you are also designing their web content and writing their CGI scripts as well. So this discussion may not be applicable to your specific situation, but it is still an element to remember should you decide to expand the scope of your services in the future.

Because the Virtual Subhosts operate in the same Virtual Private Servers Environment, CGI scripts that are executed by any Virtual Subhost will inherit privileges to access any directory or file in your Virtual Private Servers directory hierarchy. For example, a malicious Virtual Subhosted client could write a simple script to remove all of the files on your Virtual Private Servers (not a "good thing"). Another script could send the contents of your "~/etc/passwd" file to a remote e-mail address where "weak" passwords could be decrypted. If your login password is susceptible to a dictionary crack, a subhosted client could effectively steal shell access away from you.

It is recommended that you do not offer full cgi-bin access to your Virtual Subhosted clients unless you have complete trust in them (even then, they may accidently cause damage to your Virtual Private Servers). We recommend one of the following alternatives:

  1. Provide stock CGI scripts in a directory you control
    Most web sites do not demand a great deal of custom CGI programming. It is likely that you could provide a library of "stock" CGI scripts which your subhosted clients could then use. A sample composition of such a library might include: a counter, a guestbook, and a generic form processor. You would store these scripts in a subdirectory of your cgi-bin directory (e.g. vhlib). You would then configure each of your Virtual Subhosts to use this cgi-bin directory by adding the following lines to their <VirtualHost> definition:

    ScriptAlias /cgi-bin/ /www/cgi-bin/vhlib/
    

  2. Configure the cgi-bin directory separate from the Virtual Subhosts' home directory
    Another alternative is to provide your subhosted clients with a cgi-bin that is not a subdirectory in their home directory. This would prohibit them from uploading and executing any arbitrary script. Instead, the subhosted client would e-mail you the script, you would review it, and then install it into their cgi-bin directory (which can be configured to be a subdirectory of your main cgi-bin directory). An example is shown below:

    ScriptAlias /cgi-bin/ /www/cgi-bin/SUBDIRECTORY/
    

    Where the subdirectory SUBDIRECTORY becomes the cgi-bin directory for the subhosted client (you may want to use the same subdirectory name for both the ~/www/vhosts and ~/www/cgi-bin to keep things neat and tidy).


Toll Free 1-866-GSP-4400 • 1-301-464-9363 • service@gsp.com
Copyright © 1994-2016 GSP Services, Inc.