Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

Prevent apache directory listing, vulnerability reported by @CyberWarrior9

givanz96ae04c5e4a2
diff --git a/.htaccess b/.htaccess
index b6eeb2f..5c87a04 100755
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,5 @@
+Options +SymLinksIfOwnerMatch -Indexes
+
<IfModule !mod_authz_core.c>
<Files *.php>
Require all denied
@@ -23,7 +25,6 @@
DirectoryIndex index.php
</IfModule>
-
#<IfModule mod_headers.c>
#Header always set Content-Security-Policy "upgrade-insecure-requests;"
#</IfModule>
diff --git a/admin/.htaccess b/admin/.htaccess
index 950f595..d415323 100755
--- a/admin/.htaccess
+++ b/admin/.htaccess
@@ -1,3 +1,5 @@
+Options +SymLinksIfOwnerMatch -Indexes
+
<IfModule dir_module>
DirectoryIndex index.php
</IfModule>
diff --git a/plugins/.htaccess b/plugins/.htaccess
new file mode 100644
index 0000000..6db4346
--- /dev/null
+++ b/plugins/.htaccess
@@ -0,0 +1,14 @@
+Options +SymLinksIfOwnerMatch -Indexes
+
+<IfModule !mod_authz_core.c>
+ <Files *.php>
+ Require all denied
+ </Files>
+
+</IfModule>
+
+<IfModule mod_authz_core.c>
+ <FilesMatch "\.(?i:php)$">
+ Require all denied
+ </FilesMatch>
+</IfModule>
diff --git a/public/.htaccess b/public/.htaccess
index d95dd48..bbfd63a 100755
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,4 +1,4 @@
-#Options +SymLinksIfOwnerMatch -Indexes
+Options +SymLinksIfOwnerMatch -Indexes
<IfModule !mod_authz_core.c>
<Files *.php>
@@ -74,8 +74,8 @@ RewriteRule ^ index.php [L]
Header set Cache-Control "max-age=2592000"
</FilesMatch>
- <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
- Header set Cache-Control "max-age=2592000"
+ <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
+ Header set Cache-Control "max-age=2592000"
</FilesMatch>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
diff --git a/public/admin/.htaccess b/public/admin/.htaccess
index 60a21fa..c42fb2e 100755
--- a/public/admin/.htaccess
+++ b/public/admin/.htaccess
@@ -1,4 +1,4 @@
-#Options +SymLinksIfOwnerMatch -Indexes
+Options +SymLinksIfOwnerMatch -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
diff --git a/public/media/.htaccess b/public/media/.htaccess
index e7d9770..0589867 100755
--- a/public/media/.htaccess
+++ b/public/media/.htaccess
@@ -1,3 +1,5 @@
+Options +SymLinksIfOwnerMatch -Indexes
+
<Files *.php>
order allow,deny
deny from all
diff --git a/public/themes/.htaccess b/public/themes/.htaccess
new file mode 100644
index 0000000..6db4346
--- /dev/null
+++ b/public/themes/.htaccess
@@ -0,0 +1,14 @@
+Options +SymLinksIfOwnerMatch -Indexes
+
+<IfModule !mod_authz_core.c>
+ <Files *.php>
+ Require all denied
+ </Files>
+
+</IfModule>
+
+<IfModule mod_authz_core.c>
+ <FilesMatch "\.(?i:php)$">
+ Require all denied
+ </FilesMatch>
+</IfModule>
diff --git a/public/vadmin/.htaccess b/public/vadmin/.htaccess
index 60a21fa..c42fb2e 100755
--- a/public/vadmin/.htaccess
+++ b/public/vadmin/.htaccess
@@ -1,4 +1,4 @@
-#Options +SymLinksIfOwnerMatch -Indexes
+Options +SymLinksIfOwnerMatch -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On