Lucene search

K
nessusThis script is Copyright (C) 2002-2018 Tenable Network Security, Inc.SAMBA_UNICODE_OVERFLOW.NASL
HistoryNov 25, 2002 - 12:00 a.m.

Samba Encrypted Password String Conversion Decryption Overflow

2002-11-2500:00:00
This script is Copyright (C) 2002-2018 Tenable Network Security, Inc.
www.tenable.com
82

The remote Samba server, according to its version number, is vulnerable to a bug in the length checking for encrypted password change requests from clients. A client could potentially send an encrypted password, which, when decrypted with the old hashed password could be used as a buffer overrun attack on the stack of smbd.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if(description)
{
 script_id(11168);
 script_version ("1.16");
 script_cve_id("CVE-2002-1318");
 script_bugtraq_id(6210);

 script_name(english: "Samba Encrypted Password String Conversion Decryption Overflow");
 
 script_set_attribute(attribute:"synopsis", value:
"Remote code can be executed on the remote server." );
 script_set_attribute(attribute:"description", value:
"The remote Samba server, according to its version number, is vulnerable
to a bug in the length checking for encrypted password change requests 
from clients. A client could potentially send an encrypted password, 
which, when decrypted with the old hashed password could be used as a
buffer overrun attack on the stack of smbd." );
 script_set_attribute(attribute:"solution", value:
"upgrade to Samba 2.2.7" );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Samba 2.2.2 - 2.2.6 nttrans Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

 script_set_attribute(attribute:"plugin_publication_date", value: "2002/11/25");
 script_set_attribute(attribute:"vuln_publication_date", value: "2002/11/20");
 script_cvs_date("Date: 2018/07/27 18:38:14");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:samba:samba");
script_end_attributes();
 
 script_summary(english: "checks samba version");
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2002-2018 Tenable Network Security, Inc.");
 script_family(english: "Gain a shell remotely");
 script_dependencie("smb_nativelanman.nasl");
 script_require_ports(139);
 script_require_keys("SMB/NativeLanManager");
 exit(0);
}

#
# The script code starts here
#

lanman = get_kb_item("SMB/NativeLanManager");
if("Samba" >< lanman)
{
 # Samba 2.2.2 to 2.2.6 is affected
 if(ereg(pattern:"Samba 2\.2\.[2-6][^0-9]*$",
 	 string:lanman))security_hole(139);
}
VendorProductVersionCPE
sambasambacpe:/a:samba:samba
Related for SAMBA_UNICODE_OVERFLOW.NASL