mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Merge "manager.c: Prevent the Originate action from running the Originate app" into 17.0
This commit is contained in:
5
doc/UPGRADE-staging/AMI-Originate.txt
Normal file
5
doc/UPGRADE-staging/AMI-Originate.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Subject: AMI
|
||||
|
||||
The AMI Originate action, which optionally takes a dialplan application as
|
||||
an argument, no longer accepts "Originate" as the application due to
|
||||
security concerns.
|
@@ -5698,6 +5698,7 @@ static int action_originate(struct mansession *s, const struct message *m)
|
||||
EAGI(/bin/rm,-rf /) */
|
||||
strcasestr(app, "mixmonitor") || /* MixMonitor(blah,,rm -rf) */
|
||||
strcasestr(app, "externalivr") || /* ExternalIVR(rm -rf) */
|
||||
strcasestr(app, "originate") || /* Originate(Local/1234,app,System,rm -rf) */
|
||||
(strstr(appdata, "SHELL") && (bad_appdata = 1)) || /* NoOp(${SHELL(rm -rf /)}) */
|
||||
(strstr(appdata, "EVAL") && (bad_appdata = 1)) /* NoOp(${EVAL(${some_var_containing_SHELL})}) */
|
||||
)) {
|
||||
|
Reference in New Issue
Block a user