VCLD-80-000101 The vCenter VAMI service must protect against MIME sniffing.

Information

MIME sniffing was, and still is, a technique used by some web browsers to examine the content of a particular asset. This is done for the purpose of determining an asset's file format. This technique is useful in the event that there is not enough metadata information present for a particular asset, thus leaving the possibility that the browser interprets the asset incorrectly.

Although MIME sniffing can be useful to determine an asset's correct file format, it can also cause a security vulnerability. This vulnerability can be quite dangerous both for site owners as well as site visitors. This is because an attacker can leverage MIME sniffing to send an XSS (Cross Site Scripting) attack.

Solution

Navigate to and open:

/opt/vmware/etc/lighttpd/applmgmt-lighttpd.conf

If header "X-Content-Type-Options" is not present, add the following line to the end of the file:

setenv.add-response-header += ("X-Content-Type-Options" => "nosniff")

If header "X-Content-Type-Options" is present and not set to "nosniff", update the value as shown below:

"X-Content-Type-Options" => "nosniff",

Note: The last line in the parameter does not need a trailing comma if part of a multi-line configuration.

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: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-259159r1003736_rule, STIG-ID|VCLD-80-000101, Vuln-ID|V-259159

Plugin: Unix

Control ID: cdb60bd331a0b03355edcfc6bd0eb023bb4bb66ec874ef1cdca8613b9fe0eecd