-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed and stopped possibility to upload constructed php files throgh elfinder - Added .htaccess files to try to tighten security on apache servers - Always use extension blacklist (ignore management page setting) - Stop XSS in print - Several other small improvements
- Loading branch information
Showing
21 changed files
with
193 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py|log)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Stop Apache doing directory indexing. | ||
Options -Indexes | ||
|
||
|
||
# Try and tell Apache not to serve out any files within this directory as PHP - | ||
# this helps close a potential security flaw - given people can upload almost anything into an LO. | ||
|
||
#prevent execution of php code (and other code) | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteRule .*\.(php|php[0-9]|phtml|pl|sh|java|py)$ - [F] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Options +FollowSymLinks | ||
Options +FollowSymLinks -Indexes | ||
|
||
rewriteEngine on | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters