W2H: Security considerations


Setting a user ID

To be able to give an access to the users own home directories, and to let them start their own programs under their accounts, it's necessary to change the real user ID of the current CGI program. The CGI process is owned by nobody and must be changed to the real user whose name is provided by http server in an environment variable REMOTE_USER (the server knows this name from the authentication procedure).

The changing of the real user ID is done by a special W2H program setuser. This program must be run with setuid set to root, and in this moment it becomes dangerous in the evil hands. Do not let this program wandering just around. Therefore, consider the following notes:

Access to user's documents

There are two antagonistic goals:
  1. to guarantee an access to all files depending only on their UNIX access rights
  2. to do it by means of the http server which normally recognizes only files in its own visible space, and then provides those files to anybody who asks
The W2H/GCG interface solves the problem in the following way:

Other security issues

Of course, there are other security aspects connected with any WWW application, including: These items are general and are neither specifically introduced, nor solved by W2H interface. More discussion about those topics can be found at World Wide Web Security pages at http://www-ns.rutgers.edu/www-security/.


Peter Ernst
Last modified: Mon Mar 12 16:04:27 2001