>Number: 4750 >Category: config >Synopsis: Option -ExecCGI doesn't work. >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jul 22 02:30:01 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.6 >Environment: Redhat Linux 6.0 >Description: Here is my web server's directory structure.
/home/httpd/ibbs ; document root /home/httpd/ibbs/script ; .php3 files here /home/httpd/ibbs/images ; .gif, .jpg files here /home/httpd/ibbs/fileupload ; uploaded files are stored here I want to restrict somebody not to execute any CGI/PHP3 files in the "fileupload" directory. So, I have modified httpd.conf as follows; --------------------------------------------------------- # iBBS Linux <VirtualHost 192.168.1.32> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/httpd/ibbs ServerName ibbsl ErrorLog logs/ibbsl-error_log CustomLog logs/ibbsl-access_log common </VirtualHost> <Directory "/home/httpd/ibbs"> Options FollowSymLinks Includes AllowOverride None Order allow,deny Allow from all </Directory> <Directory "/home/httpd/ibbs/fileupload"> Options -Indexes -ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> --------------------------------------------------------- But test.php3 in the "fileupload" directory is always executed. Of course I didn't forgot restarting the httpd daemon. (I am not a novice in apache web server.) I think -ExecCGI option is not working in my environment. This problem is concerned to security. >How-To-Repeat: You can make the same thing at any time you want. >Fix: I think you know better. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]