Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Added .phtml and .htaccess extensions to media upload deny list https://github.com/givanz/Vvveb/security/advisories/GHSA-qpcx-gx2x-r8v2 reported by https://github.com/CyberWarrior9

givanz917c7347431f
diff --git a/system/traits/media.php b/system/traits/media.php
index 7239515..083f26c 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', 'phtml'];
+ public $uploadDenyExtensions = ['php', 'svg', 'js', 'exe', 'html', 'phtml', 'htaccess'];
public $uploadDenyMime = ['image/svg', 'image/svg+xml', 'application/javascript', 'application/x-msdownload'];