Samba < 3.0.28 send_mailslot Function Remote Buffer Overflow

This script is Copyright (C) 2007-2014 Tenable Network Security, Inc.


Synopsis :

The remote Samba server may be affected by a buffer overflow
vulnerability.

Description :

According to its banner, the version of the Samba server on the remote
host is reportedly affected by a boundary error in 'nmbd' within the
'send_mailslot' function. Provided the 'domain logons' option is
enabled in 'smb.conf', an attacker can leverage this issue to produce
a stack-based buffer overflow using a 'SAMLOGON' domain logon packet
in which the username string is placed at an odd offset and is
followed by a long 'GETDC' string.

Note that Nessus has not actually tried to exploit this issue nor
verify whether the 'domain logons' option has been enabled on the
remote host.

See also :

http://secunia.com/secunia_research/2007-99/advisory/
http://www.securityfocus.com/archive/1/484818/30/0/threaded
http://us3.samba.org/samba/security/CVE-2007-6015.html

Solution :

Upgrade to Samba version 3.0.28 or later.

Risk factor :

High / CVSS Base Score : 9.3
(CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C)
CVSS Temporal Score : 7.3
(CVSS2#E:POC/RL:OF/RC:C)
Public Exploit Available : true

Family: Misc.

Nessus Plugin ID: 29253 ()

Bugtraq ID: 26791

CVE ID: CVE-2007-6015