VCLD-67-000019 - VAMI must remove all mappings to unused scripts - cgi

Information

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.

Solution

Navigate to and open /opt/vmware/etc/lighttpd/lighttpd.conf.

Configure the 'cgi.assign' section to the following:

cgi.assign = (
'.pl' => '/usr/bin/perl',
'.cgi' => '/usr/bin/perl',
'.rb' => '/usr/bin/ruby',
'.erb' => '/usr/bin/eruby',
'.py' => '/usr/bin/python',
# 5
)

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_6-7_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000381, Rule-ID|SV-239727r679291_rule, STIG-ID|VCLD-67-000019, Vuln-ID|V-239727

Plugin: Unix

Control ID: 4252b88c2780c8deb879d1ee3cb2b02d63a98ab9a262e03b18505c3e0b149098