GEN006080 - The Samba Web Administration Tool (SWAT) must be restricted to the local host or require SSL - TCP_Wrappers

Information

SWAT is a tool used to configure Samba. As it modifies Samba configuration, which can impact system security, it must be protected from unauthorized access. SWAT authentication may involve the root password, which must be protected by encryption when traversing the network.

Restricting access to the local host allows for the use of SSH TCP forwarding, if configured, or administration by a web browser on the local system.

Solution

Enable tcp_wrappers for the SWAT daemon.
# inetadm -m swat tcp_wrappers=true
OR
# inetadm -M tcp_wrappers=true
Relfresh the inetd daemon.
# svcadm refresh inetd

Configure the hosts.allow and hosts.deny files to limit access to SWAT to localhost.
Example:
# echo ALL: ALL >> /etc/hosts.deny
# echo swat: localhost >> /etc/hosts.allow

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_SOL_10_x86_V2R1_STIG.zip

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(12), CAT|II, CCI|CCI-000381, Rule-ID|SV-220113r505926_rule, STIG-ID|GEN006080, STIG-Legacy|SV-42313, STIG-Legacy|V-1026, Vuln-ID|V-220113

Plugin: Unix

Control ID: 203c9f30782100d03999ba02316187742b966ef91555ab5ed5c67f882f389c05