STIGUI
V-214282CAT II — Medium severitySV-214282r960963_rule

The Apache web server must allow mappings to unused and vulnerable scripts to be removed.

Rule version AS24-U2-000310 · STIG v2 · 2026-05-23

Discussion

Scripts allow server-side processing on behalf of the hosted application user or as processes needed in the implementation of hosted applications. Removing scripts not needed for application operation or deemed vulnerable helps to secure the web server.

To ensure scripts are not added to the web server and run maliciously, script mappings that are not needed or used by the web server for hosted application operation must be removed.

Check

Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file:

# apachectl -V | egrep -i 'httpd_root|server_config_file' -D HTTPD_ROOT="/etc/httpd" -D SERVER_CONFIG_FILE="conf/httpd.conf"

Note: The apachectl front end is the preferred method for locating the Apache httpd file. For some Linux distributions "apache2ctl -V" or "httpd -V" can also be used. Review "Script", "ScriptAlias" or "ScriptAliasMatch", or "ScriptInterpreterSource" directives.

Go into each directory and locate "cgi-bin" files.

If any scripts are present that are not needed for application operation, this is a finding.

If this is not documented and approved by the Information System Security Officer (ISSO), this is a finding.

Fix

Determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file:

# apachectl -V | egrep -i 'httpd_root|server_config_file' -D HTTPD_ROOT="/etc/httpd" -D SERVER_CONFIG_FILE="conf/httpd.conf"

Remove any scripts in "cgi-bin" directory if they are not needed for application operation.

Ensure this process is documented and approved by the ISSO.

Identifiers

Group ID
V-214282
Group title
SRG-APP-000141-WSR-000082
Rule ID
SV-214282r960963_rule
Check ID
C-15495r881473_chk
Fix ID
F-15493r881474_fix