I'd like to enhance security of my multi-user webserver.
Every user has an Apache VirtualHost and a directory in /home/$USERNAME and can place HTML, PHP and CGI scripts there.
The problem: CGI scripts run under the user apache. This way a user can create a CGI-script
- Code: Select all
#/usr/bin/perl
print "Content-type: text/plain\n\n";
print `cat /home/$OTHERUSER/secret.file;
Apache must have access to "secret.file", perhaps it is a php include containing database password.
I cannot find a solution for this security problem. Can grsecurity help me in this case?