| Article: |
Apache Web-Serving with Mac OS X: Part 2 | |
| Subject: | cgi outside of cgi-bin | |
| Date: | 2002-02-01 20:36:16 | |
| From: | griffitts | |
| What are the security issues concerning use of cgi outside the cgi-bin? Is it a question of corralling multiple users of one server or does it involve protection from outside hacks? | ||
Showing messages 1 through 1 of 1.
-
cgi outside of cgi-bin
2002-02-03 13:30:45 Morbus Iff |
[View]



From a user point of view, oftentimes, CGI scripts need to have special permissions on data files, so that the CGI script can read AND write to and from that file. These permissions often are 666 (which means "let everyone in the world read and write to this file"). If I hated you, for example, I could write a CGI script in my directory that could modify and mess with a data file in your directory, which of course, is not good.
Confining CGI scripts to a certain directory like /cgi-bin/ gives perk benefits - no one can view the contents of that directory from the web, for example, likewise making it harder to see secretive data contained within that directory. That protection doesn't happen if you can run scripts everywhere.