STIGUI
V-2228CAT II — Medium severitySV-36644r1_rule

All interactive programs must be placed in a designated directory with appropriate permissions.

Rule version WG400 W22 · STIG v1 · 2018-12-24

Discussion

CGI scripts represents one of the most common and exploitable means of compromising a web server. By definition, CGI are executable by the operating system of the host server. While access control is provided via the web service, the execution of CGI programs is not otherwise limited unless the SA or Web Manager takes specific measures. CGI programs can access and alter data files, launch other programs and use the network. CGI programs can be written in any available programming language. C, PERL, PHP, Javascript, VBScript and shell (sh, ksh, bash) are popular choices.

Check

To preclude access to the servers root directory, ensure the following directive is in the httpd.conf file. This entry will also stop users from setting up .htaccess files which can override security features configured in httpd.conf.

<DIRECTORY /[website root dir]> AllowOverride None </DIRECTORY>

If the AllowOverride None is not set, this is a finding.

Fix

Enter the statement above into httpd.conf file for all web site root directories.

Identifiers

Group ID
V-2228
Group title
WG400
Rule ID
SV-36644r1_rule
Check ID
C-35736r1_chk
Fix ID
F-30977r1_fix