Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow - Nessus

High   Plugin ID: 15564

This page contains detailed information about the Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 15564
Name: Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow
Filename: maincfgret.nasl
Vulnerability Published: 2004-08-25
This Plugin Published: 2004-10-25
Last Modification Time: 2021-01-19
Plugin Version: 1.22
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: http_version.nasl
Required KB Items [?]: Settings/ParanoidReport

Vulnerability Information


Severity: High
Vulnerability Published: 2004-08-25
Patch Published: N/A
CVE [?]: CVE-2004-0798
CPE [?]: N/A

Synopsis

A web application on the remote host has a buffer overflow vulnerability.

Description

The '_maincfgret' CGI is installed on the remote web server. Some versions are vulnerable to a buffer overflow. Note that Nessus only checked for the presence of this CGI, and did not attempt to determine whether or not it is vulnerable.

Solution

Upgrade to WhatsUp Gold 8.03 HF 1 if necessary.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/http/ipswitch_wug_maincfgret
    [Ipswitch WhatsUp Gold 8.03 Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16787.rb
    [EDB-16787: IPSwitch WhatsUp Gold 8.03 - Remote Buffer Overflow (Metasploit)]

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.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


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

Go back to menu.

Plugin Source


This is the maincfgret.nasl nessus plugin source code. This script is Copyright (C) 2004-2021 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
 script_id(15564);
 script_version("1.22");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

 script_cve_id("CVE-2004-0798");
 script_bugtraq_id(11043);

 script_name(english:"Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow");
 script_summary(english:"Checks for the presence of /_maincfgret.cgi");

 script_set_attribute(attribute:"synopsis", value:
"A web application on the remote host has a buffer overflow
vulnerability.");
 script_set_attribute(attribute:"description", value:
"The '_maincfgret' CGI is installed on the remote web server. Some
versions are vulnerable to a buffer overflow. Note that Nessus only
checked for the presence of this CGI, and did not attempt to determine
whether or not it is vulnerable.");
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?10d9bfab");
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2004/Oct/32");
 script_set_attribute(attribute:"solution", value:"Upgrade to WhatsUp Gold 8.03 HF 1 if necessary.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 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:'Ipswitch WhatsUp Gold 8.03 Buffer Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

 script_set_attribute(attribute:"vuln_publication_date", value:"2004/08/25");
 script_set_attribute(attribute:"plugin_publication_date", value:"2004/10/25");

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

 script_category(ACT_GATHER_INFO);
 script_family(english:"CGI abuses");

 script_copyright(english:"This script is Copyright (C) 2004-2021 Tenable Network Security, Inc.");

 script_dependencie("http_version.nasl");
 script_require_keys("Settings/ParanoidReport");
 script_require_ports("Services/www", 80);

 exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

if (report_paranoia < 2) audit(AUDIT_PARANOID);

port = get_http_port(default:80);

if (is_cgi_installed3(item: "/_maincfgret.cgi", port:port))
{
  security_hole(port);
  exit(0);
}

if (is_cgi_installed3(item:"_maincfgret.cgi", port:port))
 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/maincfgret.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\maincfgret.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/maincfgret.nasl

Go back to menu.

How to Run


Here is how to run the Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow 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 CGI abuses plugin family.
  6. On the right side table select Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow plugin ID 15564.
  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 maincfgret.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - maincfgret.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 maincfgret.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 11004 - Ipswitch WhatsUp Gold Default Admin Account
  • 88738 - Ipswitch WhatsUp Gold < 16.4 Multiple Vulnerabilities
  • 76489 - Ipswitch IMail Server 11.x / 12.x < 12.3 Information Disclosure
  • 76490 - Ipswitch IMail Server 11.x / 12.x < 12.4.1.15 Multiple Vulnerabilities (Heartbleed)
  • 22314 - Ipswitch IMail Server SMTP Service Crafted RCPT String Remote Overflow
  • 25737 - Ipswitch IMail Server < 2006.21 Multiple Vulnerabilities
  • 15771 - Ipswitch IMail IMAP Service DELETE Command Remote Overflow
  • 18368 - Ipswitch IMail Web Calendaring Server GET Request Traversal Arbitrary File Access
  • 62186 - Ipswitch WhatsUp Gold Multiple Vulnerabilities
  • 88097 - Ipswitch WhatsUp Gold < 16.4 Multiple Vulnerabilities
  • 22903 - Novell eDirectory iMonitor HTTP Protocol Stack (httpstk) Host HTTP Header Remote Overflow
  • 76311 - Ericom AccessNow Server < 3.3.1.4095 Stack-Based Buffer Overflow
  • 11370 - Microsoft IIS fpcount.exe CGI Remote Overflow
  • 18123 - MailEnable HTTPMail Service Authorization Header Remote Overflow
  • 139377 - ManageEngine Desktop Central < 10 Build 10.0.533 Integer Overflow
  • 24910 - TestDirector (TD) for Mercury Quality Center SPIDERLib.Loader ActiveX Control (Spider90.ocx) ProgColor Property Overflow (2)
  • 24813 - Apache mod_jk Long URL Worker Map Stack Remote Overflow
  • 63563 - Nagios Core history.cgi Multiple Parameter Buffer Overflow
  • 29249 - HP OpenView Network Node Manager Multiple CGI Remote Overflows
  • 10564 - Microsoft IIS Phone Book Service /pbserver/pbserver.dll Remote Overflow
  • 17796 - PHP 4.x < 4.3.0 ZendEngine Integer Overflow
  • 60086 - PHP 5.4.x < 5.4.5 _php_stream_scandir Overflow
  • 69348 - PHP 5.5.x < 5.5.1 xml.c Buffer Overflow
  • 109579 - PHP 7.2.x < 7.2.5 Stack Buffer Overflow
  • 40552 - Spiceworks HTTP Response Accept Header Handling Overflow DoS
  • 110557 - VX Search HTTP POST Request Handling Remote Stack Buffer Overflow
  • 22309 - SAP DB / MaxDB WebDBM Client Database Name Remote Overflow
  • 25681 - SAP DB / MaxDB Web Server DBM_INTERN_TEST Event Buffer Overflow
  • 73499 - IBM WebSphere Portal Outside In Technology Multiple Overflows (PI07290)
  • 25117 - XAMPP ADOdb mssql_connect Remote Buffer Overflow

Version


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

Go back to menu.