summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2019-05-09 16:39:46 -0400
committerjim-p <jimp@netgate.com>2019-05-09 16:40:15 -0400
commit2d7ec8bfddb1ddac51426d03f59f3cdc5b8086a2 (patch)
tree83c37195318396201d013a98277a138d0518aa26
parenta8a07cfbb40a6134d47626cb81d249cf45c1df64 (diff)
downloadpfsense-2d7ec8bfddb1ddac51426d03f59f3cdc5b8086a2.zip
pfsense-2d7ec8bfddb1ddac51426d03f59f3cdc5b8086a2.tar.gz
Make widget privilege matching more specific. Fixes #9512
(cherry picked from commit bc319bc01a4d709b39e4c93c7223d277ee666bff)
-rw-r--r--src/etc/inc/priv/user.priv.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/priv/user.priv.inc b/src/etc/inc/priv/user.priv.inc
index 2a09868..02d1c0e 100644
--- a/src/etc/inc/priv/user.priv.inc
+++ b/src/etc/inc/priv/user.priv.inc
@@ -21,7 +21,7 @@ $priv_list['page-dashboard-all']['name'] = gettext("WebCfg - Dashboard (all)");
$priv_list['page-dashboard-all']['descr'] = gettext("Allow access to all pages required for the dashboard.");
$priv_list['page-dashboard-all']['match'] = array();
$priv_list['page-dashboard-all']['match'][] = "index.php*";
-$priv_list['page-dashboard-all']['match'][] = "*.widget.php*";
+$priv_list['page-dashboard-all']['match'][] = "widgets/widgets/*.widget.php*";
$priv_list['page-dashboard-all']['match'][] = "graph.php*";
$priv_list['page-dashboard-all']['match'][] = "graph_cpu.php*";
$priv_list['page-dashboard-all']['match'][] = "getstats.php*";
@@ -32,7 +32,7 @@ $priv_list['page-dashboard-widgets'] = array();
$priv_list['page-dashboard-widgets']['name'] = gettext("WebCfg - Dashboard widgets (direct access).");
$priv_list['page-dashboard-widgets']['descr'] = gettext("Allow direct access to all Dashboard widget pages, required for some widgets using AJAX.");
$priv_list['page-dashboard-widgets']['match'] = array();
-$priv_list['page-dashboard-widgets']['match'][] = "*.widget.php*";
+$priv_list['page-dashboard-widgets']['match'][] = "widgets/widgets/*.widget.php*";
$priv_list['user-config-readonly'] = array();
$priv_list['user-config-readonly']['name'] = gettext("User - Config: Deny Config Write");
OpenPOWER on IntegriCloud