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

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

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_Y22M10_STIG.zip

Item Details

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

Plugin: Unix

Control ID: 2403d69d1645c83bd2747353d1eef7839c902967f8b7f1513317505439ccced2