VCLD-70-000019 - VAMI must set the encoding for all text Multipurpose Internet Mail Extensions (MIME) types to UTF-8 - rb

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. For example:

'.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',

Restart the service with the following command:

# vmon-cli --restart applmgmt

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_7-0_Y23M07_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-10, CAT|II, CCI|CCI-001310, Rule-ID|SV-256663r888511_rule, STIG-ID|VCLD-70-000019, Vuln-ID|V-256663

Plugin: Unix

Control ID: ad00e185481f211e9290b021040be857ae22ad1fbb587bea8c131259fb50c63b