Lucene search
+L

Sun Java System Web Proxy Server < 4.0.8 Multiple Vulnerabilities - Linux

🗓️ 16 Oct 2008 00:00:00Reported by Copyright (C) 2008 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 21 Views

Sun Java System Web Proxy Server < 4.0.8 Multiple Vulnerabilities - Linux. Vulnerability due to boundary errors in FTP subsystem & handling HTTP headers. Allows execution of arbitrary code

Related
Refs
Code
# SPDX-FileCopyrightText: 2008 Greenbone AG
# 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.800026");
  script_version("2023-07-28T05:05:23+0000");
  script_tag(name:"last_modification", value:"2023-07-28 05:05:23 +0000 (Fri, 28 Jul 2023)");
  script_tag(name:"creation_date", value:"2008-10-16 18:25:33 +0200 (Thu, 16 Oct 2008)");
  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-2008-4541");
  script_name("Sun Java System Web Proxy Server < 4.0.8 Multiple Vulnerabilities - Linux");

  script_xref(name:"URL", value:"http://secunia.com/advisories/32227");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/31691");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/45782");
  script_xref(name:"URL", value:"http://www.frsirt.com/english/advisories/2008/2781");
  script_xref(name:"URL", value:"http://sunsolve.sun.com/search/document.do?assetkey=1-66-242986-1");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2008 Greenbone AG");
  script_family("Buffer overflow");
  script_require_ports("Services/www", 8081);
  script_mandatory_keys("Sun-Java-System-Web-Proxy-Server/banner", "login/SSH/success");
  script_dependencies("gather-package-list.nasl", "gb_get_http_banner.nasl");

  script_tag(name:"impact", value:"Successful exploitation could allow execution of arbitrary code in the context
  of the server, and failed attacks may cause denial-of-service condition.");

  script_tag(name:"affected", value:"Sun Java System Web Proxy Server versions prior to 4.0.8 on all running platform.");

  script_tag(name:"insight", value:"The flaw exists due to a boundary error in the FTP subsystem and in processing
  HTTP headers. This issue resides within the code responsible for handling HTTP GET requests.");

  script_tag(name:"summary", value:"Sun Java Web Proxy Server is prone to a heap buffer overflow vulnerability.");

  script_tag(name:"solution", value:"Update to version 4.0.8 or later.");

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

  exit(0);
}

include("http_func.inc");
include("port_service_func.inc");
include("ssh_func.inc");
include("version_func.inc");

sunPorts = http_get_ports(default_port_list:make_list(8081));
foreach sunPort(sunPorts) {

  banner = http_get_remote_headers(port:sunPort);
  if(!banner)
    continue;

  if(banner =~ "Server: Sun-Java-System-Web-Proxy-Server/[0-3]\.0")
    security_message(port:sunPort);

  if(banner =~ "Server: Sun-Java-System-Web-Proxy-Server/4\.0")
    check_ssh = TRUE;
}

if(check_ssh) {

  sock = ssh_login_or_reuse_connection();
  if(!sock)
    exit(0);

  sunName = ssh_find_file(file_name:"/proxy-admserv/start$", useregex:TRUE, sock:sock);
  foreach binary_sunName (sunName)
  {
    binary_name = chomp(binary_sunName);
    if(!binary_name)
      continue;

    sunVer = ssh_get_bin_version(full_prog_name:binary_name, version_argv:"-version", sock:sock, ver_pattern:"Web Proxy Server ([0-9.]+)");
    if(sunVer)
    { # Grep for versions prior to 4.0.8
      if(version_in_range(version:sunVer[1], test_version:"4.0", test_version2:"4.0.7")){
        security_message(sunPort);
      }
      ssh_close_connection();
      exit(0);
    }
  }
 ssh_close_connection();
}

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

28 Jul 2023 00:00Current
6.9Medium risk
Vulners AI Score6.9
CVSS 210
EPSS0.08439
21