SV-280947r1165196_rule
V-280947
SRG-OS-000095-GPOS-00049
RHEL-10-200050
CAT II
10
Configure RHEL 10 so that TFTP operates in secure mode if installed.
If TFTP server is not required, remove it with the following command:
$ sudo dnf -y remove tftp-server
Configure the TFTP daemon to operate in secure mode with the following command:
$ sudo systemctl edit tftp.service
In the editor, enter:
[Service]
ExecStart=/usr/sbin/in.tftpd -s /var/lib/tftpboot
After making changes, reload the systemd daemon and restart the TFTP service as follows:
$ sudo systemctl daemon-reload
$ sudo systemctl restart tftp.service
Note: If TFTP is not required, it must not be installed. If TFTP is not installed, this rule is not applicable.
Verify RHEL 10 is configured so that TFTP operates in secure mode if installed.
Determine if TFTP server is installed with the following command:
$ sudo dnf list --installed | grep tftp-server
tftp-server.x86_64 5.2-48.el10 @rhel-10-for-x86_64-appstream-rpms
If the TFTP server package is installed and is not required, or if it is not documented with the ISSM, this is a finding.
Verify the TFTP daemon, if tftp.server is installed, is configured to operate in secure mode with the following command:
$ grep -i execstart /usr/lib/systemd/system/tftp.service
ExecStart=/usr/sbin/in.tftpd -s /var/lib/tftpboot
Note: The "-s" option ensures the TFTP server only serves files from the specified directory, which is a security measure to prevent unauthorized access to other parts of the file system.
If the "-s" option is not present in the "ExecStart" line, or if the line is missing, this is a finding.
V-280947
False
RHEL-10-200050
Note: If TFTP is not required, it must not be installed. If TFTP is not installed, this rule is not applicable.
Verify RHEL 10 is configured so that TFTP operates in secure mode if installed.
Determine if TFTP server is installed with the following command:
$ sudo dnf list --installed | grep tftp-server
tftp-server.x86_64 5.2-48.el10 @rhel-10-for-x86_64-appstream-rpms
If the TFTP server package is installed and is not required, or if it is not documented with the ISSM, this is a finding.
Verify the TFTP daemon, if tftp.server is installed, is configured to operate in secure mode with the following command:
$ grep -i execstart /usr/lib/systemd/system/tftp.service
ExecStart=/usr/sbin/in.tftpd -s /var/lib/tftpboot
Note: The "-s" option ensures the TFTP server only serves files from the specified directory, which is a security measure to prevent unauthorized access to other parts of the file system.
If the "-s" option is not present in the "ExecStart" line, or if the line is missing, this is a finding.
M
5733