SLMail < 5.1.0.4433 Multiple Command Remote Overflows - Nessus

High   Plugin ID: 11593

This page contains detailed information about the SLMail < 5.1.0.4433 Multiple Command Remote Overflows Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 11593
Name: SLMail < 5.1.0.4433 Multiple Command Remote Overflows
Filename: slmail_smtp_overflows.nasl
Vulnerability Published: 2003-05-07
This Plugin Published: 2003-05-07
Last Modification Time: 2018-11-15
Plugin Version: 1.20
Plugin Type: remote
Plugin Family: SMTP problems
Dependencies: find_service1.nasl, sendmail_expn.nasl, smtpserver_detect.nasl

Vulnerability Information


Severity: High
Vulnerability Published: 2003-05-07
Patch Published: N/A
CVE [?]: CVE-2003-0264
CPE [?]: N/A

Synopsis

The remote mail server is vulnerable to multiple buffer overflows.

Description

The remote host is running a version of the SLmail SMTP server which is vulnerable to various overflows which may allow to execute arbitrary commands on this host or to disable it remotely.

Solution

Upgrade to SLMail 5.1.0.4433 or newer

Public Exploits


Target Network Port(s): 25
Target Asset(s): Services/smtp
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the SLMail < 5.1.0.4433 Multiple Command Remote Overflows vulnerability:

  1. Metasploit: exploit/windows/pop3/seattlelab_pass
    [Seattle Lab Mail 5.5 POP3 Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16399.rb
    [EDB-16399: Seattle Lab Mail (SLmail) 5.5 - POP3 'PASS' Remote Buffer Overflow (Metasploit)]
  3. GitHub: https://github.com/cytopia/fuzza
    [CVE-2003-0264]
  4. GitHub: https://github.com/mednic/slmail-exploit
    [CVE-2003-0264]
  5. GitHub: https://github.com/rosonsec/Exploits
    [CVE-2003-0264]
  6. GitHub: https://github.com/vaknin/SLMail5.5
    [CVE-2003-0264: Exploiting CVE 2003-0264 with a buffer-overflow attack using Python3]
  7. GitHub: https://github.com/adenkiewicz/CVE-2003-0264
    [CVE-2003-0264: Exploit for CVE-2003-0264 based on pwntools and metasploit's windows/reverse_tcp]
  8. GitHub: https://github.com/fyoderxx/slmail-exploit
    [CVE-2003-0264: Exploit SLmail Buffer Overflow CVE-2003-0264]
  9. GitHub: https://github.com/nobodyatall648/CVE-2003-0264
    [CVE-2003-0264: CVE-2003-0264 SLMail5.5_RemoteBufferOverflow]
  10. GitHub: https://github.com/pwncone/CVE-2003-0264-SLmail-5.5
    [CVE-2003-0264: A POC remote buffer overflow for CVE-2003-0264 - SLMail 5.5]
  11. GitHub: https://github.com/SxNade/CVE-2003-0264_EXPLOIT
    [CVE-2003-0264: Buffer Overflow in Seattle Lab Mail (SLmail) 5.5 - POP3]
  12. GitHub: https://github.com/war4uthor/CVE-2003-0264
    [CVE-2003-0264: CVE-2003-0264 - SLMail 5.5 POP3 'PASS' Remote Buffer Overflow Vulnerability. Tested ...]

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:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


This is the slmail_smtp_overflows.nasl nessus plugin source code. This script is Copyright (C) 2003-2018 Tenable Network Security, Inc.

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

# Refs:
#  From: "NGSSoftware Insight Security Research" <[email protected]>
#  To: <[email protected]>
#  Subject: Multiple Buffer Overflow Vulnerabilities in SLMail (#NISR07052003A)
#  Date: Wed, 7 May 2003 17:44:22 +0100

# The other issues (POP and POPPASSWD) should be covered by miscflood and pop3_overflows.nasl

include( 'compat.inc' );

if(description)
{
  script_id(11593);
  script_version ("1.20");
  script_cve_id("CVE-2003-0264");
  script_bugtraq_id(7512, 7515, 7519, 7525, 7526);

  script_name(english:"SLMail < 5.1.0.4433 Multiple Command Remote Overflows");
  script_summary(english:"Overflows the remote SMTP server");
 
  script_set_attribute(
    attribute:'synopsis',
    value:"The remote mail server is vulnerable to multiple buffer overflows."
  );

  script_set_attribute(
    attribute:'description',
    value:"The remote host is running a version of the SLmail
SMTP server which is vulnerable to various overflows
which may allow to execute arbitrary commands on this
host or to disable it remotely."
  );

  script_set_attribute(
    attribute:'solution',
    value:"Upgrade to SLMail 5.1.0.4433 or newer"
  );
  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: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:'Seattle Lab Mail 5.5 POP3 Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(
    attribute:'see_also',
    value:"https://marc.info/?l=bugtraq&m=105232506011335&w=2"
  );

 script_set_attribute(attribute:"plugin_publication_date", value: "2003/05/07");
 script_set_attribute(attribute:"vuln_publication_date", value: "2003/05/07");
 script_cvs_date("Date: 2018/11/15 20:50:24");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_end_attributes();

 script_category(ACT_MIXED_ATTACK);
 script_copyright(english:"This script is Copyright (C) 2003-2018 Tenable Network Security, Inc.");
 script_family(english:"SMTP problems");
 script_dependencie("find_service1.nasl", "smtpserver_detect.nasl", "sendmail_expn.nasl");
 script_require_ports("Services/smtp", 25);
 exit(0);
}

#
# The script code starts here
#

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

port = get_service(svc:"smtp", default: 25, exit_on_fail: 1);
if (get_kb_item('SMTP/'+port+'/broken')) exit(0);

soc = open_sock_tcp(port);
if (! soc) exit(1);

  s = smtp_recv_banner(socket:soc);
  if(!s)exit(0);
  if(!egrep(pattern:"^220 .*", string:s))
  {
   close(soc);
   exit(0);
  }

  if( safe_checks() )
  {
   if(egrep(pattern:"^220 .*SMTP Server SLmail ([0-4]\.|5\.(0\.|1\.0\.([0-9][0-9]?[0-9]?[^0-9]|([0-3]|4([0-3]|4([0-2]|3[0-2]))))))",
   	    string:s))security_hole(port);
   exit(0);
  }


  c = string("EHLO ", crap(1999), "\r\n");
  send(socket:soc, data:c);
  s = recv_line(socket:soc, length:1024);
  close(soc);

if (service_is_dead(port: port) > 0)
  security_hole(port);

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

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

Go back to menu.

How to Run


Here is how to run the SLMail < 5.1.0.4433 Multiple Command Remote Overflows 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 SMTP problems plugin family.
  6. On the right side table select SLMail < 5.1.0.4433 Multiple Command Remote Overflows plugin ID 11593.
  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 slmail_smtp_overflows.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 30123 - Citadel SMTP makeuserkey Function RCPT TO Command Remote Overflow
  • 11889 - Exchange XEXCH50 Remote Buffer Overflow
  • 107149 - Exim < 4.90.1 Buffer Overflow RCE Vulnerability
  • 129470 - Exim 4.92.x < 4.92.3 Heap Buffer Overflow
  • 51179 - Exim string_format Function Remote Overflow
  • 22314 - Ipswitch IMail Server SMTP Service Crafted RCPT String Remote Overflow
  • 53534 - IBM Lotus Domino iCalendar Email Address ORGANIZER:mailto Header Remote Overflow
  • 12065 - ASN.1 Multiple Integer Overflows (SMTP check)
  • 15902 - MailCarrier < 3.0.1 SMTP EHLO Command Remote Overflow
  • 25928 - Mercury SMTP Server AUTH CRAM-MD5 Remote Buffer Overflow
  • 11499 - Sendmail < 8.12.9 NOCHAR Control Value prescan Overflow
  • 11316 - Sendmail headers.c crackaddr Function Address Field Handling Remote Overflow
  • 11838 - Sendmail < 8.12.10 prescan() Function Remote Overflow

Version


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

Go back to menu.