protect .phar from being executed from uploads directory

This commit is contained in:
Remi Collet 2017-05-10 17:27:39 +02:00
commit 3784ddd073
2 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@ Alias /wordpress /usr/share/wordpress
<Directory /usr/share/wordpress/wp-content/uploads>
# Deny access to any php file in the uploads directory
<FilesMatch "\.(php)$">
<FilesMatch "\.(php|phar)$">
Order Deny,Allow
Deny from all
</FilesMatch>

View file

@ -27,7 +27,7 @@ URL: http://www.wordpress.org
Name: wordpress
Version: 4.7.4
Group: Applications/Publishing
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
Source0: http://wordpress.org/%{name}-%{version}%{?prever:-%{prever}}.tar.gz
@ -307,6 +307,9 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog
* Tue Mar 7 2017 Remi Collet <remi@remirepo.net> - 4.7.4-2
- protect .phar from being executed from uploads directory
* Sat Apr 22 2017 Kevin Fenzi <kevin@scrye.com> - 4.7.4-1
- Update to 4.7.4. Maintenance Release.