Vulnerabilities > CVE-2008-7182 - Buffer Errors vulnerability in Netwin Surgemail 3.9E

047910
CVSS 4.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
SINGLE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL
network
low complexity
netwin
CWE-119
nessus
exploit available

Summary

Buffer overflow in the IMAP service in NetWin Surgemail 3.9e, and possibly other versions before 3.9g2, allows remote authenticated users to cause a denial of service (crash) and possibly execute arbitrary code via a long first argument to the APPEND command, a different vector than CVE-2008-1497 and CVE-2008-1498. NOTE: due to lack of details, it is not certain whether this is the same issue as CVE-2008-2859.

Vulnerable Configurations

Part Description Count
Application
Netwin
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionSurgemail 39e-1 Post Auth IMAP Remote Buffer Overflow DoS. CVE-2008-2859,CVE-2008-7182. Dos exploit for windows platform
fileexploits/windows/dos/5968.py
idEDB-ID:5968
last seen2016-01-31
modified2008-06-30
platformwindows
port
published2008-06-30
reporterTravis Warren
sourcehttps://www.exploit-db.com/download/5968/
titleSurgemail 39e-1 Post Auth IMAP Remote Buffer Overflow DoS
typedos

Nessus

NASL familyMisc.
NASL idSURGEMAIL_IMAP_COMMAND_UNSPECIFIED_DOS.NASL
descriptionAccording to its banner, the remote host is running a version of the SurgeMail Mail Server older than 3.9g2. The IMAP service in such versions is reportedly affected by remote denial of service vulnerabilities when handling an APPEND command with a large parameter. An authenticated attacker can leverage this issue to crash the remote application.
last seen2020-06-01
modified2020-06-02
plugin id33277
published2008-06-30
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/33277
titleSurgeMail IMAP Service APPEND Command Remote DoS
code
#
# (C) Tenable Network Security, Inc.
# 


include("compat.inc");

if (description)
{
  script_id(33277);
  script_version("1.15");

  script_cve_id("CVE-2008-2859", "CVE-2008-7182");
  script_bugtraq_id(29805, 30000);
  script_xref(name:"EDB-ID", value:"5968");
  script_xref(name:"Secunia", value:"30739");

  script_name(english:"SurgeMail IMAP Service APPEND Command Remote DoS");
  script_summary(english:"Checks version in IMAP service banner");
  
 script_set_attribute(attribute:"synopsis", value:
"The remote mail server is prone to denial of service attacks." );
 script_set_attribute(attribute:"description", value:
"According to its banner, the remote host is running a version of the
SurgeMail Mail Server older than 3.9g2.  The IMAP service in such
versions is reportedly affected by remote denial of service
vulnerabilities when handling an APPEND command with a large
parameter.  An authenticated attacker can leverage this issue to crash
the remote application." );
 script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/496482" );
 script_set_attribute(attribute:"see_also", value:"http://www.netwinsite.com/surgemail/help/updates.htm" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to SurgeMail 3.9g2 or later." );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:N/I:N/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
 script_cwe_id(119);

 script_set_attribute(attribute:"plugin_publication_date", value: "2008/06/30");
 script_cvs_date("Date: 2018/11/15 20:50:24");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

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

  script_dependencies("find_service2.nasl");
  script_require_ports("Services/imap", 143);

  exit(0);
}


include("global_settings.inc");
include("imap_func.inc");


# Get the banner.
port = get_kb_item("Services/imap");
if (!port) port = 143;
if (!get_port_state(port)) exit(0);
banner = get_imap_banner(port:port);


# Check the version.
ver = NULL;

if (banner && " IMAP " >< banner && " (Version " >< banner)
{
  pat = " IMAP (\(C\) )?[^ ]+ \(Version ([0-9]\.[0-9]+[a-z][0-9]*)-[0-9]+\)";
  matches = egrep(pattern:pat, string:banner);
  if (matches)
  {
    foreach match (split(matches))
    {
      match = chomp(match);
      ver = eregmatch(pattern:pat, string:match);
      if (!isnull(ver))
      {
        ver = ver[2];
        break;
      }
    }
  }

  # There's a problem if it's < 3.9g2.
  if (ver && ver =~ "^([0-2]\.|3\.([0-8][a-z]|9([a-f]|g[01]?$)))") 
  {
    report = string(
      "\n",
      "Surgemail ", ver, " is currently installed on the remote host.\n"
    );
    security_warning(port:port, extra:report);
  }
}