mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Restore some sense of security to manager
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1981,6 +1981,10 @@ static int process_message(struct mansession *s, struct message *m)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!s->authenticated && strcasecmp(action, "Login") && strcasecmp(action, "Logoff") && strcasecmp(action, "Challenge")) {
|
||||
astman_send_error(s, m, "Permission denied");
|
||||
return 0;
|
||||
}
|
||||
/* XXX should we protect the list navigation ? */
|
||||
for (tmp = first_action ; tmp; tmp = tmp->next) {
|
||||
if (!strcasecmp(action, tmp->action)) {
|
||||
|
Reference in New Issue
Block a user