Microsoft IIS MDAC RDS (msadcs.dll) Arbitrary Remote Command Execution - Nessus

Critical   Plugin ID: 10357

This page contains detailed information about the Microsoft IIS MDAC RDS (msadcs.dll) Arbitrary Remote Command Execution Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 10357
Name: Microsoft IIS MDAC RDS (msadcs.dll) Arbitrary Remote Command Execution
Filename: msadcs_dll.nasl
Vulnerability Published: 1999-07-19
This Plugin Published: 2000-04-01
Last Modification Time: 2020-06-12
Plugin Version: 1.40
Plugin Type: remote
Plugin Family: Web Servers
Dependencies: find_service1.nasl, http_version.nasl, www_fingerprinting_hmap.nasl
Required KB Items [?]: Settings/ParanoidReport, www/iis

Vulnerability Information


Severity: Critical
Vulnerability Published: 1999-07-19
Patch Published: N/A
CVE [?]: CVE-1999-1011
CPE [?]: N/A

Synopsis

The remote web server is affected by a remote command execution vulnerability.

Description

The web server is probably susceptible to a common IIS vulnerability discovered by 'Rain Forest Puppy'. This vulnerability enables an attacker to execute arbitrary commands on the server with Administrator Privileges.

*** Nessus solely relied on the presence of the file /msadc/msadcs.dll *** so this might be a false positive

Solution

Upgrade to MDAC version 2.1 SP2 or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround: Delete the /msadc virtual directory in IIS.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Microsoft IIS MDAC RDS (msadcs.dll) Arbitrary Remote Command Execution vulnerability:

  1. Metasploit: exploit/windows/iis/msadc
    [MS99-025 Microsoft IIS MDAC msadcs.dll RDS Arbitrary Remote Command Execution]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the msadcs_dll.nasl nessus plugin source code. This script is Copyright (C) 2000-2020 Roelof Temmingh <[email protected]>

#
# Msadcs.dll locate.
#
# This plugin was written in NASL by RWT [email protected]
#

# Changes by Tenable:
# - Revised plugin title, output formatting (9/23/09)
# - Add in MSKB script_xref (8/28/17)


include("compat.inc");

