Re: [users@httpd] Security APACHE, PHP and CGI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



By now I know that every hosted domain must have their system user, but the CGI security problem is the same: yopu can't restrict cgi programs to a folder (the home directory). Cgiwraps I've read about work assigning a user to the cgi program, this program run as user and not as nobody (user under Apache runs).

I suposse that there is only two ways: host without cgi or install a VPS

Thanks


----- Original Message ----- From: "Joshua Slive" <jslive@xxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Saturday, April 09, 2005 9:27 PM
Subject: Re: [users@httpd] Security APACHE, PHP and CGI


On Apr 9, 2005 2:44 PM, Gare <gare@xxxxxxxxxx> wrote:
That's why I'm looking for a solution, an easy and affordable solution. Of
course my subdomains with a share user can't use php nor cgi.
Then if a cgi program can access all over the server (files like
/etc/passwd ), how do enterprise that provide shared hosting with
cgi/php/mysql support?

They don't share userids.

Even if I create a system user for every subdomain webserver, CGI could
access important files in the server (/etc/shadow or /etc/passwd ... ), or
perhaps could mod_security avoid this action?

No, they will only have access to the files that you allow them to
access.  /etc/shadow certainly wouldn't be one of those.

Another idea is to look at cgiwrap, which has a somewhat more flexible
attitude towards permission changing.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux