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
Deny phtml extension for media library upload, fix for 'Remote Code Execution via Unrestricted .phtml File Upload', reported by @kdalal-vulncheck https://github.com/givanz/Vvveb/issues/418
givanz23ac0e8c758d
diff --git a/system/traits/media.php b/system/traits/media.phpindex a751934..e0c5ea1 100644--- a/system/traits/media.php+++ b/system/traits/media.php@@ -30,7 +30,7 @@ use function Vvveb\sanitizeFileName;use Vvveb\System\Event;trait Media {- public $uploadDenyExtensions = ['php', 'svg', 'js', 'exe', 'html'];+ public $uploadDenyExtensions = ['php', 'svg', 'js', 'exe', 'html', 'phtml'];public $uploadDenyMime = ['image/svg', 'image/svg+xml', 'application/javascript', 'application/x-msdownload'];