Digium Asterisk 1.8/10/11 Device State Caching SIP/HTTP/XMPP memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.7$0-$5k0.00

Summaryinfo

A vulnerability categorized as problematic has been discovered in Digium Asterisk 1.8/10/11. Impacted is an unknown function of the component Device State Caching. Such manipulation as part of SIP/HTTP/XMPP leads to memory corruption. This vulnerability is uniquely identified as CVE-2012-5977. The attack can be launched remotely. Moreover, an exploit is present. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability was found in Digium Asterisk 1.8/10/11 (Communications System) and classified as critical. Affected by this issue is an unknown functionality of the component Device State Caching. The manipulation as part of a SIP/HTTP/XMPP leads to a memory corruption vulnerability. Using CWE to declare the problem leads to CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. Impacted is availability. CVE summarizes:

Asterisk Open Source 1.8.x before 1.8.19.1, 10.x before 10.11.1, and 11.x before 11.1.2; Certified Asterisk 1.8.11 before 1.8.11-cert10; and Asterisk Digiumphones 10.x-digiumphones before 10.11.1-digiumphones, when anonymous calls are enabled, allow remote attackers to cause a denial of service (resource consumption) by making anonymous calls from multiple sources and consequently adding many entries to the device state cache.

The weakness was disclosed 01/02/2013 by Russell Bryant as AST-2012-015 as confirmed advisory (Website). The advisory is shared for download at downloads.asterisk.org. The public release has been coordinated in cooperation with the vendor. This vulnerability is handled as CVE-2012-5977 since 11/21/2012. The attack may be launched remotely. No form of authentication is required for exploitation. Technical details are unknown but a public exploit is available. The advisory points out:

Asterisk maintains an internal cache for devices. The device state cache holds the state of each device known to Asterisk, such that consumers of device state information can query for the last known state for a particular device, even if it is not part of an active call. The concept of a device in Asterisk can include things that do not have a physical representation. One way that this currently occurs is when anonymous calls are allowed in Asterisk. A device is automatically created and stored in the cache for each anonymous call that occurs; this is possible in the SIP and IAX2 channel drivers and through channel drivers that utilize the res_jabber/res_xmpp resource modules (Gtalk, Jingle, and Motif). Attackers exploiting this vulnerability can attack an Asterisk system configured to allow anonymous calls by varying the source of the anonymous call, continually adding devices to the device state cache and consuming a system's resources.

The exploit is available at securityfocus.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 190 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 64717 (Asterisk Multiple Vulnerabilities (AST-2012-014 / AST-2012-015)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Misc.. The commercial vulnerability scanner Qualys is able to test this issue with plugin 42397 (Asterisk Multiple Denial of Service Vulnerabilities (AST-2012-014, AST-2012-015)).

Upgrading to version 1.8.19.1, 10.11.1 or 11.1.2 eliminates this vulnerability. The upgrade is hosted for download at downloads.asterisk.org. A possible mitigation has been published immediately after the disclosure of the vulnerability. Channels that are not associated with a physical device are no longer stored in the device state cache. This affects Local, DAHDI, SIP and IAX2 channels, and any channel drivers built on the res_jabber/res_xmpp resource modules (Gtalk, Jingle, and Motif).

The vulnerability is also documented in the databases at X-Force (80922), Tenable (64717), SecurityFocus (BID 57095†), Secunia (SA51689†) and SecurityTracker (ID 1027932†). The entries VDB-7231 and VDB-7246 are pretty similar. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.5
VulDB Meta Temp Score: 6.7

VulDB Base Score: 7.5
VulDB Temp Score: 6.7
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 64717
Nessus Name: Asterisk Multiple Vulnerabilities (AST-2012-014 / AST-2012-015)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

OpenVAS ID: 892605
OpenVAS Name: Debian Security Advisory DSA 2605-2 (asterisk - several issues
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: Asterisk 1.8.19.1/10.11.1/11.1.2
PaloAlto IPS: 🔍

Timelineinfo

06/26/2012 🔍
11/21/2012 +148 days 🔍
01/02/2013 +42 days 🔍
01/02/2013 +0 days 🔍
01/02/2013 +0 days 🔍
01/02/2013 +0 days 🔍
01/02/2013 +0 days 🔍
01/03/2013 +1 days 🔍
01/03/2013 +0 days 🔍
01/04/2013 +1 days 🔍
01/08/2013 +4 days 🔍
04/20/2021 +3024 days 🔍

Sourcesinfo

Vendor: digium.com

Advisory: AST-2012-015
Researcher: Russell Bryant
Status: Confirmed
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2012-5977 (🔍)
GCVE (CVE): GCVE-0-2012-5977
GCVE (VulDB): GCVE-100-7232

OVAL: 🔍

X-Force: 80922
SecurityFocus: 57095 - Astium PBX Denial of Service Vulnerability
Secunia: 51689 - Asterisk Multiple Vulnerabilities, Highly Critical
SecurityTracker: 1027932 - Asterisk State Caching Flaw Lets Remote Users Deny Service
Vulnerability Center: 37922 - Multiple Digium Products Remote DoS Vulnerability via Anonymous Calls From Multiple Sources, Medium

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 01/03/2013 19:05
Updated: 04/20/2021 14:18
Changes: 01/03/2013 19:05 (92), 12/24/2017 09:34 (7), 04/20/2021 14:18 (3)
Complete: 🔍
Cache ID: 216:ABA:103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!