Lucene search
K

SMB Registry : SQL7 Patches

🗓️ 03 Nov 2005 00:00:00Reported by This script is Copyright (C) 2001 Intranode <[email protected]>Type 
openvas
 openvas
🔗 plugins.openvas.org👁 24 Views

SMB Registry : SQL7 Patches vulnerability to SQL abuse described in technet article Q256052. Allows attacker to execute SQL queries and gain elevated privileges

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2002-0056
21 Feb 200205:00
cve
CVE
CVE-2002-0642
2 Apr 200305:00
cve
Cvelist
CVE-2002-0056
21 Feb 200205:00
cvelist
Cvelist
CVE-2002-0642
2 Apr 200305:00
cvelist
NVD
CVE-2002-0056
8 Mar 200205:00
nvd
NVD
CVE-2002-0642
23 Jul 200204:00
nvd
OpenVAS
Microsoft SQL Server SQL Abuse Vulnerability (Q256052)
3 Nov 200500:00
openvas
OpenVAS
Microsoft SQL (MSSQL) Server 6, 7, 2000 Multiple Vulnerabilities
26 Mar 200600:00
openvas
securityvulns
Security Bulletin MS02-034: Cumulative Patch for SQL Server &#40;Q316333&#41;
11 Jul 200200:00
securityvulns
CERT
Microsoft SQL Server contains buffer overflows in openrowset and opendatasource macros
28 Mar 200200:00
cert
Rows per page
# OpenVAS Vulnerability Test
# $Id: smb_mssql7.nasl 6056 2017-05-02 09:02:50Z teissa $
# Description: SMB Registry : SQL7 Patches
#
# Authors:
# Intranode <[email protected]>
# Script audit and contributions from Carmichael Security <http://www.carmichaelsecurity.com>
# Erik Anderson <[email protected]>
# Added BugtraqID and CAN
#
# Copyright:
# Copyright (C) 2001 Intranode <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#

tag_summary = "The remote SQL server seems to be vulnerable to the
SQL abuse vulnerability described in technet article
Q256052. This problem allows an attacker who has to ability
to execute SQL queries on this host to gain elevated privileges.";

tag_solution = "http://support.microsoft.com/default.aspx?scid=kb;en-us;256052
Reference : http://online.securityfocus.com/archive/1/285915
Reference : http://online.securityfocus.com/advisories/4308";

# Should also cover BID:4135/CVE-2002-0056

if(description)
{
 script_id(10642);
 script_version("$Revision: 6056 $");
 script_tag(name:"last_modification", value:"$Date: 2017-05-02 11:02:50 +0200 (Tue, 02 May 2017) $");
 script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
 script_bugtraq_id(5205);
 script_tag(name:"cvss_base", value:"7.2");
 script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:C/I:C/A:C");
 script_cve_id("CVE-2002-0642");
 script_xref(name:"IAVA", value:"2002-B-0004");
 name = "SMB Registry : SQL7 Patches";
 
 
 script_name(name);
 

 summary = "Determines if a key exists and is set";
 
 script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"registry");
 
 script_copyright("This script is Copyright (C) 2001 Intranode <[email protected]>");
 family = "Windows";

 script_family(family);
 
 script_dependencies("secpod_reg_enum.nasl");
 script_require_keys("SMB/transport", "SMB/name", "SMB/login", "SMB/password", "SMB/registry_access");
 script_mandatory_keys("SMB/WindowsVersion");
 script_require_ports(139, 445);
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("smb_nt.inc");

port = get_kb_item("SMB/transport");
if(!port)port = 139;



#---------------------------------------------------------------------#
# Here is our main()                                                  #
#---------------------------------------------------------------------#





function check_key(key)
{
 item = "AllowInProcess";
 value = registry_get_dword(key:key, item:item);
 if(value != NULL && strlen(value) == 4) 
 {
   item = "DisallowAdHocAccess";
   value = registry_get_dword(key:key, item:item);
   if((strlen(value)) == 0)
   {
     return(1);
   }
   else if(ord(value[0]) == 0)return(1);
 }
 return(0);
}


a = check_key(key:"SOFTWARE\Microsoft\MSSQLServer\Providers\MSDAORA");
if(a){security_message(port);exit(0);}
b = check_key(key:"SOFTWARE\Microsoft\MSSQLServer\Providers\MSDASQL");
if(b){security_message(port);exit(0);}
c = check_key(key:"SOFTWARE\Microsoft\MSSQLServerProviders\SQLOLEDB");
if(c){security_message(port);exit(0);}
d = check_key(key:"SOFTWARE\Microsoft\MSSQLServerProviders\Microsoft.Jet.OLEDB.4.0");
if(d){security_message(port);exit(0);}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation