The vCenter VAMI service must restrict the ability of users to launch denial-of-service (DoS) attacks against other information systems or networks.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
|---|---|---|---|---|---|---|
| medium | V-259149 | SRG-APP-000246-WSR-000149 | VCLD-80-000060 | SV-259149r1003709_rule | 2024-07-11 | 2 |
Description
In UNIX and related computer operating systems, a file descriptor is an indicator used to access a file or other input/output resource, such as a pipe or network connection. File descriptors index into a per-process file descriptor table maintained by the kernel, which in turn indexes into a systemwide table of files opened by all processes, called the file table.
As a single-threaded server, Lighttpd must be limited in the number of file descriptors that can be allocated. This will prevent Lighttpd from being used in a form of DoS attack against the operating system.
ℹ️ Check
At the command prompt, run the following command:
# /opt/vmware/cap_lighttpd/sbin/lighttpd -p -f /var/lib/vmware/cap-lighttpd/lighttpd.conf 2>/dev/null|grep "server.max-fds"
Example result:
server.max-fds=2048
If "server.max-fds" is not set to 2048 or less, this is a finding.
Note: The command must be run from a bash shell and not from a shell generated by the "appliance shell". Use the "chsh" command to change the shell for the account to "/bin/bash". Refer to KB Article 2100508 for more details:
https://kb.vmware.com/s/article/2100508
✔️ Fix
Navigate to and open:
/var/lib/vmware/cap-lighttpd/lighttpd.conf
Add or reconfigure the following value:
server.max-fds = 2048
Restart the service with the following command:
# systemctl restart cap-lighttpd