Ipswitch IMail IMAP Service DELETE Command Remote Overflow - Nessus

Medium   Plugin ID: 15771

This page contains detailed information about the Ipswitch IMail IMAP Service DELETE Command 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: 15771
Name: Ipswitch IMail IMAP Service DELETE Command Remote Overflow
Filename: ipswitch_IMail_bo2.nasl
Vulnerability Published: 2004-11-12
This Plugin Published: 2004-11-19
Last Modification Time: 2018-11-15
Plugin Version: 1.16
Plugin Type: remote
Plugin Family: Windows
Dependencies: http_version.nasl

Vulnerability Information


Severity: Medium
Vulnerability Published: 2004-11-12
Patch Published: N/A
CVE [?]: CVE-2004-1520
CPE [?]: cpe:/a:ipswitch:imail

Synopsis

The remote mail server is affected by a buffer overflow vulnerability.

Description

The remote host is running a version of Ipswitch IMail that is older than version 8.14.0.

The remote version of this software is vulnerable to a buffer overflow when it processes the argument of the 'delete' command. An attacker may exploit this flaw to execute arbitrary code on the remote host.

Solution

Upgrade to IMail 8.14 or later, as this reportedly fixes the issue.

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 IMail IMAP Service DELETE Command Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/imap/mdaemon_cram_md5
    [Mdaemon 8.0.3 IMAPD CRAM-MD5 Authentication Overflow]
  2. Metasploit: exploit/windows/imap/imail_delete
    [IMail IMAP4D Delete Overflow]
  3. Exploit-DB: exploits/windows/remote/1151.pm
    [EDB-1151: MDaemon 8.0.3 - IMAPD CRAM-MD5 Authentication Overflow (Metasploit)]
  4. Exploit-DB: exploits/windows/remote/16479.rb
    [EDB-16479: IPSwitch IMail IMAP4D - Delete 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:L/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:4.6 (Medium)
Impact Subscore:6.4
Exploitability Subscore:3.9
CVSS Temporal Score:3.8 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:3.8 (Low)

Go back to menu.

Plugin Source


This is the ipswitch_IMail_bo2.nasl nessus plugin source code. This script is Copyright (C) 2004-2018 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
# 


include("compat.inc");

if(description)
{
 script_id(15771);
 script_version("1.16");

 script_cve_id("CVE-2004-1520");
 script_bugtraq_id(11675);
 
 script_name(english:"Ipswitch IMail IMAP Service DELETE Command Remote Overflow");
 script_summary(english:"Checks for version of IMail web interface");

 script_set_attribute(attribute:"synopsis", value:
"The remote mail server is affected by a buffer overflow vulnerability." );
 script_set_attribute(attribute:"description", value:
"The remote host is running a version of Ipswitch IMail that
is older than version 8.14.0.

The remote version of this software is vulnerable to a buffer overflow
when it processes the argument of the 'delete' command. An attacker
may exploit this flaw to execute arbitrary code on the remote host." );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2004/Nov/188" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to IMail 8.14 or later, as this reportedly fixes the issue." );
 script_set_cvss_base_vector("CVSS2#AV:L/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:'Mdaemon 8.0.3 IMAPD CRAM-MD5 Authentication Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"plugin_publication_date", value: "2004/11/19");
 script_set_attribute(attribute:"vuln_publication_date", value: "2004/11/12");
 script_cvs_date("Date: 2018/11/15 20:50:27");
 script_set_attribute(attribute:"plugin_type", value: "remote");
 script_set_attribute(attribute:"cpe",value:"cpe:/a:ipswitch:imail");
 script_end_attributes();
 
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2004-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
 script_family(english:"Windows");

 script_dependencie("http_version.nasl");
 script_require_ports("Services/www", 80);
 exit(0);
}

# The script code starts here

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

port = get_http_port(default:80);

banner = get_http_banner(port: port, exit_on_fail: 1);
serv = egrep(string: banner, pattern: "^Server:.*");
if(ereg(pattern:"^Server:.*Ipswitch-IMail/([1-7]\..*|(8\.(0[0-9]?[^0-9]|1[0-3][^0-9])))", string:serv))
   security_warning(port);

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

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

Go back to menu.

How to Run


Here is how to run the Ipswitch IMail IMAP Service DELETE Command 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 Windows plugin family.
  6. On the right side table select Ipswitch IMail IMAP Service DELETE Command Remote Overflow plugin ID 15771.
  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 ipswitch_IMail_bo2.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 25737 - Ipswitch IMail Server < 2006.21 Multiple Vulnerabilities
  • 62186 - Ipswitch WhatsUp Gold Multiple Vulnerabilities
  • 88097 - 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
  • 18368 - Ipswitch IMail Web Calendaring Server GET Request Traversal Arbitrary File Access
  • 88738 - Ipswitch WhatsUp Gold < 16.4 Multiple Vulnerabilities
  • 11004 - Ipswitch WhatsUp Gold Default Admin Account
  • 15564 - Ipswitch WhatsUp Gold _maincfgret.cgi Remote Overflow

Version


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

Go back to menu.