VCLD-67-000028 - VAMI must set the encoding for all text mime types to UTF-8.

Information

Invalid user input occurs when a user inserts data or characters into a hosted application's data entry field and the hosted application is unprepared to process that data. This results in unanticipated application behavior, potentially leading to an application compromise. Invalid user input is one of the primary methods employed when attempting to compromise an application.

An attacker can also enter Unicode into hosted applications in an effort to break out of the document home or root home directory or to bypass security checks.

Solution

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

Navigate to the 'mimetype.assign' block.

Replace all the mappings whose assigned type is 'text/*' with mappings for UTF-8 encoding, as follows:

'.css' => 'text/css; charset=utf-8',
'.html' => 'text/html; charset=utf-8',
'.htm' => 'text/html; charset=utf-8',
'.js' => 'text/javascript; charset=utf-8',
'.asc' => 'text/plain; charset=utf-8',
'.c' => 'text/plain; charset=utf-8',
'.cpp' => 'text/plain; charset=utf-8',
'.log' => 'text/plain; charset=utf-8',
'.conf' => 'text/plain; charset=utf-8',
'.text' => 'text/plain; charset=utf-8',
'.txt' => 'text/plain; charset=utf-8',
'.spec' => 'text/plain; charset=utf-8',
'.dtd' => 'text/xml; charset=utf-8',
'.xml' => 'text/xml; charset=utf-8',

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-001310, Rule-ID|SV-239735r816819_rule, STIG-ID|VCLD-67-000028, Vuln-ID|V-239735

Plugin: Unix

Control ID: b7f74f104f488a02da58a7f71bbd02a7f405af726efdf8c1111f1ddcc134a544