Asterisk 13.13 < 13.13-cert3 / 13.x < 13.14.1 / 14.x < 14.3.1 CDR user Field RCE (AST-2017-001)

Medium Nessus Plugin ID 99363

New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it's different from CVSS.

VPR Score: 5.9

Synopsis

A telephony application running on the remote host is affected by a remote code execution vulnerability.

Description

According to its SIP banner, the version of Asterisk running on the remote host is 13.13 prior to 13.13-cert3, 13.x prior to 13.14.1, or 14.x prior to 14.3.1. Is it, therefore, affected by a buffer overflow condition due to a failure to check the size when setting the user field on a CDR. An authenticated, remote attacker can exploit this, via a large string, to write past the end of the user field storage buffer, resulting in a denial of service condition or the execution of arbitrary code.

Note that this vulnerability affects any system using CDRs that also makes use of the following :

- The 'X-ClientCode' header within a SIP INFO message when using chan_sip and the 'useclientcode' option is enabled (which is disabled by default).

- The CDR dialplan() function executed from AMI when setting the user field.

- The AMI Monitor action when using a long file name or path.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Asterisk version 13.13-cert3 / 13.14.1 / 14.3.1 or later.

See Also

http://downloads.asterisk.org/pub/security/AST-2017-001.html

Plugin Details

Severity: Medium

ID: 99363

File Name: asterisk_ast_2017_001.nasl

Version: 1.8

Type: remote

Family: Misc.

Published: 2017/04/13

Updated: 2019/11/13

Dependencies: 63202

Configuration: Enable paranoid mode

Risk Information

Risk Factor: Medium

VPR Score: 5.9

CVSS Score Source: CVE-2017-7617

CVSS v2.0

Base Score: 6.5

Temporal Score: 4.8

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS v3.0

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:digium:asterisk

Required KB Items: asterisk/sip_detected, Settings/ParanoidReport

Exploit Available: false

Exploit Ease: No known exploits are available

Patch Publication Date: 2017/04/04

Vulnerability Publication Date: 2017/04/04

Reference Information

CVE: CVE-2017-7617

BID: 97377