From ef95ef1c101b79394f134e8fce000e6bae046571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 24 Aug 2022 10:52:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F=20Fix=20a=20wrong=20permi?= =?UTF-8?q?ssion=20role?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A wrong role assigned to PluginManager LIST permission as introduced in 1.8.0 causes a privilege escalation, allowing read-only and user group the same rights as the MANAGE permission: - enabling/disabling plugins - uninstalling plugins - listing installed plugins incl. their details - retrieving plugin notices - deleting orphaned plugin settings --- src/octoprint/plugins/pluginmanager/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py index 4b338e668..5137995c1 100644 --- a/src/octoprint/plugins/pluginmanager/__init__.py +++ b/src/octoprint/plugins/pluginmanager/__init__.py @@ -228,7 +228,7 @@ class PluginManagerPlugin( "name": "List plugins", "description": gettext("Allows to list installed plugins."), "default_groups": [READONLY_GROUP, USER_GROUP, ADMIN_GROUP], - "roles": ["manage"], + "roles": ["list"], }, { "key": "MANAGE",