obs wrote:
An example of why php shouldn't be allowed to write to itself.
1. A security vulnerability is found in a script say an upload script allows a php file to be uploaded
2. This php file is then executed via the browser and alters your index.php file to include
Code:
<?php
header("Location: http://abadsite.com");
?>
3. All visitors to your site get sent to abadsite.com and spammed into a new incarnation.
So, what do you say is that what I found a "bug" it's actually a feature? It's kind of weird that Wordpress expose itself to that kind of vulnerability though, don't you think so?
Besides of that... if I keep my conf as it were, that is: php-fpm ran as a its own user (http), being access to read the php files (not write) it's secure?
Something like:
-rw-r----- 1 webuser www-data 3,5K ago 4 10:19 index.php