if(description)
{
 script_id(10357);
 script_version ("1.40");

 script_cve_id("CVE-1999-1011");
 script_bugtraq_id(529);
 script_xref(name:"MSKB", value:"184375");
 script_xref(name:"MSFT", value:"MS98-004");
 script_xref(name:"MSFT", value:"MS99-025");

 script_name(english:"Microsoft IIS MDAC RDS (msadcs.dll) Arbitrary Remote Command Execution");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by a remote command execution 
vulnerability." );
 script_set_attribute(attribute:"description", value:
"The web server is probably susceptible to a common IIS vulnerability 
discovered by 'Rain Forest Puppy'. This vulnerability enables an 
attacker to execute arbitrary commands on the server with 
Administrator Privileges. 

*** Nessus solely relied on the presence of the file /msadc/msadcs.dll
*** so this might be a false positive" );
 script_set_attribute(attribute:"see_also", value:"http://support.microsoft.com/default.aspx?scid=kb;[LN];184375" );
 script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/1998/ms98-004" );
 script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/1999/ms99-025" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to MDAC version 2.1 SP2 or higher, as it has been reported to 
fix this vulnerability. It is also possible to correct the flaw by 
implementing the following workaround: Delete the /msadc virtual 
directory in IIS." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
 script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_set_attribute(attribute:"metasploit_name", value:'MS99-025 Microsoft IIS MDAC msadcs.dll RDS Arbitrary Remote Command Execution');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
 script_cwe_id(264);

 script_set_attribute(attribute:"plugin_publication_date", value: "2000/04/01");
 script_set_attribute(attribute:"vuln_publication_date", value: "1999/07/19");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");

script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 script_summary(english:"Determines the presence of msadcs.dll");
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2000-2020 Roelof Temmingh <[email protected]>");
 script_family(english:"Web Servers");
 script_dependencie("find_service1.nasl", "http_version.nasl", "www_fingerprinting_hmap.nasl");
 script_require_ports("Services/www", 80);
 script_require_keys("www/iis", "Settings/ParanoidReport");
 exit(0);
}

#
# The script code starts here
#


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

if ( report_paranoia < 2 )
 exit(0, "This script only runs in 'paranoid' mode as it is prone to false positive.");

port = get_http_port(default:80, embedded:TRUE);

b = get_http_banner(port: port);
if (! b) exit(1, "The HTTP banner on port "+port+" cannot be read.");
if ("IIS" >!< b) exit(0, "The web server on port "+port+" is not IIS.");

cgi = "/msadc/msadcs.dll";
res = is_cgi_installed_ka(item:cgi, port:port);
if(res)security_hole(port);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/msadcs_dll.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\msadcs_dll.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/msadcs_dll.nasl

Go back to menu.

How to Run


Here is how to run the Microsoft IIS MDAC RDS (msadcs.dll) Arbitrary Remote Command Execution as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Web Servers plugin family.
  6. On the right side table select Microsoft IIS MDAC RDS (msadcs.dll) Arbitrary Remote Command Execution plugin ID 10357.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl msadcs_dll.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a msadcs_dll.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - msadcs_dll.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state msadcs_dll.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: MSKB | Microsoft Knowledge Base: MSFT | Microsoft Security Bulletin:
  • MS98-004, MS99-025
CWE | Common Weakness Enumeration:
  • CWE-264 (Category) Permissions, Privileges, and Access Controls
See also: Similar and related Nessus plugins:
  • 11161 - Microsoft Data Access Components RDS Data Stub Remote Overflow
  • 64589 - Microsoft ASP.NET MS-DOS Device Name DoS (PCI-DSS check)
  • 64588 - Microsoft ASP.NET MS-DOS Device Name DoS
  • 153474 - Microsoft Open Management Infrastructure < 1.6.8.1 Multiple Vulnerabilities
  • 11923 - Microsoft FrontPage Server Extensions (fp30reg.dll) Debug Function Remote Overflow (MS03-051 / 813360)
  • 10497 - Microsoft FrontPage Extensions MS-DOS Device Request DoS
  • 10405 - Microsoft IIS FrontPage Server Extensions (FPSE) shtml.exe Path Disclosure
  • 99523 - Microsoft Windows Server 2003 IIS 6.0 WebDAV PROPFIND Request Handling RCE (EXPLODINGCAN)
  • 99281 - Microsoft Windows Server 2003 R2 IIS 6.0 WebDAV PROPFIND Request Handling RCE (EXPLODINGCAN)
  • 108808 - Microsoft IIS 7.0 Vulnerabilities (uncredentialed) (PCI/DSS)
  • 10116 - Microsoft IIS ISM.DLL HTR Request Remote Overflow
  • 10932 - Microsoft IIS .HTR ISAPI Filter Enabled
  • 11028 - Microsoft IIS .HTR Filter Multiple Overflows (MS02-028)
  • 31648 - Microsoft IIS webhits.dll Hit-Highlighting Authentication Bypass
  • 10685 - Microsoft IIS ISAPI Filter Multiple Vulnerabilities (MS01-044)
  • 11412 - Microsoft IIS WebDAV ntdll.dll Remote Overflow (MS03-007)
  • 11664 - Microsoft Media Services ISAPI nsiislog.dll Multiple Overflows
  • 153486 - Microsoft Open Management Infrastructure RCE (CVE-2021-38647)
  • 38808 - Microsoft IIS WebDAV Unicode Request Directory Security Bypass
  • 119777 - GPON ONT Home Gateway Router is vulnerable to authenticated remote command execution (CVE-2018-10562)
  • 10671 - MS01-026 / MS01-044: Microsoft IIS Remote Command Execution (uncredentialed check)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file msadcs_dll.nasl version 1.40. For more plugins, visit the Nessus Plugin Library.

Go back to menu.