Lucene search
+L

SMTP too long line

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2003 Michel ArboiType 
openvas
 openvas
🔗 plugins.openvas.org👁 12 Views

SMTP too long line. Antivirus scanner can crash when processing an email with a long string without line breaks, prompting MTA check and update

Code
# SPDX-FileCopyrightText: 2003 Michel Arboi
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.11270");
  script_version("2023-10-31T05:06:37+0000");
  script_tag(name:"last_modification", value:"2023-10-31 05:06:37 +0000 (Tue, 31 Oct 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_name("SMTP too long line");
  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2003 Michel Arboi");
  script_family("SMTP problems");
  script_dependencies("smtpserver_detect.nasl", "check_smtp_helo.nasl", "smtp_settings.nasl", "smtp_relay.nasl");
  script_require_ports("Services/smtp", 25, 465, 587);
  script_mandatory_keys("smtp/banner/available");

  script_tag(name:"summary", value:"Some antivirus scanners dies when they process an email with a
  too long string without line breaks.

  Such a message was sent. If there is an antivirus on your MTA, it might have crashed. Please check
  its status right now, as it is not possible to do it remotely.");

  script_tag(name:"solution", value:"Contact the vendor of the antivirus scanner to get an update.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_probe");

  exit(0);
}

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

fromaddr = smtp_from_header();
toaddr = smtp_to_header();
vtstrings = get_vt_strings();

port = smtp_get_port(default:25);

# Disable the test if the server relays e-mails.
if(get_kb_item("smtp/" + port + "/spam"))
  exit(0);

if(smtp_get_is_marked_wrapped(port:port))
  exit(0);

b = string("From: ", fromaddr, "\r\n", "To: ", toaddr, "\r\n",
           "Subject: ", vtstrings["lowercase"], " test - ignore it\r\n\r\n",
           crap(10000), "\r\n");
n = smtp_send_port(port:port, from:fromaddr, to:toaddr, body:b);
if(n > 0)
  security_message(port:port);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

31 Oct 2023 00:00Current
7.2High risk
Vulners AI Score7.2
12