vendor:
Samba
by:
optyx
7.2
CVSS
HIGH
Samba SWAT Symlink Vulnerability
264
CWE
Product Name: Samba
Affected Version From: Samba 2.0.7
Affected Version To: Samba 2.0.7
Patch Exists: YES
Related CWE: CVE-2001-0500
CPE: o:samba:samba
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux, Mac, Windows
2001
Samba SWAT Symlink Vulnerability
A vulnerability in Samba SWAT allows local users to leverage root access by taking advantage of poor programming in SWAT's logging facilities. SWAT logs all traffic to the web service to a file called /tmp/cgi.log, which does not have restrictive permissions set on it. Local users can symlink the file to any other file (which they have read access to) on the system, such as /etc/passwd.
Mitigation:
Restrict access to the SWAT service and ensure that the /tmp/cgi.log file has restrictive permissions set on it.