Vulnerabilities > CVE-2007-0886 - Buffer Errors vulnerability in Gecad Technologies Axigen Mail Server 1.2.6/2.0.0B1

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
gecad-technologies
CWE-119
critical
nessus
exploit available

Summary

Heap-based buffer underflow in axigen 1.2.6 through 2.0.0b1 allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via certain base64-encoded data on the pop3 port (110/tcp), which triggers an integer overflow.

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

descriptionAxigen <= 2.0.0b1 Remote Denial of Service Exploit. CVE-2007-0886. Dos exploit for linux platform
fileexploits/linux/dos/3289.c
idEDB-ID:3289
last seen2016-01-31
modified2007-02-08
platformlinux
port
published2007-02-08
reportermu-b
sourcehttps://www.exploit-db.com/download/3289/
titleAxigen <= 2.0.0b1 - Remote Denial of Service Exploit
typedos

Nessus

NASL familyGain a shell remotely
NASL idAXIGEN_IMAP_AUTH_DOS.NASL
descriptionThe remote host is running AXIGEN Mail Server, a messaging system for Linux and BSD. The POP3 server component of AXIGEN Mail Server contains a format string vulnerability because it calls syslog() when logtypeis set to
last seen2020-06-01
modified2020-06-02
plugin id24321
published2007-02-09
reporterThis script is Copyright (C) 2007-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/24321
titleAXIGEN Mail Server < 2.0.0 Multiple Remote Vulnerabilities
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");

if (description)
{
  script_id(24321);
  script_version("1.25");
  script_cvs_date("Date: 2018/06/27 18:42:25");

  script_cve_id("CVE-2007-0886", "CVE-2007-0887");
  script_bugtraq_id(22473, 22603);

  script_xref(name:"EDB-ID", value:"3289");
  script_xref(name:"EDB-ID", value:"3290");
  script_xref(name:"EDB-ID", value:"3329");

  script_name(english:"AXIGEN Mail Server < 2.0.0 Multiple Remote Vulnerabilities");
  script_summary(english:"Checks version of AXIGEN Mail Server");

  script_set_attribute(attribute:"synopsis", value:
"The remote mail server is affected by multiple vulnerabilities." );
  script_set_attribute(attribute:"description", value:
"The remote host is running AXIGEN Mail Server, a messaging system for
Linux and BSD. 

The POP3 server component of AXIGEN Mail Server contains a format
string vulnerability because it calls syslog() when logtypeis set to
'system'.  In addition, the IMAP server component is affected by two
denial of service issues involving PLAIN and CRAM-MD5 authentication
methods.  An unauthenticated, remote attacker can leverage these issues
to crash the IMAP service and possibly execute arbitrary code
remotely." );
  script_set_attribute(attribute:"see_also", value:"http://www.axigen.com/forum/showthread.php?p=2386#post2386" );
  script_set_attribute(attribute:"solution", value:
"Upgrade to AXIGEN Mail Server version 2.0.0 or later." );
  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:POC/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:"plugin_publication_date", value: "2007/02/09");
   script_set_attribute(attribute:"vuln_publication_date", value: "2007/02/08");
   script_set_attribute(attribute:"plugin_type", value:"remote");
   script_set_attribute(attribute:"cpe", value:"cpe:/a:gecad:axigen_mail_server");
   script_end_attributes();

  script_category(ACT_MIXED_ATTACK);
  script_family(english:"Gain a shell remotely");
  script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.");
  script_dependencies("find_service1.nasl");
  script_require_ports("Services/imap", 143);

  exit(0);
}


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


# Check the imap server.
port = get_service(svc:"imap", default: 143, exit_on_fail: 1);
if ( get_kb_item("imap/"+port+"/false_imap")
  || get_kb_item("imap/"+port+"/overflow")) exit(0);

# Make sure it's AXIGEN.
banner = get_imap_banner(port:port);
if (!banner || " AXIGEN " >!< banner)
  exit(0, "The IMAP server on port "+port+" is not AXIGEN.");


# If safe checks are enabled...
if (safe_checks())
{
  if (egrep(pattern:" AXIGEN ([0-1]\..*|2\.0.0-beta1) ", string:banner))
  {
    report = string(
      "Nessus has determined the flaw exists with the application\n",
      "based only on the version in the IMAP server's banner.\n"
    );
    security_hole(port:port, extra:report);
  }
}
# Otherwise...
else
{
  # Establish a connection.
  tag = 0;
  soc = open_sock_tcp(port);
  if (! soc) exit(1, "Cannot connect to TCP port "+port+".");

    # Read banner.
    s = recv_line(socket:soc, length:1024);
    if (strlen(s))
    {
      # Start to log in.
      ++tag;
      c = string("nessus", string(tag), " AUTHENTICATE PLAIN");
      send(socket:soc, data:string(c, "\r\n"));
      s = recv_line(socket:soc, length:1024);
      if ("+ data" >< s)
      {
        # Send the exploit to see if we can bypass authentication.
        #
        # nb: this will likely cause existing connections to be dropped.
        c = base64(str:raw_string("*", 0));
        send(socket:soc, data:string(c, "\r\n"));
        s = recv_line(socket:soc, length:1024);

        # There's a problem if we were able to authenticate.
        if ("OK Done AUTHENTICATE" >< s) security_hole(port);
      }
      close(soc);
    }
}