VCLD-80-000061 The vCenter VAMI service 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:

/var/lib/vmware/cap-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:

# systemctl restart cap-lighttpd

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_8-0_Y24M08_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-10, CAT|II, CCI|CCI-001310, Rule-ID|SV-259150r1003712_rule, STIG-ID|VCLD-80-000061, Vuln-ID|V-259150

Plugin: Unix

Control ID: 0b6bc3cb210a55ab5d813410887726c811e362079c26b8ba971f064cd5e74711