Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Added new deny rules for demo role to restrict plugin install and also a specific rule for file manager plugin that allows file uploading, demo role is used on online demo install that was vulnerable. Vulnerability reported by https://github.com/chimmeee https://github.com/givanz/Vvveb/issues/289
givanzdd74abcae88f
diff --git a/install/sql/insert/admin/role.sql b/install/sql/insert/admin/role.sqlindex 5f32cb1..fb04e41 100755--- a/install/sql/insert/admin/role.sql+++ b/install/sql/insert/admin/role.sql@@ -1,11 +1,11 @@INSERT INTO `role` (`role_id`, `name`, `display_name`, `permissions`) VALUES(1, 'super_admin', 'Super Administrator', '{"allow":["*"], "deny":[], "capabilities":["view_other_posts","edit_other_posts","view_other_products","edit_other_products","view_other_sites","edit_other_sites"]}'),(2, 'admin', 'Administrator', '{"allow":["*"], "deny":["admin/*"], "capabilities":["view_other_posts","edit_other_posts","view_other_products","edit_other_products","view_other_sites","edit_other_sites"]}'),-(3, 'site_admin', 'Site Administrator', '{"allow":["index/index","content/*","user/*","product/*","order/*","editor/*","media/*","settings/*","tools/*"], "deny":["settings/email/*", "tools/update/*", "tools/cron/*","settings/site/add"], "capabilities":["view_other_posts","edit_other_posts","view_other_products","edit_other_products","view_other_sites","edit_other_sites"]}'),-(4, 'editor', 'Editor', '{"allow":["index/index","content/*", "editor/*","media/media/scan"], "deny":[], "capabilities":["view_other_posts","edit_other_posts","view_other_products","edit_other_products","view_other_sites","edit_other_sites"]}'),-(5, 'author', 'Author', '{"allow":["index/index","content/*", "editor/*","media/media/scan"], "deny":[]}'),-(6, 'contributor', 'Contributor', '{"allow":["index/index","content/*","editor/*","media/media/scan"], "deny":[]}'),-(7, 'shop', 'Shop', '{"allow":["index/index","product/*","order/*","media/media/scan"], "deny":[], "capabilities":["view_other_products","edit_other_products"]}'),-(8, 'vendor', 'Vendor', '{"allow":["index/index","product/*","order/*","media/media/scan"], "deny":["product/vendors/*","product/vendor/*","product/manufacturers/*", "product/manufacturer/*"]}'),+(3, 'site_admin', 'Site Administrator', '{"allow":["index","content/*","user/*","product/*","order/*","editor/*","media/*","settings/*","tools/*"], "deny":["settings/email/*", "tools/update/*", "tools/cron/*","settings/site/add"], "capabilities":["view_other_posts","edit_other_posts","view_other_products","edit_other_products","view_other_sites","edit_other_sites"]}'),+(4, 'editor', 'Editor', '{"allow":["index","content/*", "editor/*","media/media/scan"], "deny":[], "capabilities":["view_other_posts","edit_other_posts","view_other_products","edit_other_products","view_other_sites","edit_other_sites"]}'),+(5, 'author', 'Author', '{"allow":["index","content/*", "editor/*","media/media/scan"], "deny":[]}'),+(6, 'contributor', 'Contributor', '{"allow":["index","content/*","editor/*","media/media/scan"], "deny":[]}'),+(7, 'shop', 'Shop', '{"allow":["index","product/*","order/*","media/media/scan"], "deny":[], "capabilities":["view_other_products","edit_other_products"]}'),+(8, 'vendor', 'Vendor', '{"allow":["index","product/*","order/*","media/media/scan"], "deny":["product/vendors/*","product/vendor/*","product/manufacturers/*", "product/manufacturer/*"]}'),(9, 'rest', 'Rest', '{"allow":["content/*"],"deny":["*/save","*/delete"], "capabilities":["view_other_products","edit_other_products"]}}'),-(10, 'demo', 'Demo', '{"allow":["*"],"deny":["*/save","*/delete","*/rename","*/duplicate","*/upload", "*/activate","*/deactivate","*/update","*/deletemenu"], "capabilities":["view_other_posts","view_other_products","view_other_sites"]}');+(10, 'demo', 'Demo', '{"allow":["*"],"deny":["*/save","*/delete","*/rename","*/duplicate","*/upload", "*/activate","*/deactivate","*/install","*/update","*/deletemenu","plugins/file-manager/*"], "capabilities":["view_other_posts","view_other_products","view_other_sites"]}');