|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-07-11 08:29 UTC] fat@php.net
Description: ------------ If the web server in front of FPM is misconfigured, FPM can parse and execute PHP code from any kind of files (test.php, test.txt, test.jpg, test.css, ...). It should be possible to limit the extension of the primary script FPM will execute. Something like (in pool configuration) security.limit_extensions = .php if the primary script does not end with .php, an access denied is returned (403). Patchesfpm-extensions.v2.patch (last revision 2011-07-11 14:19 UTC by fat@php.net)fpm-extensions.v1.patch (last revision 2011-07-11 12:36 UTC by fat@php.net) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
The default for this new setting should not be '.php'. There are many reasons that people may choose different file extensions (or no extension at all), and this new feature will break all those pages. ('Access Denied.' message) I've found that a way to change this setting is to use: security.limit_extensions = FALSE Which should be the default, or at least documented in the configuration files Using PHP 5.3.10-1ubuntu3 (latest available version for ubuntu precise)