UoW imapd (UW-IMAP) Multiple Command Remote Overflows (2) - Nessus

Critical   Plugin ID: 10374

This page contains detailed information about the UoW imapd (UW-IMAP) Multiple Command Remote Overflows (2) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 10374
Name: UoW imapd (UW-IMAP) Multiple Command Remote Overflows (2)
Filename: uw_imap_overflow_two.nasl
Vulnerability Published: 2000-04-16
This Plugin Published: 2000-04-18
Last Modification Time: 2018-08-06
Plugin Version: 1.28
Plugin Type: remote
Plugin Family: Gain a shell remotely
Dependencies: find_service1.nasl, logins.nasl
Required KB Items [?]: imap/login, imap/password
Excluded KB Items: imap/false_imap

Vulnerability Information


Severity: Critical
Vulnerability Published: 2000-04-16
Patch Published: N/A
CVE [?]: CVE-2000-0284
CPE [?]: N/A

Synopsis

The remote host has an application that is affected by multiple issues.

Description

There is a buffer overflow in the remote imap server which allows an authenticated user to obtain a remote shell.

Solution

Upgrade your imap server or use another one.

Public Exploits


Target Network Port(s): 143
Target Asset(s): Services/imap
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 UoW imapd (UW-IMAP) Multiple Command Remote Overflows (2) vulnerability:

  1. Metasploit: exploit/linux/imap/imap_uw_lsub
    [UoW IMAP Server LSUB Buffer Overflow]
  2. Exploit-DB: exploits/linux/remote/10025.rb
    [EDB-10025: University of Washington - imap LSUB Buffer Overflow (Metasploit)]
  3. Exploit-DB: exploits/linux/remote/16846.rb
    [EDB-16846: UoW IMAPd Server - LSUB 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: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 uw_imap_overflow_two.nasl nessus plugin source code. This script is Copyright (C) 2000-2018 Tenable Network Security, Inc.

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


include("compat.inc");

if(description)
{
 script_id(10374);
 script_version ("1.28");

 script_cve_id("CVE-2000-0284");
 script_bugtraq_id(1110);
 
 script_name(english:"UoW imapd (UW-IMAP) Multiple Command Remote Overflows (2)");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote host has an application that is affected by 
multiple issues." );
 script_set_attribute(attribute:"description", value:
"There is a buffer overflow in the remote imap server 
which allows an authenticated user to obtain a remote
shell." );
 script_set_attribute(attribute:"solution", value:
"Upgrade your imap server or use another one." );
  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:'UoW IMAP Server LSUB Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"plugin_publication_date", value: "2000/04/18");
 script_set_attribute(attribute:"vuln_publication_date", value: "2000/04/16");
 script_cvs_date("Date: 2018/08/06 14:03:14");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 script_summary(english:"checks for a buffer overflow in imapd");
 script_category(ACT_DESTRUCTIVE_ATTACK);
 script_copyright(english:"This script is Copyright (C) 2000-2018 Tenable Network Security, Inc.");
 script_family(english:"Gain a shell remotely");
 script_dependencie("find_service1.nasl", "logins.nasl");
 script_require_ports("Services/imap", 143);
 script_exclude_keys("imap/false_imap");
 script_require_keys("imap/login", "imap/password");
 exit(0);
}

acct = get_kb_item("imap/login");
pass = get_kb_item("imap/password");

if((acct == "")||(pass == ""))exit(0);
port = get_kb_item("Services/imap");
if(!port)port = 143;

if(get_port_state(port))
{
 soc = open_sock_tcp(port);
 b = recv_line(socket:soc, length:1024);
 if(!strlen(b)){
 	close(soc);
	exit(0);
	}
 s1 = string("1 login ", acct, " ", pass, "\r\n");	
 send(socket:soc, data:s1);
 b = recv_line(socket:soc, length:1024);
 
 s2 = string("1 list ", raw_string(0x22, 0x22), " ", crap(4096), "\r\n");
 send(socket:soc, data:s2);
 c = recv_line(socket:soc, length:1024);
 if(strlen(c) == 0)security_hole(port);
 close(soc);
}

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

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

Go back to menu.

How to Run


Here is how to run the UoW imapd (UW-IMAP) Multiple Command Remote Overflows (2) 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 Gain a shell remotely plugin family.
  6. On the right side table select UoW imapd (UW-IMAP) Multiple Command Remote Overflows (2) plugin ID 10374.
  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 uw_imap_overflow_two.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 10625 - UoW imapd (UW-IMAP) Multiple Command Remote Overflows
  • 10292 - UoW imapd AUTHENTICATE Command Remote Overflow
  • 122548 - Debian DLA-1700-1 : uw-imap security update
  • 156391 - Debian DLA-2866-1 : uw-imap - LTS security update
  • 130149 - Ubuntu 16.04 LTS / 18.04 LTS / 19.04 : UW IMAP vulnerability (USN-4160-1)

Version


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

Go back to menu.