[asterisk-commits] kharwell: branch 1.8 r428331 - /branches/1.8/funcs/func_db.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 20 09:29:39 CST 2014


Author: kharwell
Date: Thu Nov 20 09:29:34 2014
New Revision: 428331

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428331
Log:
AST-2014-017 - app_confbridge: permission escalation/ class authorization.

Confbridge dialplan function permission escalation via AMI and inappropriate
class authorization on the ConfbridgeStartRecord action. The CONFBRIDGE dialplan
function when executed from an external protocol (for instance AMI), could
result in a privilege escalation. Also, the AMI action “ConfbridgeStartRecord”
could also be used to execute arbitrary system commands without first checking
for system access.

Asterisk now inhibits the CONFBRIDGE function from being executed from an
external interface if the live_dangerously option is set to no.  Also, the
“ConfbridgeStartRecord” AMI action is now only allowed to execute under a
user with system level access.

ASTERISK-24490
Reported by: Gareth Palmer

Modified:
    branches/1.8/funcs/func_db.c

Modified: branches/1.8/funcs/func_db.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/funcs/func_db.c?view=diff&rev=428331&r1=428330&r2=428331
==============================================================================
--- branches/1.8/funcs/func_db.c (original)
+++ branches/1.8/funcs/func_db.c Thu Nov 20 09:29:34 2014
@@ -282,7 +282,7 @@
 {
 	int res = 0;
 
-	res |= ast_custom_function_register(&db_function);
+	res |= ast_custom_function_register_escalating(&db_function, AST_CFE_BOTH);
 	res |= ast_custom_function_register(&db_exists_function);
 	res |= ast_custom_function_register_escalating(&db_delete_function, AST_CFE_READ);
 




More information about the asterisk-commits mailing list