by zoli » Sun Feb 29, 2004 2:10 am
hi,
I assume, that it is a general wish to disable PHP safe_mode=on.
It is important to understad that PHP, as a command interpreter usually runs as a web server user and not as a home page user, therefore there is a high security risk to abuse this behaviour. Therefore PHP has a special option - safe_mode that assure that home page user access just files with own UID/GID and lot of file and system functions are disbaled because of web server access rights.
Moreover there is a problem with some normal (not safe_moded) functions as mail() and some socket functions that can be extremelly powerful in malitious user's hand.
As a first stage, I implemented a patch that allowed mail and other disabled functions just for shell/registered users
... and now I a proud to announce that solution that allows safe mode to be turned off without security violations, is ready.
It is not a revolutionary solution but it does work and polarhome users might have a possibility to enjoy full power of PHP (if we vote so).
For test purpose this solution is installed just on freebsd server and after one week testing I plan to patch all other systems that supports PHP.
Regards,
Z
---
Zoltan Arpadffy