1. Home
  2. Security Hardening
  3. DISA STIG VMware vSphere 6.7 VAMI-lighttpd V1R1
  4. VCLD-67-000028 – VAMI must set the encoding for all text mime types to UTF-8.

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

Details

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’,

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: System and Information Integrity.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles