Vulnerabilities > CVE-2008-0394 - Buffer Errors vulnerability in Citadel Smtp 7.10

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
citadel
CWE-119
nessus
exploit available

Summary

Buffer overflow in Citadel SMTP server 7.10 and earlier allows remote attackers to execute arbitrary code via a long RCPT TO command, which is not properly handled by the makeuserkey function. NOTE: some of these details were obtained from third party information.

Vulnerable Configurations

Part Description Count
Application
Citadel
2

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

descriptionCitadel SMTP. CVE-2008-0394. Remote exploit for windows platform
fileexploits/windows/remote/4949.txt
idEDB-ID:4949
last seen2016-01-31
modified2008-01-21
platformwindows
port25
published2008-01-21
reporterprdelka
sourcehttps://www.exploit-db.com/download/4949/
titleCitadel SMTP <= 7.10 - Remote Overflow Exploit
typeremote

Nessus

NASL familySMTP problems
NASL idCITADEL_SMTP_RCPT_OVERFLOW.NASL
descriptionThe remote server is running Citadel, an open source solution for email and collaboration. According to its version, the installation of Citadel on the remote host uses insufficient bounds-checking in its SMTP service during memory-copy operations when processing input to the RCPT TO command. An unauthenticated, remote attacker may be able to leverage this issue to cause a stack-based buffer overflow, resulting in a crash of the affected service or even execution of arbitrary code.
last seen2020-06-01
modified2020-06-02
plugin id30123
published2008-01-29
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/30123
titleCitadel SMTP makeuserkey Function RCPT TO Command Remote Overflow
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(30123);
  script_version("1.17");
  script_cvs_date("Date: 2018/07/06 11:26:08");

  script_cve_id("CVE-2008-0394");
  script_bugtraq_id(27376);
  script_xref(name:"EDB-ID", value:"4949");

  script_name(english:"Citadel SMTP makeuserkey Function RCPT TO Command Remote Overflow");
  script_summary(english:"Checks Citadel's version number");

  script_set_attribute(attribute:"synopsis", value:"The remote mail server is prone to a buffer overflow attack.");
  script_set_attribute(attribute:"description", value:
"The remote server is running Citadel, an open source solution for
email and collaboration.

According to its version, the installation of Citadel on the remote
host uses insufficient bounds-checking in its SMTP service during
memory-copy operations when processing input to the RCPT TO command.
An unauthenticated, remote attacker may be able to leverage this issue
to cause a stack-based buffer overflow, resulting in a crash of the
affected service or even execution of arbitrary code.");
  script_set_attribute(attribute:"solution", value:"Upgrade to Citadel version 7.11 or later.");
  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: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/01/29");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:citadel:smtp");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"SMTP problems");

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

  script_dependencies("find_service2.nasl", "smtpserver_detect.nasl", "citadel_overflow.nasl");
  script_require_keys("Settings/ParanoidReport");
  script_require_ports("Services/smtp", 25, "Services/citadel/ux", 504);

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("smtp_func.inc");


# nb: banner checks of open source software are prone to false-
#     positives so only run the check if reporting is paranoid.
if (report_paranoia < 2) audit(AUDIT_PARANOID);


citadel_port = get_kb_item("Services/citadel/ux");
if (!citadel_port) exit(0);

kb = get_kb_item("citadel/" + citadel_port + "/version");
if (!kb) exit(0);


port = get_kb_item("Services/smtp");
if (!port) port = 25;

banner = get_smtp_banner(port:port);
if (banner && "ESMTP Citadel server ready." >< banner)
{
  ver = ereg_replace(pattern:"^Citadel(/UX)? +([0-9]+.+)$", replace:"\2", string:kb);
  if (ver && ver =~ "^[0-6]\.|7\.0|10($|[^0-9])")
  {
    if (report_verbosity)
    {
      report = string(
        "\n",
        "The remote Citadel server reports itself as :\n",
        "\n",
        "  ", kb, "\n"
      );
      security_hole(port:port, extra:report);
    }
    else security_hole(port);
  }
}

Saint

bid27376
descriptionCitadel SMTP server RCPT TO buffer overflow
idmisc_citadel,misc_citadelrcpt
osvdb40516
titlecitadel_smtp_rcpt_to
typeremote