Hi David,
well, in the first place it would limit the php script execution to only valid defined extensions
As stated in my first post
current config is defining it as:
Code:
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
With this setup you can have php script named script.php and it will work as php code
You can also have script.php.anything and it will still execute as php code (if seccond extension is not conflicting with other handlers)
With this setup:
Code:
<FilesMatch "\.(php5|php4|php|php3|php2|phtml)$">
SetHandler application/x-httpd-php5
</FilesMatch>
You are actually limiting script filenames to end with defined extensions.
Also as stated in my first post, and as ruicruz stated in his.
Over the time we will se malicious code uploaded in client accounts via less secure client scripts not doing proper file extension verification. I my self have witnessed a couple of code injections like this.
While I do understand that this is not the issue with cPanel and/or Apache/php stack, but the issue is really in bad client codings. It would be a nice feature to limit these kind of attacks by a simple default configuration change in cPanel.
Hope this helps