You are here: TWiki> Codev Web>CgiWrapAndSuExecSecurity (2002-05-05, MikeMannix)
Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

closed: moving to TWiki docs

Question

.There's a slight problem with the TWikiInstallationGuide, and the default file permissions.

If one's web server is using suEXEC or CGI-Wrap, cgi's will execute as the user who owns the web directory. If, further, that server runs the old-fashioned way and all users are in group user, then the group-write permissions sprinkled liberally throughout the installation represent a potentially very serious security problem. I simply did a chmod -R g-w on the appropriate directories, but I've been a sysadmin working with Apache for many years & know to be paranoid about this stuff. A newbie installing the (relatively easy) software is fairly likely to be unaware of this issue.

I admit it's a bit obscure, but it might be worth a mention in the docs or even a warning from 'testenv'.

  • TWiki version: 20011201
  • Web server: Stronghold/2.3 Apache/1.2.6 C2NetUS /2010
  • Server OS: SunOS 5.7 (probably)
  • Web browser: Mozilla 5.0
  • Client OS: Debian GNU/Linux 2.2r2

-- JbBell - 12 Mar 2002

Answer

Good point - see also SecureSetup for some thoughts on this. CobaltRaqInstall has pointers to issues with cgiwrap and a patch to fix path_info problems when doing aliases + cgiwrap on Apache.

I'd be interested in comments on WindowsInstallCookbook as well, from an Apache security standpoint.

-- RichardDonkin - 13 Mar 2002

Moved this into Codev as a DocRequest.

-- RichardDonkin - 31 Mar 2002

Topic revision: r4 - 2002-05-05 - 20:47:34 - MikeMannix
Codev.CgiWrapAndSuExecSecurity moved from Support.CgiWrapAndSuExecSecurityPotentialProblem on 2002-03-31 - 11:45 by RichardDonkin - put it back
 

Codev

share: Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon
Twiki, Inc.
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2010 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.