Asterisk Multiple Vulnerabilities (AST-2013-006 / AST-2013-007)

This script is Copyright (C) 2013-2014 Tenable Network Security, Inc.


Synopsis :

The version of Asterisk installed on the remote host may be affected by
multiple vulnerabilities.

Description :

According to the version in its SIP banner, the version of Asterisk
running on the remote host is potentially affected by the following
vulnerabilities :

- A denial of service vulnerability exists in the
'unpacksms16()' function of the 'app_sms.c' source file.
When a 16-bit SMS message with an unusual message length
value is received, an infinite loop will be created,
causing a denial of service.

- A privilege escalation vulnerability exists because of
the way dialplan functions are handled during variable
substitution. Privileged dialplan functions, such as
the SHELL() and FILE() functions, can be used by
external control protocols, such as the Asterisk Manager
Interface and Asterisk Gateway Interface. A malicious,
authenticated user could use these functions to modify
arbitrary files or execute arbitrary commands.

See also :

http://downloads.asterisk.org/pub/security/AST-2013-006.html
http://downloads.asterisk.org/pub/security/AST-2013-007.html
https://issues.asterisk.org/jira/browse/ASTERISK-22590
https://issues.asterisk.org/jira/browse/ASTERISK-22905
http://www.nessus.org/u?5269580c
http://www.nessus.org/u?989ff925
http://www.nessus.org/u?8f8ef69c
http://www.nessus.org/u?b1df629a
http://www.nessus.org/u?60d42add

Solution :

Upgrade to Asterisk 1.8.24.1 / 10.12.4 / 11.6.1 / Certified Asterisk
1.8.15-cert4 / 11.2-cert3, or apply the appropriate patches or
workaround contained in the Asterisk advisories.

Risk factor :

Medium / CVSS Base Score : 6.5
(CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P)
CVSS Temporal Score : 5.7
(CVSS2#E:ND/RL:OF/RC:C)
Public Exploit Available : false

Family: Misc.

Nessus Plugin ID: 71538 ()

Bugtraq ID: 64364
64367

CVE ID: CVE-2013-7100