Proxy accepts CONNECT requests to itself
🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2005 Michel ArboiType
openvas🔗 plugins.openvas.org👁 61 Views
# SPDX-FileCopyrightText: 2005 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.17154");
script_version("2025-12-17T05:46:28+0000");
script_tag(name:"last_modification", value:"2025-12-17 05:46:28 +0000 (Wed, 17 Dec 2025)");
script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
script_tag(name:"cvss_base", value:"9.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_name("Proxy accepts CONNECT requests to itself");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2005 Michel Arboi");
script_family("Denial of Service");
script_dependencies("find_service.nasl", "proxy_use.nasl");
script_require_keys("Proxy/usage");
script_require_ports("Services/http_proxy", 8080);
script_tag(name:"solution", value:"reconfigure your proxy so that it
refuses CONNECT requests to itself.");
script_tag(name:"summary", value:"The proxy allows the users to perform
repeated CONNECT requests to itself.
Note that if the proxy limits the number of connections from a single IP (e.g. acl maxconn with Squid),
it is protected against saturation and you may ignore this alert.");
script_tag(name:"impact", value:"This allows anybody to saturate the proxy CPU, memory or
file descriptors.");
script_tag(name:"solution_type", value:"Mitigation");
script_tag(name:"qod_type", value:"remote_analysis");
exit(0);
}
include("port_service_func.inc");
port = service_get_port(default:8080, proto:"http_proxy");
if (! COMMAND_LINE)
{
proxy_use = get_kb_item("Proxy/usage");
if (! proxy_use) exit(0);
}
host = get_host_name();
soc = open_sock_tcp(port);
if (! soc)
exit(0);
cmd = strcat('CONNECT ', host, ':', port, ' HTTP/1.0\r\n\r\n');
for (i = 3; i >= 0; i --)
{
send(socket:soc, data: cmd);
repeat
line = recv_line(socket:soc, length:4096);
until (! line || line =~ '^HTTP/[0-9.]+ ');
if (line !~ '^HTTP/[0-9.]+ +200 ') break; # Also exit loop on EOF
}
close(soc);
if (i < 0) {
security_message(port:port);
exit(0);
}
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
17 Dec 2025 00:00Current
6.8Medium risk
Vulners AI Score6.8