Bug 1043917

Summary: asterisk: asterisk manager user dialplan permission escalation
Product: [Other] Security Response Reporter: Ratul Gupta <ratulg>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: itamar, jeff, lmadsen, rbryant
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: asterisk 1.8.24.1, asterisk 11.6.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-22 16:47:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1043921, 1043923    
Bug Blocks:    

Description Ratul Gupta 2013-12-17 12:54:00 UTC
External control protocols, such as the Asterisk Manager Interface, often have the ability to get and set channel variables; this allows the execution of dialplan functions.

Dialplan functions within Asterisk are incredibly powerful, which is wonderful for building applications using Asterisk. But during the read or write execution, certain diaplan functions do much more. For example, reading the SHELL() function can execute arbitrary commands on the system Asterisk is running on. Writing to the FILE() function can change any file that Asterisk has write access to.

When these functions are executed from an external protocol, that execution could result in a privilege escalation.

References:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732355
http://downloads.asterisk.org/pub/security/AST-2013-007.html

Patch:
1.8: http://downloads.asterisk.org/pub/security/AST-2013-007-1.8.diff
11: http://downloads.asterisk.org/pub/security/AST-2013-007-11.diff

Comment 1 Ratul Gupta 2013-12-17 12:55:42 UTC
Created asterisk tracking bugs for this issue:

Affects: fedora-all [bug 1043921]
Affects: epel-6 [bug 1043923]

Comment 2 Murray McAllister 2013-12-23 00:44:02 UTC
Looks like this will not get a CVE. Explanation in the following:

http://seclists.org/oss-sec/2013/q4/530

Comment 3 Fedora Update System 2014-01-08 07:50:35 UTC
asterisk-11.7.0-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2014-01-08 07:54:58 UTC
asterisk-11.7.0-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2014-01-08 07:59:10 UTC
asterisk-11.7.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.