SIP channel driver in Asterisk suffers remote crash vulnerability

2012-06-19T00:00:00
ID OPENVAS:1361412562310110018
Type openvas
Reporter Copyright NopSec Inc. 2012
Modified 2018-08-30T00:00:00

Description

chan_sip.c in the SIP channel driver in Asterisk Open Source 1.8.x before 1.8.11.1 and 10.x before 10.3.1 and Asterisk Business Edition C.3.x before C.3.7.4, when the trustrpid option is enabled, alLows remote authenticated users to cause a denial of service (daemon crash) by sending a SIP UPDATE message that triggers a connected-line update attempt without an associated channel.

                                        
                                            ##############################################################################
# OpenVAS Vulnerability Test
# $Id: nopsec_asterisk_ast_2012_006.nasl 11167 2018-08-30 12:04:11Z asteins $
#
# SIP channel driver in Asterisk suffers remote crash vulnerability
#
# Authors:
# Songhan Yu <syu@nopsec.com>
#
# Copyright:
# Copyright NopSec Inc. 2012, http://www.nopsec.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

CPE = 'cpe:/a:digium:asterisk';

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.110018");
  script_version("$Revision: 11167 $");
  script_tag(name:"last_modification", value:"$Date: 2018-08-30 14:04:11 +0200 (Thu, 30 Aug 2018) $");
  script_tag(name:"creation_date", value:"2012-06-19 11:43:12 +0100 (Tue, 19 Jun 2012)");
  script_cve_id("CVE-2012-2416");
  script_bugtraq_id(53205);
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:P/I:P/A:P");
  script_tag(name:"cvss_base", value:"6.5");
  script_name("SIP channel driver in Asterisk suffers remote crash vulnerability");
  script_category(ACT_GATHER_INFO);
  script_family("Denial of Service");
  script_copyright("Copyright NopSec Inc. 2012");
  script_dependencies("secpod_asterisk_detect.nasl");
  script_mandatory_keys("Asterisk-PBX/Ver", "Asterisk-PBX/Installed");

  script_tag(name:"summary", value:"chan_sip.c in the SIP channel driver in Asterisk Open Source 1.8.x
  before 1.8.11.1 and 10.x before 10.3.1 and Asterisk Business Edition C.3.x before C.3.7.4, when the
  trustrpid option is enabled, alLows remote authenticated users to cause a denial of service (daemon crash)
  by sending a SIP UPDATE message that triggers a connected-line update attempt without an associated channel.");

  script_tag(name:"solution", value:"Upgrade to 1.8.11.1 / 10.3.1 / C.3.7.4 or versions after.");

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

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
if( ! infos = get_app_version_and_proto( cpe:CPE, port:port ) ) exit( 0 );

version = infos["version"];
proto = infos["proto"];

if( version_in_range( version:version, test_version:"1.8", test_version2:"1.8.11.1" ) ||
    version_in_range( version:version, test_version:"10", test_version2:"10.3.1" ) ||
    version =~ "^C\.3([^0-9]|$)" ) {
  report = report_fixed_ver( installed_version:version, fixed_version:"1.8.11.1/10.3.1/C.3.7.4" );
  security_message( port:port, data:report, protocol:proto );
  exit( 0 );
}

exit( 99 );