Closed
Description
- Magento 2.1.1
- cPanel EasyApache 4 (edge)
- apache 2.4 + php-fpm
Steps to reproduce
- upload php file to
pub/media/
- execute in browser
Expected result
- code execution in some folders must be denied
Actual result
- php files executed and working good
as a quick test, this works for any handler:
<FilesMatch \.(ph.+|sh.+|htm.+|cgi|[aj]sp|p[ly])$>
Order allow,deny
Deny from all
</FilesMatch>