Lucene search

K
openvasThis script is Copyright (C) 2015 Greenbone Networks GmbHOPENVAS:1361412562310105257
HistoryApr 15, 2015 - 12:00 a.m.

MS15-034 HTTP.sys Remote Code Execution Vulnerability (remote check)

2015-04-1500:00:00
This script is Copyright (C) 2015 Greenbone Networks GmbH
plugins.openvas.org
715

0.976 High

EPSS

Percentile

100.0%

This host is missing an important security update according to Microsoft
Bulletin MS15-034.

###############################################################################
# OpenVAS Vulnerability Test
#
# MS15-034 HTTP.sys Remote Code Execution Vulnerability (remote check)
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2015 Greenbone Networks GmbH
#
# 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.
###############################################################################

CPE = 'cpe:/a:microsoft:iis';

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105257");
  script_cve_id("CVE-2015-1635");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_version("2019-12-20T10:24:46+0000");
  script_name("MS15-034 HTTP.sys Remote Code Execution Vulnerability (remote check)");
  script_tag(name:"last_modification", value:"2019-12-20 10:24:46 +0000 (Fri, 20 Dec 2019)");
  script_tag(name:"creation_date", value:"2015-04-15 18:02:08 +0200 (Wed, 15 Apr 2015)");
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("This script is Copyright (C) 2015 Greenbone Networks GmbH");
  script_dependencies("webmirror.nasl", "secpod_ms_iis_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("IIS/installed");

  script_xref(name:"URL", value:"https://support.microsoft.com/kb/3042553");
  script_xref(name:"URL", value:"https://technet.microsoft.com/library/security/MS15-034");
  script_xref(name:"URL", value:"http://pastebin.com/ypURDPc4");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to run arbitrary
  code in the context of the current user and to perform actions in the security context of the current user.");

  script_tag(name:"vuldetect", value:"Send a special crafted HTTP GET request and check the response");

  script_tag(name:"insight", value:"Flaw exists due to the HTTP protocol stack 'HTTP.sys' that is triggered
  when parsing HTTP requests.");

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

  script_tag(name:"summary", value:"This host is missing an important security update according to Microsoft
  Bulletin MS15-034.");

  script_tag(name:"affected", value:"- Microsoft Windows 8 x32/x64

  - Microsoft Windows 8.1 x32/x64

  - Microsoft Windows Server 2012

  - Microsoft Windows Server 2012 R2

  - Microsoft Windows Server 2008 x32/x64 Service Pack 2 and prior

  - Microsoft Windows 7 x32/x64 Service Pack 1 and prior");

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

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
# nb: This is expected to be here, we're using the same call later to add the port to the host header...
host = http_host_name( dont_add_port:TRUE );

known_urls = http_get_kb_file_extensions( port:port, host:host, ext:"*" );
default_urls = make_list( "/", "/welcome.png", "/iis-85.png", "/Iisstart.htm", "/resources/logo.png", "/favicon.ico" );

if( known_urls )
  files = make_list( default_urls, known_urls );
else
  files = default_urls;

checked = 0;

host = http_host_name( port:port );

foreach file ( files )
{
  req = 'GET ' + file + ' HTTP/1.1\r\n' +
        'Host: ' + host + '\r\n' +
        'Range: bytes=0-18446744073709551615\r\n' +
        '\r\n';
  buf = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );
  checked++;

  if( "Requested Range Not Satisfiable" >< buf )
  {
    security_message( port:port );
    exit( 0 );
  }

  if( "request has an invalid header name" >< buf ) exit( 0 );

  if( checked > 20 ) exit( 99 );

}

exit( 99 );