Executive Summary

Summary
Title samba remote file append/creation problem
Informations
Name DSA-065 First vendor Publication 2001-06-23
Vendor Debian Last vendor Modification 2001-06-23
Severity (Vendor) N/A Revision 1

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:C/I:C/A:C)
Cvss Base Score 10 Attack Range Network
Cvss Impact Score 10 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Michal Zalewski discovered that samba does not properly validate NetBIOS names from remote machines.

By itself that is not a problem, except if Samba is configure to write log-files to a file that includes the NetBIOS name of the remote side by using the `%m' macro in the `log file' command. In that case an attacker could use a NetBIOS name like '../tmp/evil'. If the log-file was set to "/var/log/samba/%s" samba would them write to /var/tmp/evil.

Since the NetBIOS name is limited to 15 characters and the `log file' command could have an extension to the filename the results of this are limited. However if the attacker is also able to create symbolic links on the samba server he could trick samba into appending any data he wants to all files on the filesystem which samba can write to.

The Debian GNU/Linux packaged version of samba has a safe configuration and is not vulnerable.

As temporary workaround for systems that are vulnerable change all occurrences of the `%m' macro in smb.conf to `%l' and restart samba.

This has been fixed in version 2.0.7-3.4, and we recommend that up upgrade your samba package immediately.

wget url will fetch the file for you dpkg -i file.deb will install the referenced file.

Debian GNU/Linux 2.2 alias potato

Original Source

Url : http://www.debian.org/security/2001/dsa-065

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 2
Application 6

OpenVAS Exploits

Date Description
2008-01-17 Name : Debian Security Advisory DSA 065-1 (samba)
File : nvt/deb_065_1.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
656 Samba NETBIOS Name Traversal Arbitrary Remote File Creation

This host is running the Samba software. Samba is a free application that provides file and print services to SMB/CIFS clients. This software is vulnerable to an arbitrary file creation attack. A potential intruder can use this to overwrite files and create a denial of service condition or in conjunction with other vulnerabilities to gain access to this host.

Nessus® Vulnerability Scanner

Date Description
2004-09-29 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-065.nasl - Type : ACT_GATHER_INFO
2004-07-31 Name : The remote Mandrake Linux host is missing one or more security updates.
File : mandrake_MDKSA-2001-062.nasl - Type : ACT_GATHER_INFO
2001-10-17 Name : Arbitrary files may be overwritten on the remote server.
File : samba_arbitrary_file_creation.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:25:26
  • Multiple Updates